Changeset 4360


Ignore:
Timestamp:
Dec 1, 2022, 3:32:26 AM (2 years ago)
Author:
fhourdin
Message:

replay tool details

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/Replay/replay_equip.sh

    r4353 r4360  
    151151esac
    152152echo '! <<< dump_param_open'
    153 for var in $* ; do echo 'rec_length=rec_length+kind('$var')*size(['$var'])' ; done
     153for var in $* ; do echo 'rec_length_replay=rec_length_replay+kind('$var')*size(['$var'])' ; done
    154154cat <<eod
    155 open(${fort},file='dump_param_${inout}.bin',form='unformatted',access='direct',recl=rec_length)  ! $replay_comment
     155open(${fort},file='dump_param_${inout}.bin',form='unformatted',access='direct',recl=rec_length_replay)  ! $replay_comment
    156156eod
    157157echo '! dump_param_open >>> '
     
    312312USE IOIPSL, ONLY : getin
    313313IMPLICIT NONE
    314 integer :: ifin,irec,it,rec_length=0,replay_irec0=1,replay_nt=1000
     314integer :: ifin,irec,it,rec_length_replay=0,replay_irec0=1,replay_nt=1000
    315315eod
    316316grep 'intent.*::' input | sed -e 's/ //g' -e 's/,intent(.*[nt])//'>> call_param_replay.F90
     
    359359\rm $paraminc1
    360360cat> $paraminc1 <<eod
    361 logical, save :: first=.true.
    362 integer, save :: rec_length=0,irec=0
    363 if (first) then
     361logical, save :: first_replay=.true.
     362integer, save :: rec_length_replay=0,irec=0
     363if (first_replay) then
    364364eod
    365365dump_param_open out $varin0 >> $paraminc1
    366366cat>> $paraminc1 <<eod
    367 first=.false.
     367first_replay=.false.
    368368endif
    369369irec=irec+1
Note: See TracChangeset for help on using the changeset viewer.