Skip to content

Commit

Permalink
Merge pull request NCAR#212 from bertinia/master
Browse files Browse the repository at this point in the history
update DAV NPL version for machine upgrade and python 2.7.15
  • Loading branch information
bertinia authored Jul 30, 2019
2 parents b6747cd + 9efa121 commit bcaa6d7
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 1 deletion.
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


0 comments on commit bcaa6d7

Please sign in to comment.