Skip to content

Commit 2f9c3fc

Browse files
committed
Merge branch 'master' of https://github.com/uDALES/u-dales into heatpump
2 parents a0f096e + 22c293f commit 2f9c3fc

File tree

5 files changed

+25
-35
lines changed

5 files changed

+25
-35
lines changed

.gitmodules

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
path = 2decomp-fft
33
url = https://github.com/uDALES/2decomp-fft.git
44

5-
[submodule "View3D"]
5+
[submodule "tools/View3D"]
66
path = tools/View3D
7-
url = https://github.com/jasondegraw/View3D
7+
url = https://github.com/uDALES/View3D.git
8+
branch = master

tools/View3D

Submodule View3D updated 1 file

tools/build_executable.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ build_type=$2
4141

4242
if [ $system == "icl" ]
4343
then
44-
module load cmake/3.18.2 git/2.14.3 intel-suite/2020.2 mpi/intel-2019.8.254
44+
module load intel/2025a netCDF/4.9.2-iimpi-2023a netCDF-Fortran/4.6.1-iimpi-2023a FFTW/3.3.9-intel-2021a CMake/3.29.3-GCCcore-13.3.0 git/2.45.1-GCCcore-13.3.0
4545
FC=mpiifort
46-
NETCDF_DIR=/apps/netcdf/4.4.1-c
47-
NETCDF_FORTRAN_DIR=/apps/netcdf/4.4.4-fortran
46+
NETCDF_DIR=/sw-eb/software/netCDF/4.9.2-iimpi-2023a
47+
NETCDF_FORTRAN_DIR=/sw-eb/software/netCDF-Fortran/4.6.1-iimpi-2023a
4848

4949
elif [ $system == "archer" ]
5050
then

tools/hpc_execute.sh

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,29 +40,21 @@ if [ -f config.sh ]; then
4040
fi
4141

4242
## set the output directory
43-
outdir=$EPHEMERAL/$exp
43+
outdir=$DA_WORKDIR/$exp
4444

4545
echo "writing job.$exp."
4646

4747
## write new job.exp file for HPC
48-
echo "#PBS -l walltime=${WALLTIME}" > job.$exp
49-
echo "#PBS -l select=${NNODE}:ncpus=${NCPU}:mem=${MEM}" >> job.$exp
50-
51-
## load modules required for the execution
52-
echo "module load intel-suite/2017.6 mpi/intel-2018 cmake/3.14.0 git/2.14.3" >> job.$exp
53-
54-
## copy files to execution and output directory
55-
echo "mkdir -p $outdir" >> job.$exp
56-
echo "cp -r $inputdir/* $outdir" >> job.$exp
57-
58-
## go to execution and output directory
59-
echo "pushd $outdir" >> job.$exp
60-
61-
## execute program with mpi
62-
echo "mpiexec -n $(( $NCPU * $NNODE )) $DA_BUILD $outdir/namoptions.$exp > $outdir/output.$exp 2>&1" >> job.$exp
63-
64-
## gather output files from cores in a single file
65-
echo "$DA_TOOLSDIR/gather_outputs.sh $outdir " >> job.$exp
48+
cat <<EOF > job.$exp
49+
#PBS -l walltime=${WALLTIME}
50+
#PBS -l select=${NNODE}:ncpus=${NCPU}:mem=${MEM}
51+
module load intel/2025a netCDF/4.9.2-iimpi-2023a netCDF-Fortran/4.6.1-iimpi-2023a FFTW/3.3.9-intel-2021a CMake/3.29.3-GCCcore-13.3.0 git/2.45.1-GCCcore-13.3.0
52+
mkdir -p $outdir
53+
cp -r $inputdir/* $outdir
54+
pushd $outdir
55+
mpiexec -n $(( $NCPU * $NNODE )) $DA_BUILD $outdir/namoptions.$exp > $outdir/output.$exp 2>&1
56+
$DA_TOOLSDIR/gather_outputs.sh $outdir
57+
EOF
6658

6759
## submit job.exp file to queue
6860
qsub job.$exp

tools/write_inputs.sh

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,17 @@ popd
7070

7171
if [ $start == "c" ]; then
7272

73+
cd $inputdir
74+
7375
###### RUN MATLAB SCRIPT through HPC job script
7476
cat <<EOF > pre-job.$iexpnr
7577
7678
#PBS -l walltime=24:00:00
77-
#PBS -l select=1:ncpus=8:mem=50gb
79+
#PBS -l select=1:ncpus=8:mem=64gb
7880
7981
module load tools/prod
80-
module load MATLAB/2023a_Update_3
81-
module load gcc/11.2.0
82+
module load MATLAB/2024b
83+
module load GCC/14.2.0
8284
8385
cd $DA_TOOLSDIR
8486
@@ -88,11 +90,6 @@ export MATLAB_USE_USERWORK=0
8890
8991
matlab -nodesktop -nojvm -nosplash -r "expnr=$iexpnr; write_inputs; quit"
9092
91-
cd $DA_EXPDIR
92-
cd ..
93-
94-
mv pre-job.$iexpnr* $DA_EXPDIR/$iexpnr
95-
9693
EOF
9794

9895
## submit job.exp file to queue
@@ -101,8 +98,8 @@ EOF
10198

10299
elif [ $start == "l" ]; then
103100
module load tools/prod
104-
module load MATLAB/2023a_Update_3
105-
module load gcc/11.2.0
101+
module load MATLAB/2024b
102+
module load GCC/14.2.0
106103
export MATLAB_USE_USERWORK=0
107104
cd $DA_TOOLSDIR
108105
matlab -nodesktop -nojvm -nosplash -r "expnr=$iexpnr; write_inputs; quit"

0 commit comments

Comments
 (0)