- Timestamp:
- Jan 4, 2013 10:22:09 AM (12 years ago)
- Location:
- palm/trunk/SCRIPTS
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mbuild
r1082 r1083 20 20 # Current revisions: 21 21 # ----------------- 22 # bugfix in parameter file check (in case that no preprocessor flag, i.e. -cpp was 23 # set in %cpp_options, the last directive in the variable was processed. 22 24 # 23 25 # Former revisions: … … 1531 1533 tar -xf ${mainprog}_sources_check.tar 1532 1534 rm -rf ${mainprog}_sources_check.tar 1533 make -f Makefile_check $make_options F90=$compiler_name_ser COPT="$copts_check" F90FLAGS="$compiler_options" LDFLAGS="$loader_options"1535 make -f Makefile_check $make_options F90=$compiler_name_ser COPT="$copts_check" F90FLAGS="$compiler_options" 1534 1536 tar -cf check_namelist_files.tar Makefile_check check_namelist_files.x *.f90 *.o *.mod 1535 1537 mv check_namelist_files.tar $check_depository_path -
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.