Ignore:
Timestamp:
Apr 30, 2021, 10:38:59 AM (3 years ago)
Author:
musat
Message:

Mise a jour des scripts par rapport a la version fabric
IM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/Multi_atlas/Utils/multi.sh

    r3745 r3885  
    3030mjo=0
    3131river=0
    32 
     32dataref=1
     33
     34ref=OBS
     35echo $ref
    3336# ./job_multi.sh -1D 0 -get 0 -atlas 0 -pcmdi 0 -tuning 0 -lma 0 -trmm 0
    3437runstxt=$local/runs.txt
     
    5760      -mjo) mjo=$2 ; shift ;;
    5861      -river) river=$2 ; shift ;;
     62      -dataref) dataref=$2 ; shift ;;
    5963      *) comp=$1 ;;
    6064   esac
     
    123127echo listrune= $listrune
    124128ls -lrt $MAIN_SE/ORIG
    125 listsimss="" ; for ss in `awk ' {print $1"_"$2 } ' $DEF_FILE`    ; do listsimss="$listsimss $ss" ; done
     129#listsimss="" ; for ss in `awk ' {print $1"_"$2 } ' $DEF_FILE`    ; do listsimss="$listsimss $ss" ; done
     130
     131ns=0
     132listsimss="" ;
     133for ss in `awk ' {print $1"_"$2 } ' $DEF_FILE`    ; do 
     134if [ $dataref = 0 ] ; then
     135   if [ ${ns} = 0 ] ; then
     136      ref=$ss
     137      echo ref=$ref
     138   fi 
     139fi
     140let "ns = ${ns} + 1"
     141listsimss="$listsimss $ss" ;
     142done
     143echo ref=$ref
     144
    126145listsimse="" ; for se in `awk ' {print $1"_SE_"$2 } ' $DEF_FILE` ; do listsimse="$listsimse $se" ; done
    127146echo listsims $listsims
     
    199218      atlas=${sim}+${seas}+${proj}+$vars
    200219      echo AAAAAAAAAAAAAAAAAAAAAAAA $atlas
    201       grep $atlas $COMP_D/ATLAS/atlas_OK
     220      #grep $atlas $COMP_D/ATLAS/atlas_OK
    202221      echo BBBBBB
    203       if [ "`grep $atlas $COMP_D/ATLAS/atlas_OK`" = "" ] ; then
     222      #if [ "`grep $atlas $COMP_D/ATLAS/atlas_OK`" = "" ] ; then
    204223         cd $local/atlas ; pwd ; ls -l atlas.sh
    205224         varg=`echo $vars | sed -e 's/,/+/g'`
    206225         echo Atlas $atlas a creer
    207226         if [ $qsub = 0 ] ; then
    208             ./atlas.sh RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=OBS,VARS="$varg",RUNSTXT=$runstxt
     227            #./atlas.sh RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=OBS,VARS="$varg",RUNSTXT=$runstxt
     228            ./atlas.sh RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=$ref,VARS="$varg",RUNSTXT=$runstxt
    209229         else
    210             $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=OBS,VARS="$varg",RUNSTXT=$runstxt atlas.sh
     230            #$submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=OBS,VARS="$varg",RUNSTXT=$runstxt atlas.sh
     231            $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=$ref,VARS="$varg",RUNSTXT=$runstxt atlas.sh
    211232         fi
    212          echo $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=OBS,VARS="$varg" atlas.sh >> out.com$$
    213          echo $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=OBS,VARS="$varg" atlas.sh
     233         #echo $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=OBS,VARS="$varg" atlas.sh >> out.com$$
     234         echo $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=$ref,VARS="$varg" atlas.sh >> out.com$$
     235         #echo $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=OBS,VARS="$varg" atlas.sh
     236         echo $submit -v RUN=$sim,SEASON=$seas,PROJ=$proj,OUTDIR=$COMP_D/ATLAS,REF=$ref,VARS="$varg" atlas.sh
    214237         (( count_atlas = $count_atlas + 1 ))
    215       else
    216            echo Atlas $atlas existant
    217       fi
     238      #else
     239           #echo Atlas $atlas existant
     240      #fi
    218241      (( il = $il + 1 ))
    219242   done
Note: See TracChangeset for help on using the changeset viewer.