From ef7d5d6bd2d3b20f8d9744df5c4355a45d86605e Mon Sep 17 00:00:00 2001 From: yyyaaa111 <2393110978@qq.com> Date: Tue, 16 Dec 2025 19:10:50 +0800 Subject: [PATCH 1/2] update templates/wrf/4.7.1/data.wrf.arm.cpu.config --- templates/wrf/4.7.1/data.wrf.arm.cpu.config | 23 +++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/templates/wrf/4.7.1/data.wrf.arm.cpu.config b/templates/wrf/4.7.1/data.wrf.arm.cpu.config index 6693f1ee..70b3e0f0 100644 --- a/templates/wrf/4.7.1/data.wrf.arm.cpu.config +++ b/templates/wrf/4.7.1/data.wrf.arm.cpu.config @@ -3,6 +3,7 @@ [DOWNLOAD] wrf/4.7.1 https://github.com/wrf-model/WRF/releases/download/v4.7.1/v4.7.1.tar.gz WRFV4.7.1.tar.gz +conus12km https://www2.mmm.ucar.edu/wrf/src/conus12km.tar.gz [DEPENDENCY] set -e @@ -32,6 +33,8 @@ module load bisheng${BISHENG_VERSION}-hmpi${HMPI_VERSION}/pnetcdf/1.14.0 ./jarvis -install netcdf/4.9.3/clang bisheng+mpi module load bisheng${BISHENG_VERSION}-hmpi${HMPI_VERSION}/netcdf-clang/4.9.3 +rm -rf ${JARVIS_TMP}/WRFV4.7.1 +cd ${JARVIS_TMP} tar -xvf ${JARVIS_DOWNLOAD}/WRFV4.7.1.tar.gz [ENV] @@ -46,7 +49,7 @@ module load bisheng/hmpi${HMPI_VERSION} module use software/module* module load bisheng${BISHENG_VERSION}/jasper/1.900.2 module load bisheng${BISHENG_VERSION}-hmpi${HMPI_VERSION}/hdf5-clang/1.13.0 -module load bisheng${BISHENG_VERSION}-hmpi${HMPI_VERSION}/pnetcdf/1.12.1 +module load bisheng${BISHENG_VERSION}-hmpi${HMPI_VERSION}/pnetcdf/1.14.0 module load bisheng${BISHENG_VERSION}-hmpi${HMPI_VERSION}/netcdf-clang/4.9.3 export WRFIO_NCD_LARGE_FILE_SUPPORT=1 @@ -60,7 +63,7 @@ export JASPREINC=${JASPER_PATH}/include export CPPFLAGS="-I${HDF5}/include -I${PNETCDF}/include -I${NETCDF}/include" export LDFLAGS="-L${HDF5}/lib -L${PNETCDF}/lib -L${NETCDF}/lib -lnetcdf -lnetcdff -lpnetcdf -lhdf5_hl -lhdf5 -lz" export CC=mpicc CXX=mpicxx FC=mpif90 F77=mpif90 F90=mpif90 -export WRF_DIR=${JARVIS_ROOT}/WRFV4.7.1 +export WRF_DIR=${JARVIS_TMP}/WRFV4.7.1 export MPI_LIB="-L${HMPI_PATH}/lib -lmpi -lomp" export INCLUDE=${WRF_DIR}/include:$INCLUDE export KML_LIB=${KML_BISHENG_PATH}/lib @@ -70,25 +73,33 @@ export PATH=${JARVIS_ROOT}/WRFV4.7.1/main:${JARVIS_ROOT}/WRFV4.7.1/external/io_n [APP] app_name = WRF build_dir = ${WRF_DIR} -binary_dir = ${WRF_DIR}/run +binary_dir = case_dir = ${CASE_DIR} [BUILD] set -x -cd ${JARVIS_ROOT}/WRFV4.7.1 +cd ${JARVIS_TMP}/WRFV4.7.1 sed -i "2181c\SFC = flang" arch/configure.defaults sed -i "2182c\SCC = clang" arch/configure.defaults sed -i "2183c\CCOMP = clang" arch/configure.defaults echo -e "12\n1" | ./configure -./compile -j 16 em_real 2>&1 | tee -a compile.log +./compile -j $(nproc) em_real 2>&1 | tee -a compile.log + +mkdir -p ${WRF_DIR}/case +cd ${WRF_DIR}/case +rm -rf conus12km +tar -xvf $JARVIS_DOWNLOAD/conus12km.tar.gz +rsync -av --exclude='namelist.input' $JARVIS_TMP/WRFV4.7.1/run/* conus12km/ +cd conus12km +ln -sf $JARVIS_TMP/WRFV4.7.1/main/*.exe ./ [CLEAN] ./clean -a [RUN] -run = mpirun --allow-run-as-root -n 32 -x OMP_NUM_THREADS=1 -bind-to core ${WRF_DIR}/run/wrf.exe +run = mpirun --allow-run-as-root -n $(nproc) -x OMP_NUM_THREADS=1 -bind-to core ./wrf.exe binary = nodes = 1 -- Gitee From 9e1d690eb01e68e7ac978117baaad5a0d74e34dc Mon Sep 17 00:00:00 2001 From: yyyaaa111 <2393110978@qq.com> Date: Tue, 16 Dec 2025 19:58:44 +0800 Subject: [PATCH 2/2] update --- templates/wrf/4.7.1/data.wrf.arm.cpu.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/wrf/4.7.1/data.wrf.arm.cpu.config b/templates/wrf/4.7.1/data.wrf.arm.cpu.config index 70b3e0f0..dbaa1946 100644 --- a/templates/wrf/4.7.1/data.wrf.arm.cpu.config +++ b/templates/wrf/4.7.1/data.wrf.arm.cpu.config @@ -85,7 +85,7 @@ sed -i "2182c\SCC = clang" arch/configure.defaults sed -i "2183c\CCOMP = clang" arch/configure.defaults echo -e "12\n1" | ./configure -./compile -j $(nproc) em_real 2>&1 | tee -a compile.log +./compile -j 8 em_real 2>&1 | tee -a compile.log mkdir -p ${WRF_DIR}/case cd ${WRF_DIR}/case -- Gitee