Last change
on this file since 4530 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
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | |
---|
3 | routine=wake # Nom par défaut de la subroutine rejouee. |
---|
4 | # Est écrasé par l'argument $1 si fourni |
---|
5 | |
---|
6 | if [ $# -ge 1 ] ; then routine=$1 ; fi |
---|
7 | |
---|
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 |
---|
13 | LMDZdir=`pwd | sed -e 's/.1D.*$//'` |
---|
14 | |
---|
15 | |
---|
16 | #------------------------------------------------------------------------------------------ |
---|
17 | # Preparation des fichieers fortran |
---|
18 | #------------------------------------------------------------------------------------------ |
---|
19 | cd $LMDZdir/modipsl/modeles/LMDZ/libf/phy$phys |
---|
20 | replay_clean.sh |
---|
21 | replay_equip.sh $routine |
---|
22 | # If wanting to equip other routines with nc outputs only |
---|
23 | # replay_equip.sh -nconly -pre TOTO other_routine |
---|
24 | cd - |
---|
25 | |
---|
26 | #------------------------------------------------------------------------------------------ |
---|
27 | # Compilation et execution |
---|
28 | #------------------------------------------------------------------------------------------ |
---|
29 | \rm lmdz1d.e replay1d.e |
---|
30 | # Compilation de lmdz1d |
---|
31 | ./compile.sh |
---|
32 | # Compilation de replay1d |
---|
33 | ./compile.sh replay1d |
---|
34 | # Execution de lmdz1d.e |
---|
35 | ./lmdz1d.e |
---|
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 |
---|
41 | ./replay1d.e |
---|
Note: See
TracBrowser
for help on using the repository browser.