Skip to content

Commit

Permalink
Merge pull request #299 from grantfirl/fix_hera_setup
Browse files Browse the repository at this point in the history
update Hera setup scripts
  • Loading branch information
grantfirl committed Feb 11, 2022
2 parents 60fe8a5 + 9fa36f1 commit f2c73df
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 102 deletions.
54 changes: 3 additions & 51 deletions scm/etc/Hera_setup_intel.csh
Original file line number Diff line number Diff line change
Expand Up @@ -28,54 +28,6 @@ setenv CMAKE_CXX_COMPILER icpc
setenv CMAKE_Fortran_COMPILER ifort
setenv CMAKE_Platform hera.intel

echo "Loading the anaconda python distribution"
module use -a /contrib/anaconda/modulefiles
module load anaconda/anaconda3-4.4.0

#install f90nml for the local user

#check to see if f90nml is installed locally
echo "Checking if f90nml python module is installed"
python -c "import f90nml"

if ( $? != 0 ) then
echo "Not found; installing f90nml"
pip install -e git://github.com/marshallward/f90nml.git@v0.19\#egg=f90nml --user
else
echo "f90nml is installed"
endif

#install shapely for the local user

#check to see if shapely is installed locally
echo "Checking if shapely python module is installed"
python -c "import shapely"

if ( $? != 0 ) then
echo "Not found; installing shapely"
pip install --index-url http://anaconda.rdhpcs.noaa.gov/simple --trusted-host anaconda.rdhpcs.noaa.gov shapely --user
else
echo "shapely is installed"
endif

#check to see if configobj is installed locally
echo "Checking if configobj python module is installed"
python -c "import configobj"

if ( $? != 0 ) then
echo "Not found; installing configobj"
pip install --index-url http://anaconda.rdhpcs.noaa.gov/simple --trusted-host anaconda.rdhpcs.noaa.gov configobj --user
else
echo "configobj is installed"
endif

#check to see if netCDF4 is installed locally
echo "Checking if netCDF4 python module is installed"
python -c "import netCDF4"

if ( $? != 0 ) then
echo "Not found; installing netCDF4"
pip install --index-url http://anaconda.rdhpcs.noaa.gov/simple --trusted-host anaconda.rdhpcs.noaa.gov netCDF4 --user
else
echo "netCDF4 is installed"
endif
echo "Loading the SCM python environment"
source /scratch1/BMC/gmtb/SCM_anaconda/etc/profile.d/conda.csh
conda activate pyccpp
54 changes: 3 additions & 51 deletions scm/etc/Hera_setup_intel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,54 +25,6 @@ export CMAKE_CXX_COMPILER=icpc
export CMAKE_Fortran_COMPILER=ifort
export CMAKE_Platform=hera.intel

echo "Loading the anaconda python distribution"
module use -a /contrib/anaconda/modulefiles
module load anaconda/anaconda3-4.4.0

#install f90nml for the local user

#check to see if f90nml is installed locally
echo "Checking if f90nml python module is installed"
python -c "import f90nml"

if [ $? -ne 0 ]; then
echo "Not found; installing f90nml"
pip install -e git://github.com/marshallward/f90nml.git@v0.19#egg=f90nml --user
else
echo "f90nml is installed"
fi

#install shapely for the local user

#check to see if shapely is installed locally
echo "Checking if shapely python module is installed"
python -c "import shapely"

if [ $? -ne 0 ]; then
echo "Not found; installing shapely"
pip install --index-url http://anaconda.rdhpcs.noaa.gov/simple --trusted-host anaconda.rdhpcs.noaa.gov shapely --user
else
echo "shapely is installed"
fi

#check to see if configobj is installed locally
echo "Checking if configobj python module is installed"
python -c "import configobj"

if [ $? -ne 0 ]; then
echo "Not found; installing configobj"
pip install --index-url http://anaconda.rdhpcs.noaa.gov/simple --trusted-host anaconda.rdhpcs.noaa.gov configobj --user
else
echo "configobj is installed"
fi

#check to see if netCDF4 is installed locally
echo "Checking if netCDF4 python module is installed"
python -c "import netCDF4"

if [ $? -ne 0 ]; then
echo "Not found; installing netCDF4"
pip install --index-url http://anaconda.rdhpcs.noaa.gov/simple --trusted-host anaconda.rdhpcs.noaa.gov netCDF4 --user
else
echo "netCDF4 is installed"
fi
echo "Loading the SCM python environment"
. "/scratch1/BMC/gmtb/SCM_anaconda/etc/profile.d/conda.sh"
conda activate pyccpp

0 comments on commit f2c73df

Please sign in to comment.