Skip to content
Snippets Groups Projects
Select Git revision
  • 76edb0c6ec307ca38450a7e12d1321c060c6dd88
  • master default protected
  • release-1.10 protected
  • dev protected
  • replication_test
  • release-1.9 protected
  • 551-init-broker-service-permissions
  • 549-test-oai-pmh
  • 545-saving-multiple-times-breaks-pid-metadata
  • 499-standalone-compute-service-2
  • 539-load-tests
  • hotfix/helm-chart
  • luca_ba_new_interface
  • 534-bug-when-adding-access-to-user-that-is-not-registered-at-dashboard-service
  • release-1.8 protected
  • 533-integrate-semantic-recommendation
  • feature/openshift
  • 518-spark-doesn-t-map-the-headers-correct
  • 485-fixity-checks
  • 530-various-schema-problems-with-subsets
  • release-1.7 protected
  • v1.10.2 protected
  • v1.10.1 protected
  • v1.10.0-rc13 protected
  • v1.10.0-rc12 protected
  • v1.10.0-rc11 protected
  • v1.10.0-rc10 protected
  • v1.10.0-rc9 protected
  • v1.10.0-rc8 protected
  • v1.10.0-rc7 protected
  • v1.10.0-rc6 protected
  • v1.10.0-rc5 protected
  • v1.10.0-rc4 protected
  • v1.10.0-rc3 protected
  • v1.10.0-rc2 protected
  • v1.10.0rc1 protected
  • v1.10.0rc0 protected
  • v1.10.0 protected
  • v1.9.3 protected
  • v1.9.2 protected
  • v1.9.2-rc0 protected
41 results

data-service.md

Blame
  • installscript.template 2.00 KiB
    #!/bin/ksh
    
    # ON ECGB:
    # start with ecaccess-job-submit -queueName ecgb NAME_OF_THIS_FILE  on gateway server
    # start with sbatch NAME_OF_THIS_FILE directly on machine
    
    #SBATCH --workdir=/scratch/ms/$usergroup/$username
    #SBATCH --qos=normal
    #SBATCH --job-name=flex_ecmwf
    #SBATCH --output=flex_ecmwf.%j.out
    #SBATCH --error=flex_ecmwf.%j.out
    #SBATCH --mail-type=FAIL
    #SBATCH --time=12:00:00
    
    ## CRAY specific batch requests
    ##PBS -N flex_ecmwf
    ##PBS -q ns
    ##PBS -S /usr/bin/ksh
    ##PBS -o /scratch/ms/$usergroup/$username/flex_ecmwf.$${Jobname}.$${Job_ID}.out
    # job output is in .ecaccess_DO_NOT_REMOVE
    ##PBS -j oe
    ##PBS -V
    ##PBS -l EC_threads_per_task=1
    ##PBS -l EC_memory_per_task=3200MB
    
    set -x
    export VERSION=$version_number
    case $${HOST} in
      *ecg*)
      module unload grib_api
      module unload eccodes
      module unload python
      module unload emos
      module load python3/3.6.8-01
      module load eccodes/2.13.0
      module load emos/455-r64
      export FLEXPART_ROOT_SCRIPTS=$fp_root_scripts
      export MAKEFILE=$makefile
      ;;
      *cca*)
      module unload python
      module switch PrgEnv-cray PrgEnv-intel
      module load python3
      module load eccodes/2.13.0
      module load emos/455-r64
      echo $${GROUP}
      echo $${HOME}
      echo $${HOME} | awk -F / '{print $1, $2, $3, $4}'
      export GROUP=`echo $${HOME} | awk -F / '{print $4}'`
      export SCRATCH=/scratch/ms/$${GROUP}/$${USER}
      export FLEXPART_ROOT_SCRIPTS=$fp_root_scripts
      export MAKEFILE=$makefile
      ;;
    esac
    
    mkdir -p $${FLEXPART_ROOT_SCRIPTS}/flex_extract_v$${VERSION}
    cd $${FLEXPART_ROOT_SCRIPTS}/flex_extract_v$${VERSION}   # if FLEXPART_ROOT is not set this means cd to the home directory
    tar -xvf $${HOME}/flex_extract_v$${VERSION}.tar
    cd Source/Fortran
    \rm *.o *.mod $fortran_program 
    make -f $${MAKEFILE} >flexcompile 2>flexcompile
    
    ls -l $fortran_program >>flexcompile
    if [ $$? -eq 0 ]; then
      echo 'SUCCESS!' >>flexcompile
      mail -s flexcompile.$${HOST}.$$$$ $${USER} <flexcompile
    else
      echo Environment: >>flexcompile
      env >> flexcompile
      mail -s "ERROR! flexcompile.$${HOST}.$$$$" $${USER} <flexcompile
    fi