User Tools

Site Tools


how_to_perturb_ocean_restarts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
how_to_perturb_ocean_restarts [2017/07/19 08:57]
vsicardi
how_to_perturb_ocean_restarts [2019/02/07 14:09] (current)
vsicardi
Line 10: Line 10:
 **gener_pertubation.bash**, available in GitLab under CPG tool project (https://earth.bsc.es/gitlab/es/cpg_tools/tree/PerturbRestart/prep_restarts) **gener_pertubation.bash**, available in GitLab under CPG tool project (https://earth.bsc.es/gitlab/es/cpg_tools/tree/PerturbRestart/prep_restarts)
  
-2-As practical example: consider that your chunck n3 failed for an instability problem, you have to perturb the restarts of the chunck n2. You can decide how many restarts you want to perturb, just   one, of all of them. Normally you have many restarts as the number of processors you are using in NEMO. +2-As practical example: consider that your chunk n3 failed for an instability problem, you have to perturb the restarts of the chunk n2. You can decide how many restarts you want to perturb, just   one, of all of them. Normally you have many restarts as the number of processors you are using in NEMO. 
  
-So, go to the your run directory (with EC-Earth 3.2.2 something like EXP_ID_/STARTDATE/fc#/runtime/NEMO_restart_#. Please note that with different version of EC-Earth, the path can be slightly different) where are located all the ocean restarts  and run gener_pertubation.bash with the name of the restart and the n of restarts to perturb.+Go to  your run directory, make a backup of the restart folder you want to perturb, just in case (with EC-Earth 3.2.2 the path is something like EXP_ID_/STARTDATE/fc#/runtime/NEMO_restart_#. Please note that with different version of EC-Earth, the path can be slightly different) and run gener_pertubation.bash specifying the name of the restarts and the n of restarts to perturb.
 For example: For example:
  
-gener_pertubation.bash a0aj_00019536_restart_oce_000.nc 3 +<code> gener_pertubation.bash a0aj_00019536_restart_oce_000.nc 3 </code>
  
-It will automatically generate 3 perturbed restarts. Change the names of these new restarts to the original names  and run your experiment from the last chuck that failed.+It will automatically generate 3 perturbed restarts. Change the names of these new restarts to the original names (or just create a symbolic link)  and run your experiment from the last chuck that failed.
  
  
-You may want to perturb all the restarts you have, you would like to do loop over all the restarts, perturb then and even change the names to the original ones.+You may want to perturb all the restarts you have and to do so you need do loop over all the restarts, perturb then and change the names to the original ones.
  
-In case you want to perturb all the restarts, here there is simple example of loop script that does the job: +Just as example, here there is simple loop script that does the job: 
  
    
Line 32: Line 32:
   file=a0bb_00078912_restart_oce_0${num3}.nc                            file=a0bb_00078912_restart_oce_0${num3}.nc                         
   echo $file   echo $file
-  .  gener_perturbation.bash $file 1+  ./gener_perturbation.bash $file 1
  mv a0bb_00078912_restart_oce_0${num3}_fc0.nc $file                      mv a0bb_00078912_restart_oce_0${num3}_fc0.nc $file                    
 done </code> done </code>
how_to_perturb_ocean_restarts.1500454660.txt.gz · Last modified: 2017/07/19 08:57 by vsicardi