Skip to content

Commit

Permalink
Clean up and unify the hafs modulefiles as well as the related build …
Browse files Browse the repository at this point in the history
…and job scripts.
  • Loading branch information
BinLiu-NOAA committed Apr 10, 2021
1 parent f806fe5 commit ec3760f
Show file tree
Hide file tree
Showing 55 changed files with 82 additions and 1,706 deletions.
5 changes: 1 addition & 4 deletions jobs/JHAFS_ANALYSIS
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,10 @@ export machine=${WHERE_AM_I:-wcoss_cray} # platforms: wcoss_cray, wcoss_dell_p3,
#export RUN_ENVIR=${RUN_ENVIR:-prod}
export RUN_ENVIR=${envir:-prod}
if [ "$RUN_ENVIR" = prod ]; then
module use ${HOMEhafs}/modulefiles
module load modulefile.hafs.run.${machine}
module use $HOMEhafs/sorc/hafs_gsi.fd/modulefiles
module load modulefile.ProdGSI.${machine}
#source $HOMEhafs/sorc/hafs_gsi.fd/modulefiles/modulefile.ProdGSI.${machine}
#env
module list
env
fi

#####################################
Expand Down
5 changes: 1 addition & 4 deletions jobs/JHAFS_ANALYSIS_VR
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,10 @@ export machine=${WHERE_AM_I:-wcoss_cray} # platforms: wcoss_cray, wcoss_dell_p3,
#export RUN_ENVIR=${RUN_ENVIR:-prod}
export RUN_ENVIR=${envir:-prod}
if [ "$RUN_ENVIR" = prod ]; then
module use ${HOMEhafs}/modulefiles
module load modulefile.hafs.run.${machine}
module use $HOMEhafs/sorc/hafs_gsi.fd/modulefiles
module load modulefile.ProdGSI.${machine}
#source $HOMEhafs/sorc/hafs_gsi.fd/modulefiles/modulefile.ProdGSI.${machine}
#env
module list
env
fi

#####################################
Expand Down
4 changes: 1 addition & 3 deletions jobs/JHAFS_ATM_INIT
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,6 @@ export machine=${WHERE_AM_I:-wcoss_cray} # platforms: wcoss_cray, wcoss_dell_p3,
#export RUN_ENVIR=${RUN_ENVIR:-prod}
export RUN_ENVIR=${envir:-prod}
if [ "$RUN_ENVIR" = prod ]; then
#module use ${HOMEhafs}/modulefiles
#module load modulefile.hafs.run.${machine}
#module purge
if [ "$machine" = wcoss_dell_p3 ]; then
module unload NetCDF
module unload HDF5-serial
Expand All @@ -151,6 +148,7 @@ if [ "$RUN_ENVIR" = prod ]; then
module load fv3
module list
export LD_LIBRARY_PATH="$HOMEhafs/sorc/hafs_forecast.fd/FV3/ccpp/lib::${LD_LIBRARY_PATH}"
env
fi

#####################################
Expand Down
4 changes: 1 addition & 3 deletions jobs/JHAFS_CHGRES_BC
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,14 @@ export machine=${WHERE_AM_I:-wcoss_cray} # platforms: wcoss_cray, wcoss_dell_p3,
#export RUN_ENVIR=${RUN_ENVIR:-prod}
export RUN_ENVIR=${envir:-prod}
if [ "$RUN_ENVIR" = prod ]; then
#module use ${HOMEhafs}/modulefiles
#module load modulefile.hafs.run.${machine}
if [ "$machine" = wcoss_dell_p3 ]; then
module unload NetCDF
module unload HDF5-serial
fi
#source ${HOMEhafs}/sorc/hafs_utils.fd/modulefiles/build.${machine}
module use ${HOMEhafs}/sorc/hafs_utils.fd/modulefiles
module load build.${machine}.intel
module list
env
fi

