Changeset 4360
- Timestamp:
- Dec 1, 2022, 3:32:26 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/Replay/replay_equip.sh
r4353 r4360 151 151 esac 152 152 echo '! <<< dump_param_open' 153 for var in $* ; do echo 'rec_length =rec_length+kind('$var')*size(['$var'])' ; done153 for var in $* ; do echo 'rec_length_replay=rec_length_replay+kind('$var')*size(['$var'])' ; done 154 154 cat <<eod 155 open(${fort},file='dump_param_${inout}.bin',form='unformatted',access='direct',recl=rec_length ) ! $replay_comment155 open(${fort},file='dump_param_${inout}.bin',form='unformatted',access='direct',recl=rec_length_replay) ! $replay_comment 156 156 eod 157 157 echo '! dump_param_open >>> ' … … 312 312 USE IOIPSL, ONLY : getin 313 313 IMPLICIT NONE 314 integer :: ifin,irec,it,rec_length =0,replay_irec0=1,replay_nt=1000314 integer :: ifin,irec,it,rec_length_replay=0,replay_irec0=1,replay_nt=1000 315 315 eod 316 316 grep 'intent.*::' input | sed -e 's/ //g' -e 's/,intent(.*[nt])//'>> call_param_replay.F90 … … 359 359 \rm $paraminc1 360 360 cat> $paraminc1 <<eod 361 logical, save :: first =.true.362 integer, save :: rec_length =0,irec=0363 if (first ) then361 logical, save :: first_replay=.true. 362 integer, save :: rec_length_replay=0,irec=0 363 if (first_replay) then 364 364 eod 365 365 dump_param_open out $varin0 >> $paraminc1 366 366 cat>> $paraminc1 <<eod 367 first =.false.367 first_replay=.false. 368 368 endif 369 369 irec=irec+1
Note: See TracChangeset
for help on using the changeset viewer.