Ignore:
Timestamp:
Jan 25, 2012 11:53:51 AM (13 years ago)
Author:
maronga
Message:

new utility check_namelist_files implemented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SCRIPTS/mbuild

    r793 r807  
    123123     # 27/11/11 - Siggi - Bugfix for make options setting (-j)
    124124     # 12/12/11 - BjornM- added mrun GUI to ulitity programs
     125     # 25/01/12 - BjornM- compilation of check_namelist_files (namelist file
     126     #                    check program) has been added to the utility branch),
     127     #                    modfified the compilation of mrungui
    125128
    126129
     
    336339 done < $tmp_mbuild
    337340
    338 
     341 if [[ $found = false ]]
     342 then
     343    printf "\n  +++ no \%depository_path found in"
     344    printf "\n                            $config_file"
     345    locat=depository_path; exit
     346  fi
    339347
    340348    # CHECK, IF A MAIN PROGRAM HAS BEEN DEFINED IN THE CONFIG-FILE
     
    398406    printf "\n\n  *** tar of makefile and source files in $local_source_path" 
    399407    tar -cf  ${mainprog}_sources.tar  Makefile  *.$suf
     408    printf "\n"
     409
     410 else
     411    cd  $local_source_path
     412    printf "\n\n  *** tar of makefile and source files in $local_source_path" 
     413 
     414    cat Makefile_check|while read line
     415    do
     416       line=$(echo $line|grep RCS)
     417       if [[ $line == *"RCS"* ]]
     418       then
     419          line=$(echo $line|sed 's/RCS = //g')
     420          break
     421       fi
     422    done
     423
     424    tar -cf  ${mainprog}_sources_check.tar  Makefile_check  $line
    400425    printf "\n"
    401426
     
    13641389          make  $make_options  BLOCK=$block  F90=$compiler_name  F90_SER=$compiler_name_ser  COPT="$cpp_options"  F90FLAGS="$compiler_options"  LDFLAGS="$loader_options"
    13651390
    1366              # check if qmake is available and compile mrungui in that case
     1391             # CHECK IF QMAKE IS AVAILABLE AND COMPILE MRUNGUI
     1392          printf "\n\n"
     1393          echo "  *** compiling the mrun GUI"
    13671394          if which qmake >/dev/null; then
    13681395             cd mrungui
     
    13741401             cd ..
    13751402          else
    1376              echo "  +++ no qmake found. The mrun GUI (optional) cannot be compiled."
    1377           fi
    1378 
    1379 
    1380           cd  -  > /dev/null
    1381        fi
    1382 
    1383     fi
    1384 
     1403             echo "  +++ no qmake found. The (optional) GUI will not be compiled."
     1404          fi
     1405
     1406             # COMPILE CHECK_NAMELIST_FILES
     1407          printf "\n\n"
     1408          echo "  *** compiling check_namelist_files ..."
     1409
     1410          check_depository_path=${local_source_path}/../UTIL
     1411          cd $check_depository_path
     1412          mkdir check_tmp
     1413          mv ${local_source_path}/${mainprog}_sources_check.tar ./check_tmp
     1414          cd check_tmp
     1415          tar -xf  ${mainprog}_sources_check.tar
     1416          rm -rf ${mainprog}_sources_check.tar
     1417
     1418          copts_check="-cpp -D_parallel -D__check"
     1419          make  -f Makefile_check $make_options F90=$compiler_name_ser  COPT="$copts_check"
     1420
     1421          tar -cf  check_namelist_files.tar Makefile_check check_namelist_files.x *.f90 *.o *.mod
     1422          mv check_namelist_files.tar $check_depository_path
     1423          mv check_namelist_files.x $PALM_BIN
     1424          cd $check_depository_path
     1425          rm -rf check_tmp
     1426
     1427       fi
     1428    fi
    13851429 done
    13861430
Note: See TracChangeset for help on using the changeset viewer.