#####################################
Expand Down
4 changes: 1 addition & 3 deletions jobs/JHAFS_CHGRES_IC
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,14 @@ export machine=${WHERE_AM_I:-wcoss_cray} # platforms: wcoss_cray, wcoss_dell_p3,
#export RUN_ENVIR=${RUN_ENVIR:-prod}
export RUN_ENVIR=${envir:-prod}
if [ "$RUN_ENVIR" = prod ]; then
#module use ${HOMEhafs}/modulefiles
#module load modulefile.hafs.run.${machine}
if [ "$machine" = wcoss_dell_p3 ]; then
module unload NetCDF
module unload HDF5-serial
fi
#source ${HOMEhafs}/sorc/hafs_utils.fd/modulefiles/build.${machine}
module use ${HOMEhafs}/sorc/hafs_utils.fd/modulefiles
module load build.${machine}.intel
module list
env
fi

#####################################
Expand Down
1 change: 1 addition & 0 deletions jobs/JHAFS_EMCGRAPHICS
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ if [ "$RUN_ENVIR" = prod ]; then
module use ${HOMEgraph}/modulefiles
module load modulefile.graphics.run.${machine}
module list
env
fi

#####################################
Expand Down
5 changes: 1 addition & 4 deletions jobs/JHAFS_ENKF_HX
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,10 @@ export machine=${WHERE_AM_I:-wcoss_cray} # platforms: wcoss_cray, wcoss_dell_p3,
#export RUN_ENVIR=${RUN_ENVIR:-prod}
export RUN_ENVIR=${envir:-prod}
if [ "$RUN_ENVIR" = prod ]; then
module use ${HOMEhafs}/modulefiles
module load modulefile.hafs.run.${machine}
module use $HOMEhafs/sorc/hafs_gsi.fd/modulefiles
module load modulefile.ProdGSI.${machine}
#source $HOMEhafs/sorc/hafs_gsi.fd/modulefiles/modulefile.ProdGSI.${machine}
#env
module list
env
fi

#####################################
Expand Down
5 changes: 1 addition & 4 deletions jobs/JHAFS_ENKF_MEAN
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,10 @@ export machine=${WHERE_AM_I:-wcoss_cray} # platforms: wcoss_cray, wcoss_dell_p3,
#export RUN_ENVIR=${RUN_ENVIR:-prod}
export RUN_ENVIR=${envir:-prod}
if [ "$RUN_ENVIR" = prod ]; then
module use ${HOMEhafs}/modulefiles
module load modulefile.hafs.run.${machine}
module use $HOMEhafs/sorc/hafs_gsi.fd/modulefiles
module load modulefile.ProdGSI.${machine}
#source $HOMEhafs/sorc/hafs_gsi.fd/modulefiles/modulefile.ProdGSI.${machine}
#env
module list
env
fi

#####################################
Expand Down
5 changes: 1 addition & 4 deletions jobs/JHAFS_ENKF_RECENTER
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,10 @@ export machine=${WHERE_AM_I:-wcoss_cray} # platforms: wcoss_cray, wcoss_dell_p3,
#export RUN_ENVIR=${RUN_ENVIR:-prod}
export RUN_ENVIR=${envir:-prod}
if [ "$RUN_ENVIR" = prod ]; then
module use ${HOMEhafs}/modulefiles
module load modulefile.hafs.run.${machine}
module use $HOMEhafs/sorc/hafs_gsi.fd/modulefiles
module load modulefile.ProdGSI.${machine}
#source $HOMEhafs/sorc/hafs_gsi.fd/modulefiles/modulefile.ProdGSI.${machine}
#env
module list
env
fi

#####################################
Expand Down
5 changes: 1 addition & 4 deletions jobs/JHAFS_ENKF_UPDATE
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,10 @@ export machine=${WHERE_AM_I:-wcoss_cray} # platforms: wcoss_cray, wcoss_dell_p3,
#export RUN_ENVIR=${RUN_ENVIR:-prod}
export RUN_ENVIR=${envir:-prod}
if [ "$RUN_ENVIR" = prod ]; then
module use ${HOMEhafs}/modulefiles
module load modulefile.hafs.run.${machine}
module use $HOMEhafs/sorc/hafs_gsi.fd/modulefiles
module load modulefile.ProdGSI.${machine}
#source $HOMEhafs/sorc/hafs_gsi.fd/modulefiles/modulefile.ProdGSI.${machine}
#env
module list
env
fi

