Last active
December 21, 2015 16:28
-
-
Save ketch/6333443 to your computer and use it in GitHub Desktop.
Submit test job for PyClaw on Shaheen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# @ job_name = test_pyclaw | |
# @ job_type = bluegene | |
# @ output = ./$(job_name)_$(jobid).out | |
# @ error = ./$(job_name)_$(jobid).err | |
# @ environment = COPY_ALL; | |
# @ wall_clock_limit = 0:15:00,0:15:00 | |
# @ notification = always | |
# @ bg_size = 64 | |
# @ account_no = k47 | |
# @ queue | |
projdir=/your/chosen/directory | |
builddir=${projdir}/opt/share | |
pythondir=${builddir}/python/2.7.2/bgp | |
ldpath=${pythondir}/lib | |
numpy_path=${builddir}/numpy/1.6.2/bgp/lib/python | |
nose_path=${builddir}/nose/1.1.2/bgp/lib/python | |
clawpack_path=${builddir}/clawpack/dev/bgp/lib/python | |
petsc4py_path=${builddir}/petsc4py/1.2/bgp/lib/python | |
bgp_python_path=${numpy_path}:${nose_path}:${clawpack_path}:${petsc4py_path} | |
sandbox=${projdir}/sandbox | |
ldpath=${pythondir}/lib | |
logdir=${builddir}/logs | |
mpirun -env LD_LIBRARY_PATH=${ldpath} -env PYTHONPATH=${bgp_python_path} \ | |
-mode VN -exp_env HOME -n 4 ${pythondir}/bin/python \ | |
${sandbox}/clawpack/pyclaw/examples/advection_1d/advection_1d.py \ | |
kernel_language=Fortran use_petsc=True \ | |
| tee ${logdir}/test_clawpack_advection.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment