| 1 |
#!/bin/csh -fv |
| 2 |
# |
| 3 |
# Example of a job script that runs a stand-alone configuration of ESMF compliant MITgcm |
| 4 |
# on the MITgcm cluster compute nodes. |
| 5 |
# This script uses Lahey compiler (version 6.2) builds of |
| 6 |
# ESMF (version 1_0_4), with mpich-gm (version 1.2.5..10) and mitgcm (version checkpoint52l) |
| 7 |
# on a RedHat 7.2 system with the libstdc++-2.96-98 GCC Standard C++ Library. |
| 8 |
# |
| 9 |
|
| 10 |
# |
| 11 |
# Test script to run stand alone example |
| 12 |
# |
| 13 |
|
| 14 |
# Make sure that dynamic library search path includes needed libraries. |
| 15 |
setenv LD_LIBRARY_PATH /usr/local/pkg/ESMF/ESMF_1_0_4/mpich-1.2.5..10/lahey/lib/libO/Linux.lahey.32.default:/usr/local/pkg/lahey/current/lib |
| 16 |
|
| 17 |
# Setup testrun directory |
| 18 |
mkdir testrun |
| 19 |
cd testrun |
| 20 |
|
| 21 |
# Setup subdirectories for each sub-component (there is only one for stand-alone) |
| 22 |
mkdir ocn.1 |
| 23 |
cd ocn.1 |
| 24 |
ln -s ../../input/* . |
| 25 |
cd .. |
| 26 |
|
| 27 |
# Setup needed MPI files |
| 28 |
hostname > mf |
| 29 |
hostname >> mf |
| 30 |
|
| 31 |
# Execute the application |
| 32 |
/usr/local/pkg/mpi/mpich-1.2.5..10/lahey/bin/mpirun -np 2 -machinefile mf ../app/exe/2pe/ocn_only_app.exe |
| 33 |
|
| 34 |
|