Changeset 5cff464 in flex_extract.git


Ignore:
Timestamp:
Oct 20, 2022, 8:22:51 PM (18 months ago)
Author:
Anne Tipka <anne.tipka@…>
Branches:
dev
Children:
c31ee05
Parents:
73d2e4e
Message:

switched using compilejob.sh and using batch submit to install software

Location:
Source/Python
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Source/Python/_config.py

    r01bd8aa r5cff464  
    1717#         - modified to account for changes on Bologna servers,
    1818#           e.g. queue names and hostnames
     19#      August 2022 - Anne Tipka (formerly Philipp)
     20#         - changed name of compilejob.ksh to compilejob.sh
    1921#
    2022# @License:
     
    9294FILE_USER_ENVVARS = 'ECMWF_ENV'
    9395TEMPFILE_INSTALL_COMPILEJOB = 'installscript.template'
    94 FILE_INSTALL_COMPILEJOB = 'compilejob.ksh'
     96FILE_INSTALL_COMPILEJOB = 'compilejob.sh'
    9597TEMPFILE_INSTALL_JOB = 'jobscript.template'
    9698TEMPFILE_JOB = 'submitscript.template'
  • Source/Python/install.py

    r01bd8aa r5cff464  
    9494from Mods.tools import (make_dir, put_file_to_ecserver, submit_job_to_ecserver,
    9595                        silent_remove, execute_subprocess, none_or_str,
    96                         overwrite_lines_in_file, check_for_string_in_file)
     96                        overwrite_lines_in_file, check_for_string_in_file,
     97                        submit_sbatch_job)
    9798
    9899# ------------------------------------------------------------------------------
     
    114115    c.assign_args_to_control(args)
    115116    check_install_conditions(c)
    116 
     117   
    117118    if c.install_target.lower() not in ['local', 'syslocal']:  # ecmwf servers e.g. ecgate (ecs) and hpc
    118119        install_via_gateway(c)
     
    206207    mk_compilejob(c.makefile, c.ecuid, c.installdir)
    207208
    208     mk_job_template(c.ecuid, c.ecgid, c.installdir)
     209    mk_job_template(c.ecuid, c.installdir)
    209210
    210211    mk_env_vars(c.ecuid, c.ecgid, c.gateway, c.destination)
     
    214215    put_file_to_ecserver(_config.PATH_FLEXEXTRACT_DIR, tarball_name)
    215216
    216     submit_job_to_ecserver(c.install_target,
    217                            os.path.join(_config.PATH_REL_JOBSCRIPTS,
    218                                         _config.FILE_INSTALL_COMPILEJOB))
     217    submit_sbatch_job(os.path.join(_config.PATH_REL_JOBSCRIPTS,
     218                                   _config.FILE_INSTALL_COMPILEJOB))
     219
     220#    submit_job_to_ecserver(c.install_target,
     221#                           os.path.join(_config.PATH_REL_JOBSCRIPTS,
     222#                                        _config.FILE_INSTALL_COMPILEJOB))
    219223
    220224    silent_remove(tar_file)
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG