410 | | * Create a coupler restart file `flxat.nc` using the end of the LMDZOR run |
411 | | |
412 | | You will need to download and install |
| 410 | * Create a coupler restart file `flxat.nc` using the end of the previous LMDZOR run |
| 411 | You will need to download and run the [wiki:Doc/Tools#CPLRESTART CPLRESTART] tools. |
| 412 | |
| 413 | In some working directory download the CPLRESTART tools from the "IPSL forge" svn repository with: |
| 414 | {{{ |
| 415 | svn co http://forge.ipsl.jussieu.fr/igcmg/svn/TOOLS/CPLRESTART . |
| 416 | }}} |
| 417 | |
| 418 | This will create a CPLRESTART directory. |
| 419 | Use `CreateRestartAtm4Oasis.bash` shell script to create the `flxat.nc` file from the `histmth.nc` file for the last year or your previous LMDZOR run. |
| 420 | {{{ |
| 421 | CreateRestartAtm4Oasis.bash --oce ORCA2.3 $PATHTOFILE/LMDZOR_18690101_18691231_1M_histmth.nc |
| 422 | }}} |
| 423 | |
| 424 | The `--oce ORCA2.3` will just write some information in the `flxat` file and name it accordingly to help you remember the origin of this file. |
| 425 | You may need to adjust the modules loaded to make the shell script and its associated python script `create_flxat.py` work on your machine: |
| 426 | {{{ |
| 427 | module purge # works on irene skl with redhat 7 |
| 428 | module load hdf5 |
| 429 | module load netcdf-c |
| 430 | module load nco/4.9.1 |
| 431 | module load cdo/1.9.5 |
| 432 | module load python3/3.7.2 |
| 433 | module load datadir/igcmg |
| 434 | module list |
| 435 | }}} |
| 436 | |
| 437 | * You can now run your MOSAIX simulation |
| 438 | Fill your config.card in order to: |
| 439 | ** restart all the oceanic components from the MOSAIC coupled simulation |
| 440 | ** restart the atmosphere and vegetation components from the LMDZOR forced simulation |
| 441 | ** restart the coupler from initial state files: |
| 442 | {{{ |
| 443 | #======================================================================== |
| 444 | #D-- Restarts - |
| 445 | [Restarts] |
| 446 | |
| 447 | ... |
| 448 | |
| 449 | #======================================================================== |
| 450 | #D-- CPL - |
| 451 | [CPL] |
| 452 | WriteFrequency="1M" |
| 453 | # If config_Restarts_OverRule == 'n' next 4 params are read |
| 454 | Restart= n |
| 455 | ... |
| 456 | |
| 457 | }}} |
| 458 | |
| 459 | Lastly, modify the `COMP/oasis.card` file to get the initial files for the coupler: |
| 460 | {{{ |
| 461 | [InitialStateFiles] |
| 462 | List= (/ccc/work/cont003/gen2212/nguyens/PALEO/CPLRESTART/PIMX/flxat_LMD9695_maskFrom_ORCA2.3.nc, flxat.nc), \ |
| 463 | (${R_IN}/RESTART/IPSLCM5A2/PROD/piControl/CM5A2.1.pi.debug/CPL/Restart/CM5A2.1.pi.debug_50091231_sstoc.nc, sstoc.nc) |
| 464 | }}} |
| 465 | '''You can now run your MOSAIX coupled simulation extending the previous MOSAIC one''' |
| 466 | |