Changeset 5f67883 in flex_extract.git


Ignore:
Timestamp:
Jun 11, 2020, 12:51:12 PM (4 years ago)
Author:
Anne Philipp <anne.philipp@…>
Branches:
master, ctbto, dev
Children:
f5e40d8
Parents:
026b359
Message:

changed makefile defaults; changed template filenames

Files:
6 edited
4 moved

Legend:

Unmodified
Added
Removed
  • Source/Fortran/makefile_fast

    rda1b788 r5f67883  
    1919LIB =  $(ECCODES_LIB) $(EMOSLIB)
    2020
    21 ECCODES_INCLUDE_DIR=/usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15
     21ECCODES_INCLUDE_DIR=/usr/local/include/
     22#/usr/lib/x86_64-linux-gnu/fortran/gfortran-mod-15
    2223INC = -I. -I$(ECCODES_INCLUDE_DIR)
    2324
  • Source/Python/Classes/ControlFile.py

    r026b359 r5f67883  
    1919#        - divided assignment of attributes and the check of conditions
    2020#        - outsourced the commandline argument assignments to control attributes
    21 #   June 202 - Petra Seibert (Univ of Vienna / BOKU)
    22 #        - update default makefile name
     21#   June 2020 - Anne Philipp
     22#        - update default makefile to None
    2323#
    2424# @License:
     
    269269    makefile : str
    270270        Name of the makefile to be used for the Fortran program.
    271         Default value is 'makefile_local_gfortran'.
     271        Default value is None.
    272272
    273273    destination : str
     
    404404        self.exedir = _config.PATH_FORTRAN_SRC
    405405        self.installdir = None
    406         self.makefile = 'makefile_local_gfortran'
     406        self.makefile = None
    407407        self.destination = None
    408408        self.gateway = None
  • Source/Python/_config.py

    r026b359 r5f67883  
    5757TEMPFILE_USER_ENVVARS = 'ECMWF_ENV.template'
    5858FILE_USER_ENVVARS = 'ECMWF_ENV'
    59 TEMPFILE_INSTALL_COMPILEJOB = 'compilejob.template'
     59TEMPFILE_INSTALL_COMPILEJOB = 'installscript.template'
    6060FILE_INSTALL_COMPILEJOB = 'compilejob.ksh'
    61 TEMPFILE_INSTALL_JOB = 'job.template'
    62 TEMPFILE_JOB = 'job.temp'
     61TEMPFILE_INSTALL_JOB = 'jobscript.template'
     62TEMPFILE_JOB = 'submitscript.template'
    6363FILE_JOB_OD = 'job.ksh'
    6464FILE_JOB_OP = 'jopoper.ksh'
    65 TEMPFILE_NAMELIST = 'convert.nl'
     65TEMPFILE_NAMELIST = 'calc_etadot_nml.template'
    6666FILE_NAMELIST = 'fort.4'
    6767FILE_GRIB_INDEX = 'date_time_stepRange.idx'
  • Source/Python/install.py

    r026b359 r5f67883  
    1313#        - moved install_args_and_control in here
    1414#        - splitted code in smaller functions
    15 #        - delete convert build files in here instead of compile job script
     15#        - delete fortran build files in here instead of compile job script
    1616#        - changed static path names to variables from config file
    1717#        - splitted install function into several smaller pieces
     
    3939#    mk_compilejob
    4040#    mk_job_template
    41 #    del_convert_build
    42 #    mk_convert_build
     41#    del_fortran_build
     42#    mk_fortran_build
    4343#
    4444#*******************************************************************************
     
    243243                                  _config.PATH_REL_FORTRAN_SRC))
    244244
    245     # Create Fortran executable - CONVERT2
     245    # Create Fortran executable
    246246    print('Install ' +  _config.FLEXEXTRACT_DIRNAME + ' software at ' +
    247247          c.install_target + ' in directory ' +
    248248          os.path.abspath(c.installdir) + '\n')
    249249
    250     del_convert_build('.')
    251     mk_convert_build('.', c.makefile)
     250    del_fortran_build('.')
     251    mk_fortran_build('.', c.makefile)
    252252
    253253    os.chdir(_config.PATH_FLEXEXTRACT_DIR)
     
    304304            c.installdir = _config.PATH_FLEXEXTRACT_DIR
    305305
     306    if not c.makefile:
     307        print('WARNING: no makefile was specified.')
     308        if c.install_target == 'local':
     309            c.makefile = 'makefile_local_gfortran'
     310            print('WARNING: default makefile selected: makefile_local_gfortan')
     311        elif c.install_target == 'ecgate':
     312            c.makefile = 'makefile_ecgate'
     313            print('WARNING: default makefile selected: makefile_ecgate')
     314        elif c.install_target == 'cca' or \
     315             c.install_target == 'ccb':
     316            c.makefile = 'makefile_cray'
     317            print('WARNING: default makefile selected: makefile_cray')
     318        else:
     319            pass
     320       
    306321    return
    307322
     
    498513    makefile : str
    499514        Name of the makefile which should be used to compile FORTRAN
    500         CONVERT2 program.
     515        program.
    501516
    502517    ecuid : str
     
    633648    return
    634649
    635 def del_convert_build(src_path):
     650def del_fortran_build(src_path):
    636651    '''Clean up the Fortran source directory and remove all
    637     build files (e.g. \*.o, \*.mod and CONVERT2)
     652    build files (e.g. \*.o, \*.mod and FORTRAN EXECUTABLE)
    638653
    639654    Parameters
     
    657672    return
    658673
    659 def mk_convert_build(src_path, makefile):
     674def mk_fortran_build(src_path, makefile):
    660675    '''Compiles the Fortran code and generates the executable.
    661676
     
    686701            print(perr.decode())
    687702            print('Please edit ' + makefile +
    688                   ' or try another Makefile in the src directory.')
    689             print('Most likely GRIB_API_INCLUDE_DIR, GRIB_API_LIB '
     703                  ' or try another makefile in the src directory.')
     704            print('Most likely ECCODES_INCLUDE_DIR, ECCODES_LIB '
    690705                  'and EMOSLIB must be adapted.')
    691             print('Available Makefiles:')
    692             print(UioFiles(src_path, 'Makefile*'))
     706            print('Available makefiles:')
     707            print(UioFiles(src_path, 'makefile*'))
    693708            sys.exit('Compilation failed!')
    694709    except ValueError as e:
    695         print('ERROR: Makefile call failed:')
     710        print('ERROR: makefile call failed:')
    696711        print(e)
    697712    else:
  • Source/Python/submit.py

    r026b359 r5f67883  
    129129        module and variable settings for the ECMWF environment as well as
    130130        the job call and mail report instructions.
    131         Default is "job.temp".
     131        Default is _config.TEMPFILE_JOB.
    132132
    133133    c : ControlFile
     
    218218        module and variable settings for the ECMWF environment as well as
    219219        the job call and mail report instructions.
    220         Default is "job.temp".
     220        Default is _config.TEMPFILE_JOB.
    221221
    222222    job_file : str
  • Templates/submitscript.template

    re44fdb9 r5f67883  
    2525
    2626set -x
    27 export VERSION=7.1
     27export VERSION=7.1.1
    2828case $${HOST} in
    2929  *ecg*)
     
    3535  module load eccodes/2.13.0
    3636  module load emos/455-r64
    37   export PATH=$${PATH}:$${HOME}/flex_extract_v7.1/Source/Python
     37  export PATH=$${PATH}:$${HOME}/flex_extract_v7.1.1/Source/Python
    3838  ;;
    3939  *cca*)
     
    4444  module load emos/455-r64
    4545  export SCRATCH=$${TMPDIR}
    46   export PATH=$${PATH}:$${HOME}/flex_extract_v7.1/Source/Python
     46  export PATH=$${PATH}:$${HOME}/flex_extract_v7.1.1/Source/Python
    4747  ;;
    4848esac
  • setup.sh

    r50f9ca6 r5f67883  
    1212#
    1313# @Licence:
    14 #    (C) Copyright 2014-2019.
     14#    (C) Copyright 2014-2020.
    1515#
    1616#    SPDX-License-Identifier: CC-BY-4.0
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG