Skip to content

Commit

Permalink
regtesting: always set the CP2K_DATA_DIR env variable
Browse files Browse the repository at this point in the history
fixes #234 to ensure we always use the data provided in the running
copy of CP2K and not accidentally picking up already installed data
from an earlier copy OR not finding the data because the user set the
directory the baked-in directory to somewhere in the system (distros
for example)
  • Loading branch information
dev-zero committed Dec 3, 2019
1 parent bdc3ce7 commit 4bbeda1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/regtesting/do_regtest
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ else
fi

export OMP_NUM_THREADS=${numthreads}
export CP2K_DATA_DIR=${cp2k_data_dir:-"${dir_base}/${cp2k_dir}/data"}

#
# these should not be needed
Expand Down

0 comments on commit 4bbeda1

Please sign in to comment.