MATHEMATICA

Software Code: 

MATHEMATICA

Version: 
10.0
Description: 

Mathematica is a computational software program used in many scientific, engineering, mathematical and computing fields. It was conceived by Stephen Wolfram and is developed by Wolfram Research of Champaign, Illinois.

Load the Module – Example: 
module load mathematica/10.0
Automated Submission Example: 
/cm/shared/talon3/run -p mathematica -q general -c 1 -n 1 -i test.m
Manual Submission – Job Script Example: 

#!/bin/bash

#SBATCH -j mathematica.job

#SBATCH -c 1 ##Run in serial

#SBATCH -q general

#SBATCH -C r420


hostname
date
prgname=math

## Setting up scratch ##

STORAGE_DIR="/storage/scratch2/$USER/${SLURM_JOB_ID}"
export  STORAGE_DIR

mkdir -pv $STORAGE_DIR

cd $STORAGE_DIR

###Copy input file (test.m) to scratch directory

cp $SLURM_SUBMIT_DIR/test.m $STORAGE_DIR
pwd

echo "The command $prgname is located at: "
which $prgname

### Run program where test.m is the input file and test.out is the created output file
time $prgname -nosplash -nodesktop -nodisplay <  test.m > test.out
env
##  These files will be copied back to your directory  ##
cp -a $STORAGE_DIR $SLURM_SUBMIT_DIR

echo -n ">> Job finished @ "
date
echo ">> Output can be found in: $SLURM_SUBMIT_DIR"
 

Research Area: 
MathematicsStatistics