Skip to content
Snippets Groups Projects
Select Git revision
  • 5eca5bcc386429bac740ff49a3f638debcee6820
  • master default protected
  • dev protected
  • replication_test
  • release-1.10 protected
  • 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

dashboard-service.md

Blame
  • run_ens.vsc.sh 1.09 KiB
    
    module purge
    module load intel-mpi/2019.6 intel/19.1.0 netcdf-fortran/4.4.5-intel-19.0.5.281-qye4cqn zlib/1.2.11-intel-19.1.0.166-hs6m2qh  hdf5/1.10.5-intel-19.0.5.281-qyzojtm netcdf/4.7.0-intel-19.0.5.281-75t52g6
    export SLURM_STEP_GRES=none
    
    ##  $SLURM_ARRAY_TASK_ID
    echo "SLURM_ARRAY_TASK_ID:"$SLURM_ARRAY_TASK_ID
    EXPNAME=<exp.expname> 
    
    MAINDIR=<cluster.wrf_rundir_base> 
    pinning=(0-11 12-23 24-35 36-47)
    
    for ((n=1; n<=4; n++))
    do
       IENS="$(((($SLURM_ARRAY_TASK_ID - 1)* 4) + $n))"
       RUNDIR=$MAINDIR/$EXPNAME/$IENS
       echo "ENSEMBLE NR: "$IENS" in "$RUNDIR
       cd $RUNDIR
       rm -rf rsl.out.0* 
       echo "mpirun -genv I_MPI_PIN_PROCESSOR_LIST="${pinning[$n-1]}" -np 12 ./wrf.exe"
       mpirun -genv I_MPI_PIN_PROCESSOR_LIST=${pinning[$n-1]} -np 12 ./wrf.exe &
       cd ../
    done
    wait
    
    # error checking
    for ((n=1; n<=4; n++))
    do
       IENS="$(((($SLURM_ARRAY_TASK_ID - 1)* 4) + $n))"
       RUNDIR=$MAINDIR/$EXPNAME/$IENS
       cd $RUNDIR
       line=`tail -n 1 rsl.out.0000`
       if [[ $line == *"SUCCESS COMPLETE WRF"* ]]; 
       then 
          echo $RUNDIR 'SUCCESS COMPLETE WRF'
       else  
          echo $RUNDIR $line
          exit 1
       fi
    done