Skip to content
Snippets Groups Projects
Select Git revision
  • 0cefa742d0df53ba8a42d5ea87ae1ae6e7d2d221
  • master default protected
  • replication_test_two
  • release-1.11 protected
  • dev protected
  • replication_test
  • release-1.10 protected
  • 533-integrate-semantic-recommendation-2
  • 556-usage-statistics
  • 553-semantic-recommendation-2
  • 553-semantic-recommendation
  • 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
  • v1.11.0 protected
  • v1.10.5 protected
  • v1.10.4 protected
  • v1.10.3 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
41 results

docker-compose.yml

Blame
  • run_ens.vsc.gfortran.sh 1.39 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
    module load gcc/12.2.0-gcc-8.5.0-aal4zp2 openmpi/4.1.4-gcc-12.2.0-khtxitv
    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)
    pinning=(0,1,2,3,4,5,6,7,8,9,10,11 12,13,14,15,16,17,18,19,20,21,22,23 24,25,26,27,28,29,30,31,32,33,34,35 36,37,38,39,40,41,42,43,44,45,46,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 -np 12  --cpu-set ${pinning[$n-1]} /home/fs71386/lkugler/run_container.sh python.gcc9.5.0.vsc4.sif ./wrf.exe"
       mpirun -np 12  --cpu-set ${pinning[$n-1]} /home/fs71386/lkugler/run_container.sh python.gcc9.5.0.vsc4.sif ./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