Changeset 1241 for palm/trunk/SCRIPTS/mrun
- Timestamp:
- Oct 30, 2013 11:36:58 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mrun
r1230 r1241 22 22 # Current revisions: 23 23 # ------------------ 24 # 24 # Enable use of nudging input and input of large scale forcing from 25 # external files 25 26 # 26 27 # Former revisions: … … 2352 2353 tmp_check=${working_directory}/tmp_check 2353 2354 2354 # GET TOPOGRAPHY PARAMETER FILE SUFFIX (USUALLY "_ P3DF"). THIS FILE MIGHTIS2355 # GET TOPOGRAPHY PARAMETER FILE SUFFIX (USUALLY "_TOPO"). THIS FILE IS 2355 2356 # NOT NECESSARILY REQUIRED 2356 2357 line="" … … 2372 2373 fi 2373 2374 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 2374 2415 rm -rf ${working_directory}/tmp_check 2375 2416 2376 # CHECK IF THE AP3DF FILE MUST BE CHECKED2417 # CHECK IF THE P3DF FILE MUST BE CHECKED 2377 2418 for item in $input_list 2378 2419 do … … 2520 2561 # WHICH REQUIRE SUFFICIENT MEMORY 2521 2562 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 2522 2575 fi 2523 2576
Note: See TracChangeset
for help on using the changeset viewer.