New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
user/techene/TP_live (diff) – NEMO

Changes between Version 7 and Version 8 of user/techene/TP_live


Ignore:
Timestamp:
2021-02-10T16:28:07+01:00 (3 years ago)
Author:
techene
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • user/techene/TP_live

    v7 v8  
    2929* check the command you used to compile ! 
    3030 
     31 
     32 
    3133== Then run the code 
    3234{{{ 
     
    4951The run procedure is written in README_run. 
    5052 
     53 
     54 
    5155== Look at the output 
    5256{{{ 
     
    6569nn_leapy = 0  
    6670}}} 
    67 with these parameters 
     71with these parameters... run again a NEMO simulation (check LD path is OK) 
     72{{{ 
     73mpirun -np 4 ./nemo 
     74}}} 
     75To speed up NEMO divides the domain into 4 part (in this case). Now you have to gather again. It seems that there is a bug in NEMO rebuilt. So you have to output all the files by proc and rebuild the file "by hand". 
    6876{{{ 
    6977rm PAC2_1m_19940101_19941231_grid_T.nc 
     
    7179}}} 
    7280 
    73 Now you can visualise with ncview 
     81Now you can visualise the whole bassin with ncview. 
     82 
    7483{{{ 
    7584rm PAC2_1m_19940101_19941231_grid_T.nc  
     
    91100./rebuild -o PAC2_1d_19940101_19941231_grid_W.nc PAC2_1m_19940101_19941231_grid_W_00* 
    92101}}} 
     102 
     103 
     104 
     105== This was the first year 
     106Now we can run interesting things...  
     107The first simulation ran 1 year but NEMO is able to restart after this one year.  
     108 
     109=== Run the second year  
     110In order to produce this new simulation you have to change the parameters file here called 'namelist_cfg'.   
     111{{{ 
     112vi namelist_cfg 
     113}}} 
     114 
     115To tell NEMO to restart from previous simulation results you have to modify it the namrun block as such.  
     116{{{ 
     117&namrun 
     118:  
     119ln_rstart    = .true. 
     120nn_rstctl    =    2    
     121cn_ocerst_in = PAC2_*_restart  (with the correct name of restart file) 
     122nn_it000= 4381 (nn_itend year before +1) avec un pas de temps de 2h 
     123nn_itend= 1year duration = 4380+4*4380 = 21900 
     124}}} 
     125nn_it000 is the first time step of the first year we have to simulate which is actually the second year of the bunch. nn_itend is the end of the bunch if year we want to simulate. cn_ocerst_in is the pattern for the restart file name. [[BR]] 
     126 
     127All parameters from a student. 
     128{{{ 
     129cn_exp = "PAC2" ! experience name 
     130nn_it000 = 4381 ! first time step 
     131nn_itend = 21900 ! last time step 
     132nn_date0 = 19940101 ! date at nit_0000 (format yyyymmdd) used if ln_rstart=F or (ln_rstart=T and nn_rstctl=0 or 1) 
     133nn_leapy = 0 ! Leap year calendar (1) or not (0) 
     134ln_rstart = .true. ! start from rest (F) or from a restart file (T) 
     135cn_ocerst_in = "PAC2_00004380_restart" ! suffix of ocean restart name (input) 
     136cn_ocerst_indir = "." ! directory from which to read input ocean restarts 
     137nn_rstctl = 2 ! = 2 nn_date0 read in restart ; nn_it000 : check consistancy between namelist and restart  
     138}}}