Changeset 1390 for palm/trunk/SCRIPTS
- Timestamp:
- May 6, 2014 7:57:37 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SCRIPTS/mbuild
r1389 r1390 22 22 # Current revisions: 23 23 # ------------------ 24 # 24 # disabled compilation of parameter file check (currently not working), 25 # adjustments for lcxe6 25 26 # 26 27 # Former revisions: … … 1293 1294 eval `$MODULESHOME/bin/modulecmd ksh load ${modules}` 1294 1295 else 1295 $init_cmds1296 eval init_cmds=$init_cmds 1296 1297 module load ${modules} 1297 1298 fi … … 1370 1371 # TOUCH FILES IN ORDER TO FORCE COMPILATION FOR EVERY BLOCK 1371 1372 touch *.f90 1372 $init_cmds1373 eval init_cmds=$init_cmds 1373 1374 make $make_options BLOCK=$block F90=$compiler_name F90_SER=$compiler_name_ser COPT="$cpp_options" F90FLAGS="$compiler_options" LDFLAGS="$loader_options" 1374 1375 … … 1390 1391 fi 1391 1392 1392 # COMPILE CHECK_NAMELIST_FILES (ONLY FOR ONE BRANCH on LOCALHOST NEEDED)1393 printf "\n\n"1394 echo " *** compiling check_namelist_files ..."1395 1396 # GET CHECK OPTIONS1397 line=""1398 found=false1399 grep "$remote_host_string" $config_file | grep "%cpp_options" > $tmp_mbuild1400 while read line11401 do1402 1403 if [[ $(echo $line1 | cut -d" " -s -f3-) = "$remote_host_string" ]]1404 then1405 line="$line1"1406 fi1407 1408 if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]]1409 then1410 # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY1411 line="$line "1412 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'`1413 found=true1414 fi1415 1416 done < $tmp_mbuild1417 copts_check="$copts_check -D__check -D__parallel"1418 1419 check_depository_path=${local_source_path}/../UTIL1420 cd $check_depository_path1421 mkdir check_tmp1422 cp ${local_source_path}/${mainprog}_sources_check.tar ./check_tmp1423 cd check_tmp1424 tar -xf ${mainprog}_sources_check.tar1425 rm -rf ${mainprog}_sources_check.tar1426 make -f Makefile_check $make_options F90=$compiler_name_ser COPT="$copts_check" F90FLAGS="$compiler_options"1427 tar -cf check_namelist_files.tar Makefile_check check_namelist_files.x *.f90 *.o *.mod1428 mv check_namelist_files.tar $check_depository_path1429 mv check_namelist_files.x $PALM_BIN1430 cd $check_depository_path1431 rm -rf check_tmp1432 util_compiled_localhost=true1393 # # COMPILE CHECK_NAMELIST_FILES (ONLY FOR ONE BRANCH on LOCALHOST NEEDED) 1394 # printf "\n\n" 1395 # echo " *** compiling check_namelist_files ..." 1396 # 1397 # # GET CHECK OPTIONS 1398 # line="" 1399 # found=false 1400 # grep "$remote_host_string" $config_file | grep "%cpp_options" > $tmp_mbuild 1401 # while read line1 1402 # do 1403 # 1404 # if [[ $(echo $line1 | cut -d" " -s -f3-) = "$remote_host_string" ]] 1405 # then 1406 # line="$line1" 1407 # fi 1408 # 1409 # if [[ "$line" != "" && $(echo $line | cut -c1) != "#" ]] 1410 # then 1411 # # REMOVE COLONS FROM THE OPTION-STRING, IF THERE ARE ANY 1412 # line="$line " 1413 # 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'` 1414 # found=true 1415 # fi 1416 # 1417 # done < $tmp_mbuild 1418 # copts_check="$copts_check -D__check -D__parallel" 1419 # 1420 # check_depository_path=${local_source_path}/../UTIL 1421 # cd $check_depository_path 1422 # mkdir check_tmp 1423 # cp ${local_source_path}/${mainprog}_sources_check.tar ./check_tmp 1424 # cd check_tmp 1425 # tar -xf ${mainprog}_sources_check.tar 1426 # rm -rf ${mainprog}_sources_check.tar 1427 # make -f Makefile_check $make_options F90=$compiler_name_ser COPT="$copts_check" F90FLAGS="$compiler_options" 1428 # tar -cf check_namelist_files.tar Makefile_check check_namelist_files.x *.f90 *.o *.mod 1429 # mv check_namelist_files.tar $check_depository_path 1430 # mv check_namelist_files.x $PALM_BIN 1431 # cd $check_depository_path 1432 # rm -rf check_tmp 1433 # util_compiled_localhost=true 1433 1434 else 1434 1435 cd $check_depository_path … … 1436 1437 echo " *** skipped compilation of mrun GUI." 1437 1438 printf "\n\n" 1438 echo " *** skipped compilation of check_namelist_files ."1439 echo " *** skipped compilation of check_namelist_files (currently not available)." 1439 1440 fi 1440 1441
Note: See TracChangeset
for help on using the changeset viewer.