This PR is similar to Ting's closed PR from last week to fix an issue with running the ctest on Orion. I found that the ctest can rarely crash on Orion with a memory error. This occurs when the job allocation shares nodes with other jobs, and thus not all of the memory on that node/nodes are available. The fix here features simple addition of the --exclusive tag to the ctest in rrfs_test so that the ctest job requests exclusive access to that node and memory is not shared.
$MACHINE_ID is passed into CMAKE_OPTS during build.sh to be read later
rrfs_test/CMakeLists.txt is modified to now pass in the --exclusive tag only when building the ctests on Orion
I tested this change by running the ctest about 10 times and it succeeded every time.
Also, this PR features a quick commit to the python scripts to now feature a line where the path to the cartopy shapefiles is set automatically based on hostname instead of having the user manually comment in/out the correct lines. If this PR is approved then I will update the wiki respectively.
This PR is similar to Ting's closed PR from last week to fix an issue with running the ctest on Orion. I found that the ctest can rarely crash on Orion with a memory error. This occurs when the job allocation shares nodes with other jobs, and thus not all of the memory on that node/nodes are available. The fix here features simple addition of the
--exclusive
tag to the ctest in rrfs_test so that the ctest job requests exclusive access to that node and memory is not shared.$MACHINE_ID
is passed intoCMAKE_OPTS
duringbuild.sh
to be read laterrrfs_test/CMakeLists.txt
is modified to now pass in the--exclusive
tag only when building the ctests on OrionI tested this change by running the ctest about 10 times and it succeeded every time.
Also, this PR features a quick commit to the python scripts to now feature a line where the path to the cartopy shapefiles is set automatically based on
hostname
instead of having the user manually comment in/out the correct lines. If this PR is approved then I will update the wiki respectively.