Skip to content

Instantly share code, notes, and snippets.

@bishtgautam
Created February 14, 2024 19:10
Show Gist options
  • Save bishtgautam/712261d33d650dac70c9a8dbfa094899 to your computer and use it in GitHub Desktop.
Save bishtgautam/712261d33d650dac70c9a8dbfa094899 to your computer and use it in GitHub Desktop.
Notes for mksurfdata_map
# Perlmutter: 2024-02-14
module -q unload cray-hdf5-parallel
module -q unload cray-netcdf-hdf5parallel
module -q unload cray-parallel-netcdf
module -q unload cray-netcdf
module -q unload cray-hdf5
module -q unload PrgEnv-gnu
module -q unload PrgEnv-intel
module -q unload PrgEnv-nvidia
module -q unload PrgEnv-cray
module -q unload PrgEnv-aocc
module -q unload intel
module -q unload intel-oneapi
module -q unload nvidia
module -q unload aocc
module -q unload cudatoolkit
module -q unload climate-utils
module -q unload craype-accel-nvidia80
module -q unload craype-accel-host
module -q unload perftools-base
module -q unload perftools
module -q unload darshan
module load PrgEnv-intel/8.3.3
module load intel/2023.1.0
module load cray-libsci/23.02.1.1
module load craype-accel-host
module load craype/2.7.20
module load cray-hdf5
module load cray-netcdf
cd components/elm/tools/mksurfdata_map
# compile
export USER_LDFLAGS="-L$NETCDF_DIR/lib -lnetcdf -lnetcdff -lnetcdf_intel"
export USER_LDFLAGS=$USER_LDFLAGS" -L$HDF5_DIR/lib -lhdf5 -lhdf5_fortran -lhdf5_cpp -lhdf5_hl_intel -lhdf5hl_fortran_intel"
USER_FC=ifort LIB_NETCDF="`nc-config --libdir`" INC_NETCDF="`nf-config --includedir`" make VERBOSE=1
# create a namelist file
cd ../
./mksurfdata.pl -res 0.9x1.25 -years 1850 -d -dinlc $DIN_LOC_ROOT
# run the code on an interactive queue
srun -n 1 ./mksurfdata_map < namelist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment