Changeset 4344 for BOL/Replay


Ignore:
Timestamp:
Nov 10, 2022, 2:09:18 PM (2 years ago)
Author:
fhourdin
Message:

Documentation

Location:
BOL/Replay
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • BOL/Replay/Readme

    r4337 r4344  
     1---------------------------------------------------------------------------
     2
    13               *****  replay tools  ***********
    24
    35Developed by F. Hourdin, 2022, frederic.hourdin@lmd.ipsl.fr
    46
    5 The idea is to rerun a unique from the LMDZ physcs package after a first
    6 simulations.
     7---------------------------------------------------------------------------
     8
     9Purpose :
     10---------
     11
     12The idea is to rerun a unique subroutine (which could istelf call others) from
     13the LMDZ physcs package after a first simulations (i.e. routines in
     14LMDZ/libf/phylmd).
    715The variables in the interface of the routine are stored in binary files
    816(dump_ini.bin and dump_param.bin).
    9 The tools also creates automatically an netcdf file with all the variables of
    10 the subroutine stored at each time-step.
     17The tools also creates automatically an netcdf file phys.nc with all the
     18variables of the subroutine stored at each time-step.
    1119
    12201D : run lmdz1d.e first and then replay1d.e
     
    1624   Available in sequential mode only (no parallel version so far)
    1725
     26
    1827Contains :
     28---------
     29
    1930* replay_equip.sh
    2031  The main script, to be run on the phylmd directory.
    2132  It equips the fortran routine before compilation.
    2233  The main documentation of the replay tools is in this script
     34
    2335* replay_param.sh
    2436  a first, simpler, but less powerfull version of replay_equip.sh
     37
    2538* replay_clean.sh
    2639  to be run on phylmd to clean all what was added automatically by
    2740  replay_equip.sh
     41
    2842* replay_1D.sh
    2943  A script to run automatically replay tools in SCM mode on
    3044  1D/EXEC/...
     45
     46It is suggested to add
     47export PATH=$PATH:~/LMDZ/Replay
     48(or any other location of the Replay directory on you computer)
     49so that you can invoke the script from wherever on your computer.
     50
     51
     52Available through
     53-----------------
     54svn checkout https://svn.lmd.jussieu.fr/LMDZ/BOL/Replay
     55Rm : 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  
    11#!/bin/bash
    22
    3 routine=wake
     3routine=wake # Nom par défaut de la subroutine rejouee.
     4             # Est écrasé par l'argument $1 si fourni
     5
    46if [ $# -ge 1 ] ; then routine=$1 ; fi
    57
    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#------------------------------------------------------------------------------------------
     11simdir=`pwd | sed -e 's/^.*EXEC.//' -e 's:/.*$::'`
     12if [ "`echo $simdir | grep lmd`" = "" ] ; then phys=lmd ; else phys=`echo $simdir | sed -e 's/^.*lmd/lmd/'` ; fi
    713LMDZdir=`pwd | sed -e 's/.1D.*$//'`
     14
     15
     16#------------------------------------------------------------------------------------------
     17# Preparation des fichieers fortran
     18#------------------------------------------------------------------------------------------
    819cd $LMDZdir/modipsl/modeles/LMDZ/libf/phy$phys
    9 
    1020replay_clean.sh
    1121replay_equip.sh $routine
    1222cd -
    1323
     24#------------------------------------------------------------------------------------------
     25# Compilation et execution
     26#------------------------------------------------------------------------------------------
    1427\rm lmdz1d.e replay1d.e
     28# Compilation de lmdz1d
    1529./compile.sh
     30# Compilation de replay1d
    1631./compile.sh replay1d
     32# Execution de lmdz1d.e
    1733./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
    2039./replay1d.e
Note: See TracChangeset for help on using the changeset viewer.