Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update DAV NPL version for machine upgrade and python 2.7.15 #212

Merged
merged 9 commits into from
Jul 30, 2019
Merged
2 changes: 1 addition & 1 deletion Machines/dav_modules
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module load ncl/6.6.2

# clone the ncat virtualenv first with helper script ncar_pylib
# use "ncar_pylib --help" to see all options
ncar_pylib -c 20190326 ${pp_dir}/cesm-env2
ncar_pylib -c 20190718 ${pp_dir}/cesm-env2

export PYTHONPATH=${pp_dir}/cesm-env2/lib/python2.7/site-packages

Expand Down
62 changes: 62 additions & 0 deletions averager/pp_tests/runAvg_mpi_dav.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
#! /bin/bash -l

#SBATCH -n 16
#SBATCH -N 4
#SBATCH --ntasks-per-node=4
#SBATCH -t 00:05:00
#SBATCH -p dav
#SBATCH -J atm_averages_dav
#SBATCH -A P93300606
#SBATCH --mem 10G
#SBATCH -e atm_averages_dav.err.%J
#SBATCH -o atm_averages_dav.out.%J
#SBATCH -m block


if [ ! -e /gpfs/fs1/work/aliceb/sandboxes/dev/postprocessing_dav/cesm-env2/bin ]; then
echo "*************************************************************************************"
echo "CESM atm_averages_dav exiting due to non-existant python virtual environment in"
echo " /gpfs/fs1/work/aliceb/sandboxes/dev/postprocessing_dav/cesm-env2/bin"
echo "You must first run:"
echo "$POSTPROCESS_PATH/create_python_env -machine [machine]"
echo "*************************************************************************************"
exit
fi


module purge




## activate the virtualenv that contains all the non-bootstrapped dependencies

cd /gpfs/fs1/work/aliceb/sandboxes/dev/postprocessing_dav/cesm-env2/bin
echo "Running from virtualenv directory:"
pwd
. activate

## load the boot-strap modules


module load python/2.7.14

module load intel/17.0.1

module load ncarenv

module load ncarcompilers

module load impi

module load netcdf/4.6.1

module load nco/4.7.4

module load ncl/6.4.0

export POSTPROCESS_PATH=/gpfs/fs1/work/aliceb/sandboxes/dev/postprocessing_dav

srun /gpfs/fs1/work/aliceb/sandboxes/dev/postprocessing_dav/averager/pp_tests/test_atm_series.py