#####################################
Expand Down
4 changes: 1 addition & 3 deletions jobs/JHAFS_FORECAST
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,6 @@ export machine=${WHERE_AM_I:-wcoss_cray} # platforms: wcoss_cray, wcoss_dell_p3,
#export RUN_ENVIR=${RUN_ENVIR:-prod}
export RUN_ENVIR=${envir:-prod}
if [ "$RUN_ENVIR" = prod ]; then
#module use ${HOMEhafs}/modulefiles
#module load modulefile.hafs.run.${machine}
#module purge
if [ "$machine" = wcoss_dell_p3 ]; then
module unload NetCDF
module unload HDF5-serial
Expand All @@ -151,6 +148,7 @@ if [ "$RUN_ENVIR" = prod ]; then
module load fv3
module list
export LD_LIBRARY_PATH="$HOMEhafs/sorc/hafs_forecast.fd/FV3/ccpp/lib::${LD_LIBRARY_PATH}"
env
fi

#####################################
Expand Down
4 changes: 1 addition & 3 deletions jobs/JHAFS_GRID
Original file line number Diff line number Diff line change
Expand Up @@ -96,16 +96,14 @@ export machine=${WHERE_AM_I:-wcoss_cray} # platforms: wcoss_cray, wcoss_dell_p3,
#export RUN_ENVIR=${RUN_ENVIR:-prod}
export RUN_ENVIR=${envir:-prod}
if [ "$RUN_ENVIR" = prod ]; then
#module use ${HOMEhafs}/modulefiles
#module load modulefile.hafs.run.${machine}
if [ "$machine" = wcoss_dell_p3 ]; then
module unload NetCDF
module unload HDF5-serial
fi
#source ${HOMEhafs}/sorc/hafs_utils.fd/modulefiles/build.${machine}
module use ${HOMEhafs}/sorc/hafs_utils.fd/modulefiles
module load build.${machine}.intel
module list
env
fi

#####################################
Expand Down
1 change: 1 addition & 0 deletions jobs/JHAFS_HRDGRAPHICS
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export RUN_ENVIR=${envir:-prod}
if [ "$RUN_ENVIR" = prod ]; then
source ${GPLOThafs}/modulefiles/modulefile.gplot.${machine}
module list
env
fi

#####################################
Expand Down
10 changes: 1 addition & 9 deletions jobs/JHAFS_HYCOMPOST
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,8 @@ export machine=${WHERE_AM_I:-wcoss_cray} # platforms: wcoss_cray, wcoss_dell_p3,
#export RUN_ENVIR=${RUN_ENVIR:-prod}
export RUN_ENVIR=${envir:-prod}
if [ "$RUN_ENVIR" = prod ]; then
#module purge
#module use ${HOMEhafs}/modulefiles
#module load modulefile.hafs.run.${machine}
if [ "$machine" = wcoss_dell_p3 ]; then
module unload NetCDF
module unload HDF5-serial
fi
module use ${HOMEhafs}/sorc/hafs_hycom_utils.fd/modulefiles
module load modulefile.hycom_utils.${machine}
module list
env
fi

#####################################
Expand Down
3 changes: 1 addition & 2 deletions jobs/JHAFS_OCEAN_INIT
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ export machine=${WHERE_AM_I:-wcoss_cray} # platforms: wcoss_cray, wcoss_dell_p3,
#export RUN_ENVIR=${RUN_ENVIR:-prod}
export RUN_ENVIR=${envir:-prod}
if [ "$RUN_ENVIR" = prod ]; then
#module use ${HOMEhafs}/modulefiles
#module load modulefile.hafs.run.${machine}
module list
env
fi

#####################################
Expand Down
4 changes: 1 addition & 3 deletions jobs/JHAFS_POST
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ export machine=${WHERE_AM_I:-wcoss_cray} # platforms: wcoss_cray, wcoss_dell_p3,
#export RUN_ENVIR=${RUN_ENVIR:-prod}
export RUN_ENVIR=${envir:-prod}
if [ "$RUN_ENVIR" = prod ]; then
#module purge
#module use ${HOMEhafs}/modulefiles
#module load modulefile.hafs.run.${machine}
if [ "$machine" = wcoss_dell_p3 ]; then
module unload NetCDF
module unload HDF5-serial
Expand All @@ -94,6 +91,7 @@ if [ "$RUN_ENVIR" = prod ]; then
module use ${HOMEhafs}/sorc/hafs_post.fd/modulefiles
module load ${machine}
module list
env
fi

