#!/usr/bin/env bash
# export JULIA_NUM_THREADS=4 # Julia loops (assembly, etc.)
export OMP_NUM_THREADS=4 # CHOLMOD/OpenMP threads
# export OPENBLAS_NUM_THREADS=1 # avoid extra oversubscription
# export OMP_PLACES=cores
# export OMP_PROC_BIND=spread
# export JULIA_EXCLUSIVE=1
echo
echo "#############################################################"
echo
time julia -O3 --threads=auto --project=. simulate_heat_storage_04_doc.jl $1 $2
tulos_dir="tulokset/"$1
rm $tulos_dir/frames_$2/*
time pvbatch make_video_png.py $tulos_dir $2 $3