Last change
on this file since 4637 was
4346,
checked in by fhourdin, 2 years ago
|
New version with -nconly option
Allows to output all the variables of a routine in the phys.nc
file, even with not replaying this particular routine.
|
File size:
1.6 KB
|
Rev | Line | |
---|
[4337] | 1 | #!/bin/bash |
---|
| 2 | |
---|
[4344] | 3 | routine=wake # Nom par défaut de la subroutine rejouee. |
---|
| 4 | # Est écrasé par l'argument $1 si fourni |
---|
| 5 | |
---|
[4337] | 6 | if [ $# -ge 1 ] ; then routine=$1 ; fi |
---|
| 7 | |
---|
[4344] | 8 | #------------------------------------------------------------------------------------------ |
---|
| 9 | # Détection automatique des répertoires contenant le modèle et de la physique (libf/phylmd$pys) |
---|
| 10 | #------------------------------------------------------------------------------------------ |
---|
| 11 | simdir=`pwd | sed -e 's/^.*EXEC.//' -e 's:/.*$::'` |
---|
| 12 | if [ "`echo $simdir | grep lmd`" = "" ] ; then phys=lmd ; else phys=`echo $simdir | sed -e 's/^.*lmd/lmd/'` ; fi |
---|
[4337] | 13 | LMDZdir=`pwd | sed -e 's/.1D.*$//'` |
---|
[4344] | 14 | |
---|
| 15 | |
---|
| 16 | #------------------------------------------------------------------------------------------ |
---|
| 17 | # Preparation des fichieers fortran |
---|
| 18 | #------------------------------------------------------------------------------------------ |
---|
[4337] | 19 | cd $LMDZdir/modipsl/modeles/LMDZ/libf/phy$phys |
---|
| 20 | replay_clean.sh |
---|
| 21 | replay_equip.sh $routine |
---|
[4346] | 22 | # If wanting to equip other routines with nc outputs only |
---|
| 23 | # replay_equip.sh -nconly -pre TOTO other_routine |
---|
[4337] | 24 | cd - |
---|
| 25 | |
---|
[4344] | 26 | #------------------------------------------------------------------------------------------ |
---|
| 27 | # Compilation et execution |
---|
| 28 | #------------------------------------------------------------------------------------------ |
---|
[4337] | 29 | \rm lmdz1d.e replay1d.e |
---|
[4344] | 30 | # Compilation de lmdz1d |
---|
[4337] | 31 | ./compile.sh |
---|
[4344] | 32 | # Compilation de replay1d |
---|
[4337] | 33 | ./compile.sh replay1d |
---|
[4344] | 34 | # Execution de lmdz1d.e |
---|
[4337] | 35 | ./lmdz1d.e |
---|
[4344] | 36 | # Sauvegarde du fichier phys.nc |
---|
| 37 | \mv -f phys.nc phys0.nc |
---|
| 38 | # Renomage du fichier binaire contenant les variables de l'interface, pour la lecture en replay |
---|
| 39 | \mv -f dump_param_out.bin dump_param_in.bin |
---|
| 40 | # Lancement du replay |
---|
[4337] | 41 | ./replay1d.e |
---|
Note: See
TracBrowser
for help on using the repository browser.