File tree Expand file tree Collapse file tree 5 files changed +25
-35
lines changed Expand file tree Collapse file tree 5 files changed +25
-35
lines changed Original file line number Diff line number Diff line change 2
2
path = 2decomp-fft
3
3
url = https://github.com/uDALES/2decomp-fft.git
4
4
5
- [submodule "View3D "]
5
+ [submodule "tools/ View3D "]
6
6
path = tools/View3D
7
- url = https://github.com/jasondegraw/View3D
7
+ url = https://github.com/uDALES/View3D.git
8
+ branch = master
Original file line number Diff line number Diff line change @@ -41,10 +41,10 @@ build_type=$2
41
41
42
42
if [ $system == " icl" ]
43
43
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
45
45
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
48
48
49
49
elif [ $system == " archer" ]
50
50
then
Original file line number Diff line number Diff line change @@ -40,29 +40,21 @@ if [ -f config.sh ]; then
40
40
fi
41
41
42
42
# # set the output directory
43
- outdir=$EPHEMERAL /$exp
43
+ outdir=$DA_WORKDIR /$exp
44
44
45
45
echo " writing job.$exp ."
46
46
47
47
# # 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
66
58
67
59
# # submit job.exp file to queue
68
60
qsub job.$exp
Original file line number Diff line number Diff line change 70
70
71
71
if [ $start == " c" ]; then
72
72
73
+ cd $inputdir
74
+
73
75
# ##### RUN MATLAB SCRIPT through HPC job script
74
76
cat << EOF > pre-job.$iexpnr
75
77
76
78
#PBS -l walltime=24:00:00
77
- #PBS -l select=1:ncpus=8:mem=50gb
79
+ #PBS -l select=1:ncpus=8:mem=64gb
78
80
79
81
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
82
84
83
85
cd $DA_TOOLSDIR
84
86
@@ -88,11 +90,6 @@ export MATLAB_USE_USERWORK=0
88
90
89
91
matlab -nodesktop -nojvm -nosplash -r "expnr=$iexpnr ; write_inputs; quit"
90
92
91
- cd $DA_EXPDIR
92
- cd ..
93
-
94
- mv pre-job.$iexpnr * $DA_EXPDIR /$iexpnr
95
-
96
93
EOF
97
94
98
95
# # submit job.exp file to queue
101
98
102
99
elif [ $start == " l" ]; then
103
100
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
106
103
export MATLAB_USE_USERWORK=0
107
104
cd $DA_TOOLSDIR
108
105
matlab -nodesktop -nojvm -nosplash -r " expnr=$iexpnr ; write_inputs; quit"
You can’t perform that action at this time.
0 commit comments