This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
how_to_perturb_ocean_restarts [2017/07/19 11:00] vsicardi |
how_to_perturb_ocean_restarts [2017/07/20 08:32] vsicardi |
||
---|---|---|---|
Line 17: | Line 17: | ||
< | < | ||
- | 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 | + | 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 </ | done </ |