NOAA-EMC / RDASApp

Regional DAS
GNU Lesser General Public License v2.1
0 stars 5 forks source link

Add exclusive MPI option for ctest on Orion to prevent memory error #30

Closed SamuelDegelia-NOAA closed 2 weeks ago

SamuelDegelia-NOAA commented 2 weeks ago

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.

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.