#!/bin/bash
#SBATCH --job-name=mumax-3.11
#SBATCH --partition=l4
#SBATCH --gpus=1
#SBATCH --nodes=1
#SBATCH --time=1:00:00

module load mumax

# start server in the background (& means background)
mumax3-server &
# wait for server to start
sleep 10
# execute an input script
mumax3 sample.mx3
# process output
mumax3-convert -png sample.out/*.ovf
