Mumax

Program description:
Mumax is a micro magnetic simulation program

Versions:

Name: Mumax
Version: 3.9.1c
Platform: x86_64
Category: Applications/Scientific
URL http://mumax.github.io/

Below is how to load the module into the software:
Module loading reference

Sample SLURM runtime script:


#!/bin/bash
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=4
#SBATCH --mem=4gb
#SBATCH --time=01:00:00
#SBATCH --partition=tesla
#SBATCH --gres=gpu:1

# Set paths or load appropriate modules
module load mumax

# Set the $TMPDIR variable
export TMPDIR=$HOME/grant_$SLURM_JOB_ACCOUNT/scratch/$USER/$SLURM_JOB_ID

# We set application variables
export SCR=${TMPDIR}

# We set auxiliary variables
INPUT_DIR="input"
INPUT_FILE="input.mx"
OUTPUT_DIR="output"

# Create a temporary directory
mkdir -p ${TMPDIR}

# Copy the input data to the directory pointed to by the $TMPDIR variable
cp ${SLURM_SUBMIT_DIR}/${INPUT_DIR}/* ${TMPDIR}

# Go to the $TMPDIR directory
cd $TMPDIR

# Header

cat << EOF
-------------------------------------------------- ---------------

Start of calculations [$(date)]
EOF

cat << EOF
-------------------------------------------------- ---------------
Support: support-hpc@man.poznan.pl
-------------------------------------------------- ---------------
EOF

# We do the calculations
mumax3 ${INPUT_FILE} > OUTPUT


# Footer
cat << EOF
-------------------------------------------------- ---------------

End of calculations [$(date)].

-------------------------------------------------- ---------------
EOF

# We finish the calculations, copy the contents of the $TMPDIR/output directory
# to the directory from which the job was queued.
mkdir $SLURM_SUBMIT_DIR/${OUTPUT_DIR}
cp -r $TMPDIR/* $SLURM_SUBMIT_DIR/${OUTPUT_DIR}/

# Clear working directory
rm -rf $TMPDIR

Below are the files that should be in the input directory.
File:Mumax input.zip