Browse Source

Merge branch '3.3.4.2' of https://gogs.elic.ucl.ac.be/pbarriat/ecearth3 into 3.3.4.2

Pierre-Yves Barriat 5 months ago
parent
commit
8ae5f5e24e
2 changed files with 31 additions and 115 deletions
  1. 31 5
      README.md
  2. 0 110
      REBUILD.md

+ 31 - 5
README.md

@@ -33,6 +33,8 @@ cd ~/models/ecearth_3.3.4.2/sources/oasis3-mct/util/make_dir
 make BUILD_ARCH=ecconf -f TopMakefileOasis3
 ```
 
+> If rebuild, do `make BUILD_ARCH=ecconf -f TopMakefileOasis3 realclean` before
+
 * Compile **xios**:
 
 ```bash
@@ -42,6 +44,8 @@ module load Perl-bundle-CPAN/5.36.1-GCCcore-12.3.0
 ./make_xios --prod --arch ecconf --use_oasis oasis3_mct --netcdf_lib netcdf4_par -j 4
 ```
 
+> If rebuild, add `--full` to the command above
+
 * Compile **IFS**:
 
 ```bash
@@ -49,13 +53,19 @@ cd ~/models/ecearth_3.3.4.2/sources/ifs-36r4
 ./makeifs -j 4
 ```
 
+> If rebuild, do `make BUILD_ARCH=ecconf realclean` before
+
 * Compile **NEMO**:
 
 ```bash
 cd ~/models/ecearth_3.3.4.2/sources/nemo-3.6/CONFIG
+module load Perl-bundle-CPAN/5.36.1-GCCcore-12.3.0
+
 ./makenemo -n ORCA1L75_LIM3 -m ecconf -j4
 ```
 
+> If rebuild, do `rm -rf ~/models/ecearth_3.3.4.2/sources/nemo-3.6/CONFIG/ORCA1L75_LIM3/BLD/` before
+
 * Compile **runoff-mapper**:
 
 ```bash
@@ -63,20 +73,35 @@ cd ~/models/ecearth_3.3.4.2/sources/runoff-mapper/src
 make
 ```
 
+> If rebuild, do `make clean` before
+
 * Compile **lpjg**:
 
 ```bash
 cd ~/models/ecearth_3.3.4.2/sources/lpjg
+module load CMake/3.26.3-GCCcore-12.3.0
+
+mkdir build
+cd build
+cmake ..
 make
 ```
 
+> If rebuild, do `rm -rf ~/models/ecearth_3.3.4.2/sources/lpjg/build` before
+
 ## Run
 
-Check the `ecconf.cfg` the first job script `EC00.sh` and submit
+Check the `ecconf.cfg` the first job script `EC01.sh` and submit
+
+```bash
+cd ~/models/ecearth_3.3.4.2/runtime/classic
+sbatch EC01.sh
+```
 
+Check the first job script `EC02.sh` (same as EC01 with **lpjg**) and submit
 ```bash
 cd ~/models/ecearth_3.3.4.2/runtime/classic
