You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The choice of the external build of the MPICH package enable the use of the MPI library installed on the HPC platform (Intel MPI, etc...), provided that the environment is properly set up (e.g. module load impi-2021.6.0/2021.6.0).
32
+
30
33
### Usage of nemo\_rebuild.py
31
34
35
+
First of all the correct environment needs to be set up with:
36
+
```
37
+
module load impi-2021.6.0/2021.6.0 # or whatever MPI library is available on the HPC platoform
38
+
conda activate nemo_rebuild
39
+
```
40
+
Once the environment is properly set up the script nemo_rebuild.py can be run:
-c, --classic use NetCDF4 Classic format (default: False)
52
62
--verbose Verbose mode
63
+
-V, --version show program's version number and exit
53
64
54
65
Rebuild NEMO/XIOS multiple output/restart files in a single file
55
66
```
@@ -61,24 +72,30 @@ Rebuild NEMO/XIOS multiple output/restart files in a single file
61
72
Examples
62
73
--------
63
74
64
-
#### The rebuild script can be run either sequentially or using MPI parallelization as described below.
75
+
The rebuild script can be run either sequentially or using MPI parallelization as described below.
76
+
77
+
### Sequential run
65
78
66
-
We want to rebuild a set of nemo restart files from ORCA1 configuration. The minimal command line to perform a simple **sequential** reconstruction is
79
+
We want to rebuild a set of NEMO restart files from ORCA1 configuration. The minimal command line to perform a simple **sequential** reconstruction is
67
80
```
68
81
python nemo_rebuild.py -i ORCA1_01305240_restart
69
82
```
70
83
and the script will automatically detect the number of subdomain files.
84
+
In this case it's not mandatory to set up the MPI environment (module load ...).
71
85
72
-
Let's rebuild nemo output files from ORCA025 configuration by using the **MPI** interface to speed up things ...
86
+
### Parallel run
87
+
88
+
Let's rebuild NEMO output files from ORCA025 configuration by using the **MPI** interface to speed up things ...
73
89
```
74
90
mpirun -n N python nemo_rebuild.py -i ORCA025_1m_20000101_20000131_grid_T
75
91
```
76
92
where N is the number of MPI tasks required.
93
+
The number N of MPI tasks cannot exceed the number of subdomains and does not necessarily have to be an integer divisor of the number of subdomains.
77
94
78
-
Install package
79
-
---------------
95
+
Install as a package
96
+
--------------------
80
97
81
-
When installed as package, an executable names nemo\_rebuild\_py will be added to your path, so you can call it from wherever which executees the main python function of the script. The package can be installed by launching
98
+
When installed as a package, an executable named nemo\_rebuild\_py will be added to your path, so one can call it from anywhere, provided that the conda and MPI environments are properly set up. The package can be installed by launching:
0 commit comments