Skip to content

Commit

Permalink
Fixed ulimit and added missing *.TBL fils
Browse files Browse the repository at this point in the history
  • Loading branch information
TrupeshKumarPatel committed May 23, 2024
1 parent 9af16c7 commit d72f658
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
6 changes: 4 additions & 2 deletions singularity/templates/extern/install_extern_libraries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ echo "-- Now Installing External Library noah-owp-modular ..."
echo "-----------------------------------------------------------"
cd /ngen/extern/noah-owp-modular
# cmake -B cmake_build -S .
cmake -DnetCDF_MOD_PATH=/usr/include/openmpi-x86_64/ -B cmake_build -S .
cmake -DNETCDF_MODULE_DIR=/usr/lib64/gfortran/modules/openmpi/ -B cmake_build -S .
cmake --build cmake_build --target surfacebmi -- -j 2

echo "==========================================================="
Expand Down Expand Up @@ -87,7 +87,9 @@ cp /tmp/guide/HelloNGEN.sh /ngen/HelloNGEN.sh
chown -R root /dmod /ngen /root
chmod a+x /dmod/bin/* /ngen/HelloNGEN.sh /root
find /ngen/extern/ -name "*.so*" -exec ln -s "{}" /dmod/shared_libs/ \;

find /ngen/extern/noah-owp-modular -type f -iname "*.TBL" -exec cp '{}' /dmod/datasets/static \;
ls -ahl /dmod/shared_libs
echo "==========================================================="
ls -ahl /dmod/datasets/static
echo "==========================================================="
echo "==========================================================="
9 changes: 9 additions & 0 deletions singularity/templates/guide/HelloNGEN.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ MAGENTA='\e[35m'
CYAN='\e[36m'
RESET='\e[0m'

# Increasing `ulimit` to Open files
ulimit -n 500000

# Loading Lmod
source /etc/profile.d/modules.sh

# Loading OpenMPI module for Parallel Run
module load mpi

workdir="${1:-/ngen}"
cd "${workdir}" || { echo -e "${RED}Failed to change directory to ${workdir}${RESET}"; exit 1; }
set -e
Expand Down

0 comments on commit d72f658

Please sign in to comment.