-sbatch EC02.sh
+sbatch EC01.sh
 ```
 
 ### Data
@@ -85,9 +110,10 @@ I prepared all the input files in `/gpfs/scratch/acad/ecearth/data/bsc32/` direc
 
 ### Very first try
 
-|  CC   | Release | RES |  XIOS  | NEMO | IFS | #NODES |  WTIME per YEAR        |
-| ----- | --- | ---- | ------ | -------------- | ------ | ------- | -------------------- |
-| `EC02.sh` | iompi/2022.05 | T255L91_ORCA1L75 |  1  |  128  |   512   |    6       | **83min**       |
+|  CC   | Release | RES |  XIOS  | NEMO | IFS | LPJG | #NODES |  WTIME per YEAR        |
+| ----- | --- | ---- | ------ | -------------- | ---- | ------ | ------- | -------------------- |
+| `EC01.sh` | iomkl/2023a | T255L91_ORCA1L75 |  1  |  98  |   392   |  20  | 4       | **145min**      |
+| `EC02.sh` | iomkl/2023a | T255L91_ORCA1L75 |  1  |  98  |   392   |  20  | 4       | **144min**      |
 
 - 1 year (1850), restart every year
 

+ 0 - 110
REBUILD.md

@@ -1,110 +0,0 @@
-# ReBuild EC-EARTH on LUCIA
-
-EC-Earth is a global coupled climate model. It is developed by a consortium of European research institutions.
-The goal of this project is to adapt this model for our needs in ELIC: install, run management, etc.
-
-## User requirements
-
-First, load the required env modules
-
-```bash
-module purge
-module load EasyBuild/2023a
-MODULEPATH=$MODULEPATH:/gpfs/projects/acad/ecearth/softs/easybuild/2023a/modules/all
-module load netCDF-Fortran/4.6.1-iompi-2023a
-module load CDO/2.2.2-iompi-2023a
-module load NCO/5.1.3-iomkl-2023a
-module load ecCodes/2.31.0-iompi-2023a
-module load Perl-bundle-CPAN/5.36.1-GCCcore-12.3.0
-```
-
-Then, go to your EC-Earth repository (3.3.3.2)
-
-```bash
-cd ~/models/ecearth_3.3.3.2
-```
-
-## ReCompile
-
-* Clean and recompile **oasis**:
-
-```bash
-cd ~/models/ecearth_3.3.3.2/sources/oasis3-mct/util/make_dir
-make BUILD_ARCH=ecconf -f TopMakefileOasis3 clean
-make BUILD_ARCH=ecconf -f TopMakefileOasis3 realclean
-make BUILD_ARCH=ecconf -f TopMakefileOasis3
-```
-
-* Clean and recompile **IFS**:
-
-> !!! change to do in `Makefile.d/Makefile.config.ecconf +57`
-
-> replace:
-
-> CFLAGS                  := -fp-model precise -march=core-avx2
-
-> with:
-
-> CFLAGS                  := -std=gnu90 -fp-model precise -march=core-avx2
-
-```bash
-cd ~/models/ecearth_3.3.3.2/sources/ifs-36r4
-make BUILD_ARCH=ecconf clean
-make BUILD_ARCH=ecconf realclean
-./makeifs -j 4
-```
-
-* Recompile **xios** from scratch:
-
-> !!! change to do in `extern/blitz/blitz/funcs.h +575`
-
-> replace:
-
-> `return BZ_STD_SCOPE(isnan)(a);`
-
-> with:
-
-> `return isnan(a);`
-
-```bash
-cd ~/models/ecearth_3.3.3.2/sources/xios-2.5
-./make_xios --full --prod --arch ecconf --use_oasis oasis3_mct --netcdf_lib netcdf4_par -j 4
-```
-
-* Clean and recompile **NEMO**:
-
-```bash
-cd ~/models/ecearth_3.3.3.2/sources/nemo-3.6/CONFIG
-rm -rf ~/models/ecearth_3.3.3.2/sources/nemo-3.6/CONFIG/ORCA1L75_LIM3/BLD/
-./makenemo -n ORCA1L75_LIM3 -m ecconf -j4
-```
-
-* Clean and recompile **runoff-mapper**:
-
-```bash
-cd ~/models/ecearth_3.3.3.2/sources/runoff-mapper/src
-make clean
-rm -f ~/models/ecearth_3.3.3.2/sources/runoff-mapper/bin/runoff-mapper.exe
-make
-```
-
-## Run
-
-Check the job script `EC00.sh` and compare the changes with your script:
-
-[New EC00.sh](https://gogs.elic.ucl.ac.be/pbarriat/ecearth3/src/master/runtime/classic/EC00.sh)
-
-```bash
-cd
-wget https://gogs.elic.ucl.ac.be/pbarriat/ecearth3/raw/master/runtime/classic/EC00.sh
-cd ~/models/ecearth_3.3.3.2/runtime/classic
-vimdiff my_script.sh ~/EC00.sh
-```
-
-### Data
-
-I prepared all the input files in `/gpfs/scratch/acad/ecearth/data/bsc32/` directory.
-
-## Contributors
-
-- ELIC members [@pbarriat](https://gogs.elic.ucl.ac.be/pbarriat)