#####################################
Expand Down
3 changes: 1 addition & 2 deletions jobs/JHAFS_PRODUCT
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@ export machine=${WHERE_AM_I:-wcoss_cray} # platforms: wcoss_cray, wcoss_dell_p3,
#export RUN_ENVIR=${RUN_ENVIR:-prod}
export RUN_ENVIR=${envir:-prod}
if [ "$RUN_ENVIR" = prod ]; then
#module use ${HOMEhafs}/modulefiles
#module load modulefile.hafs.run.${machine}
module list
env
fi

#####################################
Expand Down
38 changes: 0 additions & 38 deletions modulefiles/modulefile.hafs.base.wcoss_cray

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion modulefiles/modulefile.tools.hera

This file was deleted.

1 change: 0 additions & 1 deletion modulefiles/modulefile.tools.jet

This file was deleted.

1 change: 0 additions & 1 deletion modulefiles/modulefile.tools.orion

This file was deleted.

1 change: 0 additions & 1 deletion modulefiles/modulefile.tools.wcoss_cray

This file was deleted.

1 change: 0 additions & 1 deletion modulefiles/modulefile.tools.wcoss_dell_p3

This file was deleted.

1 change: 0 additions & 1 deletion modulefiles/modulefile.vortextracker.hera

This file was deleted.

1 change: 0 additions & 1 deletion modulefiles/modulefile.vortextracker.jet

This file was deleted.

1 change: 0 additions & 1 deletion modulefiles/modulefile.vortextracker.orion

This file was deleted.

1 change: 0 additions & 1 deletion modulefiles/modulefile.vortextracker.wcoss_cray

This file was deleted.

1 change: 0 additions & 1 deletion modulefiles/modulefile.vortextracker.wcoss_dell_p3

This file was deleted.

24 changes: 2 additions & 22 deletions sorc/build_hycom_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,10 @@ if [ $target = wcoss_cray ]; then
export DM_CC="cc -static"
fi

module use hafs_hycom_utils.fd/modulefiles
module load modulefile.hycom_utils.$target
module use ../modulefiles
module load modulefile.hafs.$target
module list

#export NETCDF_INCLUDE=${NETCDF_INCLUDE:-"-I${NETCDF}/include"}
#export NETCDF_LDFLAGS=${NETCDF_LDFLAGS:-"-L${NETCDF}/lib -lnetcdf -lnetcdff"}
## export NETCDF_INCLUDE="-I${NETCDF}/include"
## export NETCDF_LDFLAGS="-L${NETCDF}/lib -lnetcdff -lnetcdf"

##export HDF5_INCLUDE=${HDF5_INCLUDE:-"-I${HDF5}/include"}
#export HDF5_LDFLAGS=${HDF5_LDFLAGS:-"-L${HDF5}/lib -lhdf5_hl -lhdf5hl_fortran -lhdf5 -lhdf5_fortran"}
##export HDF5_LDFLAGS=${HDF5_LDFLAGS:-"-L${HDF5}/lib -lhdf5_hl -lhdf5"}

#export HDF5_LDFLAGS="-L${HDF5}/lib -lhdf5_hl -lhdf5hl_fortran -lhdf5 -lhdf5_fortran -lz";
#export NETCDF_LDFLAGS="-L${NETCDF}/lib -lnetcdff -lnetcdf -lz ${HDF5_LDFLAGS}";

cd hafs_hycom_utils.fd/libs
if [ -d "build" ]; then
rm -rf build
Expand Down Expand Up @@ -52,14 +40,6 @@ fi
make -j 8 VERBOSE=1
make install

# Ensure a clean compile:
#make -i clean
#find . -name '*.o' -o -name '*.a' -o -name '*.mod' | xargs rm -f
#rm -f ./exec/*

# Compile hycom_utils
#make -i -f makefile all

cd ../

exit
Loading

0 comments on commit ec3760f

Please sign in to comment.