Page MenuHomec4science

run_hea_1q_2.sh
No OneTemporary

File Metadata

Created
Tue, Nov 19, 16:57

run_hea_1q_2.sh

#!/bin/bash
#SBATCH --qos serial
#SBATCH --nodes 1
#SBATCH --ntasks 1
#SBATCH --cpus-per-task 36
#SBATCH --mem 252000
#SBATCH --time 71:59:59
#SBATCH --error=slurm-%j.stderr
#SBATCH --output=slurm-%j.stdout
#SBATCH --job-name=mech_model
#SBATCH --mail-user=recep.kubilay@epfl.ch
#SBATCH --mail-type=BEGIN,END,FAIL
set -e
module purge
source /home/kubilay/anaconda3/bin/activate
conda activate muspectre_env2
export LD_LIBRARY_PATH=/home/kubilay/pnetcdf/lib/:$LD_LIBRARY_PATH
LOG_FILE="mechanical_model_hea10.log"
echo "*** STARTING JOB ***" >$LOG_FILE
START_LAYER=268
LAYERS=333
PROCS=27
export OPENBLAS_NUM_THREADS=1
FACTOR=1.0
TARGET_DIRECTORY="/scratch/kubilay/mechanical_model/results/rate_dependent/factor"_$FACTOR
mkdir -p $TARGET_DIRECTORY
for z in $(seq $START_LAYER 1 $LAYERS)
do
echo $z >>$LOG_FILE
mpirun -np 36 python3 -u residual_stress_analysis_hea_1q_2.py $z $PROCS $FACTOR $TARGET_DIRECTORY >>$LOG_FILE
python3 -u netcdf2h5_hea_1q_2.py $z $FACTOR $TARGET_DIRECTORY >> $LOG_FILE
done
conda deactivate
echo "*** JOB FINISHED ***" >>$LOG_FILE

Event Timeline