Changeset 4353


Ignore:
Timestamp:
Nov 24, 2022, 10:32:03 PM (19 months ago)
Author:
fhourdin
Message:

Correction de l'otpion inout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/Replay/replay_equip.sh

    r4347 r4353  
    276276extract_subroutine $param $paramfile # -> input file
    277277varin0=`grep inten.*.in input | sed -e 's/\!.*$//' | cut -d: -f3 | sed -e 's/,/ /g'`
    278 varinout0=`grep inten.*.inout input | sed -e '/\!.*$/d' | cut -d: -f3 | sed -e 's/,/ /g'`
     278varinout0=`grep inten.*.inout input | sed -e 's/\!.*$//' | cut -d: -f3 | sed -e 's/,/ /g'`
    279279varin=`echo $varin0 | sed -e 's/ /,/g' -e "s/,,,/,/g" -e "s/,,/,/g"`
    280280output=full # Attention, l'option full ne marche pas a cause de tableaux locaux undef
     
    316316grep 'intent.*::' input | sed -e 's/ //g' -e 's/,intent(.*[nt])//'>> call_param_replay.F90
    317317# duplicating declaration for inout variables
     318
    318319for var in $varinout0 ; do
    319320    sed -e 's/::/ :: /' -e 's/,/ , /g' -e 's/$/ /' input | grep 'intent.*inout.*::.* '$var' ' | sed -e 's/ //g' -e 's/,intent(.*[nt])//' | sed -e 's/::.*$/, allocatable, save :: '$var'_Replay0/' | sed -e 's/'$klon'/:/' -e 's/'$klev'/:/' >> call_param_replay.F90
Note: See TracChangeset for help on using the changeset viewer.