Changes between Version 7 and Version 8 of user/techene/TP_live
- Timestamp:
- 2021-02-10T16:28:07+01:00 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
user/techene/TP_live
v7 v8 29 29 * check the command you used to compile ! 30 30 31 32 31 33 == Then run the code 32 34 {{{ … … 49 51 The run procedure is written in README_run. 50 52 53 54 51 55 == Look at the output 52 56 {{{ … … 65 69 nn_leapy = 0 66 70 }}} 67 with these parameters 71 with these parameters... run again a NEMO simulation (check LD path is OK) 72 {{{ 73 mpirun -np 4 ./nemo 74 }}} 75 To 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". 68 76 {{{ 69 77 rm PAC2_1m_19940101_19941231_grid_T.nc … … 71 79 }}} 72 80 73 Now you can visualise with ncview 81 Now you can visualise the whole bassin with ncview. 82 74 83 {{{ 75 84 rm PAC2_1m_19940101_19941231_grid_T.nc … … 91 100 ./rebuild -o PAC2_1d_19940101_19941231_grid_W.nc PAC2_1m_19940101_19941231_grid_W_00* 92 101 }}} 102 103 104 105 == This was the first year 106 Now we can run interesting things... 107 The first simulation ran 1 year but NEMO is able to restart after this one year. 108 109 === Run the second year 110 In order to produce this new simulation you have to change the parameters file here called 'namelist_cfg'. 111 {{{ 112 vi namelist_cfg 113 }}} 114 115 To tell NEMO to restart from previous simulation results you have to modify it the namrun block as such. 116 {{{ 117 &namrun 118 : 119 ln_rstart = .true. 120 nn_rstctl = 2 121 cn_ocerst_in = PAC2_*_restart (with the correct name of restart file) 122 nn_it000= 4381 (nn_itend year before +1) avec un pas de temps de 2h 123 nn_itend= 1year duration = 4380+4*4380 = 21900 124 }}} 125 nn_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 127 All parameters from a student. 128 {{{ 129 cn_exp = "PAC2" ! experience name 130 nn_it000 = 4381 ! first time step 131 nn_itend = 21900 ! last time step 132 nn_date0 = 19940101 ! date at nit_0000 (format yyyymmdd) used if ln_rstart=F or (ln_rstart=T and nn_rstctl=0 or 1) 133 nn_leapy = 0 ! Leap year calendar (1) or not (0) 134 ln_rstart = .true. ! start from rest (F) or from a restart file (T) 135 cn_ocerst_in = "PAC2_00004380_restart" ! suffix of ocean restart name (input) 136 cn_ocerst_indir = "." ! directory from which to read input ocean restarts 137 nn_rstctl = 2 ! = 2 nn_date0 read in restart ; nn_it000 : check consistancy between namelist and restart 138 }}}