Changeset 4344 for BOL/Replay
- Timestamp:
- Nov 10, 2022, 2:09:18 PM (2 years ago)
- Location:
- BOL/Replay
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/Replay/Readme
r4337 r4344 1 --------------------------------------------------------------------------- 2 1 3 ***** replay tools *********** 2 4 3 5 Developed by F. Hourdin, 2022, frederic.hourdin@lmd.ipsl.fr 4 6 5 The idea is to rerun a unique from the LMDZ physcs package after a first 6 simulations. 7 --------------------------------------------------------------------------- 8 9 Purpose : 10 --------- 11 12 The idea is to rerun a unique subroutine (which could istelf call others) from 13 the LMDZ physcs package after a first simulations (i.e. routines in 14 LMDZ/libf/phylmd). 7 15 The variables in the interface of the routine are stored in binary files 8 16 (dump_ini.bin and dump_param.bin). 9 The tools also creates automatically an netcdf file with all the variables of10 the subroutine stored at each time-step.17 The tools also creates automatically an netcdf file phys.nc with all the 18 variables of the subroutine stored at each time-step. 11 19 12 20 1D : run lmdz1d.e first and then replay1d.e … … 16 24 Available in sequential mode only (no parallel version so far) 17 25 26 18 27 Contains : 28 --------- 29 19 30 * replay_equip.sh 20 31 The main script, to be run on the phylmd directory. 21 32 It equips the fortran routine before compilation. 22 33 The main documentation of the replay tools is in this script 34 23 35 * replay_param.sh 24 36 a first, simpler, but less powerfull version of replay_equip.sh 37 25 38 * replay_clean.sh 26 39 to be run on phylmd to clean all what was added automatically by 27 40 replay_equip.sh 41 28 42 * replay_1D.sh 29 43 A script to run automatically replay tools in SCM mode on 30 44 1D/EXEC/... 45 46 It is suggested to add 47 export PATH=$PATH:~/LMDZ/Replay 48 (or any other location of the Replay directory on you computer) 49 so that you can invoke the script from wherever on your computer. 50 51 52 Available through 53 ----------------- 54 svn checkout https://svn.lmd.jussieu.fr/LMDZ/BOL/Replay 55 Rm : svn deposit created from FH laptop through : 56 svn import ./Replay https://svn.lmd.jussieu.fr/LMDZ/BOL/Replay -m "Import initial des outils Replay" 57 -
BOL/Replay/replay_1D.sh
r4337 r4344 1 1 #!/bin/bash 2 2 3 routine=wake 3 routine=wake # Nom par défaut de la subroutine rejouee. 4 # Est écrasé par l'argument $1 si fourni 5 4 6 if [ $# -ge 1 ] ; then routine=$1 ; fi 5 7 6 simdir=`pwd | sed -e 's/^.*EXEC.//' -e 's:/.*$::'` ; if [ "`echo $simdir | grep lmd`" = "" ] ; then phys=lmd ; else phys=`echo $simdir | sed -e 's/^.*lmd/lmd/'` ; fi 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 7 13 LMDZdir=`pwd | sed -e 's/.1D.*$//'` 14 15 16 #------------------------------------------------------------------------------------------ 17 # Preparation des fichieers fortran 18 #------------------------------------------------------------------------------------------ 8 19 cd $LMDZdir/modipsl/modeles/LMDZ/libf/phy$phys 9 10 20 replay_clean.sh 11 21 replay_equip.sh $routine 12 22 cd - 13 23 24 #------------------------------------------------------------------------------------------ 25 # Compilation et execution 26 #------------------------------------------------------------------------------------------ 14 27 \rm lmdz1d.e replay1d.e 28 # Compilation de lmdz1d 15 29 ./compile.sh 30 # Compilation de replay1d 16 31 ./compile.sh replay1d 32 # Execution de lmdz1d.e 17 33 ./lmdz1d.e 18 \mv phys.nc phys0.nc 19 \cp -f dump_param_out.bin dump_param_in.bin 34 # Sauvegarde du fichier phys.nc 35 \mv -f phys.nc phys0.nc 36 # Renomage du fichier binaire contenant les variables de l'interface, pour la lecture en replay 37 \mv -f dump_param_out.bin dump_param_in.bin 38 # Lancement du replay 20 39 ./replay1d.e
Note: See TracChangeset
for help on using the changeset viewer.