Ignore:
Timestamp:
Oct 30, 2013 11:36:58 AM (10 years ago)
Author:
heinze
Message:

Nudging and large scale forcing from external file implemented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/mrun

    r1230 r1241  
    2222# Current revisions:
    2323# ------------------
    24 #
     24# Enable use of nudging input and input of large scale forcing from
     25# external files
    2526#
    2627# Former revisions:
     
    23522353    tmp_check=${working_directory}/tmp_check
    23532354
    2354        # GET TOPOGRAPHY PARAMETER FILE SUFFIX (USUALLY "_P3DF"). THIS FILE MIGHT IS
     2355       # GET TOPOGRAPHY PARAMETER FILE SUFFIX (USUALLY "_TOPO"). THIS FILE IS
    23552356       # NOT NECESSARILY REQUIRED
    23562357    line=""
     
    23722373    fi
    23732374
     2375       # GET NUDGING PARAMETER FILE SUFFIX (USUALLY "_NUDGE"). THIS FILE IS
     2376       # NOT NECESSARILY REQUIRED
     2377    line=""
     2378    found=false
     2379    grep  "NUDGING_DATA" $config_file  >  $tmp_check
     2380    while read line1
     2381    do
     2382       line="$line1"
     2383       if [[ "$line" != ""  &&  $(echo $line | cut -c1) != "#" ]]
     2384       then
     2385          nudge_suffix=`echo $line | tr -s " " | cut -d" " -s -f5`
     2386          found=true
     2387       fi
     2388    done < $tmp_check
     2389
     2390    if [[ $found = false ]]
     2391    then
     2392       printf "\n  +++ no NUDGING list entry found in the configuration file."
     2393    fi
     2394
     2395       # GET LARGE SCALE FORCING PARAMETER FILE SUFFIX (USUALLY "_LSF"). THIS FILE IS
     2396       # NOT NECESSARILY REQUIRED
     2397    line=""
     2398    found=false
     2399    grep  "LSF_DATA" $config_file  >  $tmp_check
     2400    while read line1
     2401    do
     2402       line="$line1"
     2403       if [[ "$line" != ""  &&  $(echo $line | cut -c1) != "#" ]]
     2404       then
     2405          lsf_suffix=`echo $line | tr -s " " | cut -d" " -s -f5`
     2406          found=true
     2407       fi
     2408    done < $tmp_check
     2409
     2410    if [[ $found = false ]]
     2411    then
     2412       printf "\n  +++ no LSF list entry found in the configuration file."
     2413    fi
     2414
    23742415    rm -rf ${working_directory}/tmp_check
    23752416
    2376        # CHECK IF THE A P3DF FILE MUST BE CHECKED
     2417       # CHECK IF THE P3DF FILE MUST BE CHECKED
    23772418    for  item  in  $input_list
    23782419    do
     
    25202561          # WHICH REQUIRE SUFFICIENT MEMORY
    25212562       ulimit -s unlimited         
     2563    fi
     2564
     2565    if [[ -f ${pathname}/${fname}${nudge_suffix} && $skip_check == false ]]
     2566    then
     2567       printf "\n  *** adding nudging data"
     2568       cp ${pathname}/${fname}${nudge_suffix} ./NUDGING_DATA       
     2569    fi
     2570
     2571    if [[ -f ${pathname}/${fname}${lsf_suffix} && $skip_check == false ]]
     2572    then
     2573       printf "\n  *** adding large scale forcing data"
     2574       cp ${pathname}/${fname}${lsf_suffix} ./LSF_DATA       
    25222575    fi
    25232576
Note: See TracChangeset for help on using the changeset viewer.