Changeset 1083 for palm/trunk/SCRIPTS/mrun
- Timestamp:
- Jan 4, 2013 10:22:09 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mrun
r1070 r1083 22 22 # Current revisions: 23 23 # ----------------- 24 # 24 # bugfix in parameter file check (read %cpp_options was missing) 25 25 # 26 26 # Former revisions: … … 2212 2212 2213 2213 #ONLY PERFORM CHECK IF -z OPTION IS NOT SET, NO RESTART RUN IS CARRIED OUT AND IF THE EXECUTION HOST IS THE LOCAL HOST 2214 # ATTENTION: THIS ROUTINE DOES NOT WORK IF THE COMPILER ON THE LOCAL HOST DIFFERS FROM THE COMPILER ON THE REMOTE HOST 2214 2215 if [[ $check_namelist_files == false ]] 2215 2216 then … … 2350 2351 fi 2351 2352 2352 copts_check="-cpp -D__parallel -D__check" 2353 # GET CHECK OPTIONS 2354 line="" 2355 found=false 2356 2357 grep "$localhost" ${base_directory}/${config_file} | grep "%cpp_options" > $tmp_check 2358 2359 while read line1 2360 do 2361 2362 if [[ $(echo $line1 | cut -d" " -s -f3-) = "$localhost" ]] 2363 then 2364 line="$line1" 2365 fi 2366 2367 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] 2368 then 2369 # EVENTUELLE DOPPELPUNKTE AUS OPTIONSSTRING UND ALLE -D ENTFERNEN 2370 line="$line " 2371 copts_check=`echo $line | cut -d" " -s -f2 | sed 's/::/%DUM%/g' | sed 's/:/ /g' | sed 's/%DUM%/:/g' | sed 's/-D[^ ]* //g' | sed 's/ -D.*//g'` 2372 found=true 2373 fi 2374 2375 done < $tmp_check 2376 copts_check="$copts_check -D__check -D__parallel" 2377 2353 2378 make -f Makefile_check F90=$compiler_name_ser COPT="$copts_check" 2354 2379
Note: See TracChangeset
for help on using the changeset viewer.