Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
Create a path to the iofun folder on a Linux® platform.

iofun_dir = ['toolbox' filesep 'matlab' filesep 'iofun']

iofun_dir = 
'toolbox/matlab/iofun'


Another pbs script Usage Example

Open matlab (module load matlab/2021a;matlab) and do the following to add path:
addpath('/export/home/s2986149/sw/matlab/R2021a/toolbox')
addpath('/export/home/s2986149/sw/matlab/R2021a/toolbox/GIBBONS')
addpath('/export/home/s2986149/sw/matlab/R2021a/toolbox/GIBBONS/lib')
addpath('/export/home/s2986149/sw/matlab/R2021a/toolbox/GIBBONS/lib_ext')
addpath(genpath('/export/home/s2986149/sw/matlab/R2021a/toolbox'))
savepath /export/home/s2986149/sw/matlab/R2021a/toolbox/pathdef.m
From shell prompt, I do this:
cp  /export/home/s123456/sw/matlab/R2021a/toolbox/pathdef.m  /export/home/s123456/
Create a pbs script as follows:
No Format
#!/bin/bash
#PBS -m abe
#PBS -M email@griffith.edu.au
#PBS -N FEBio3_visco_ecoflex10
#PBS -q workq
#PBS -l select=1:ncpus=6:mem=10gb,walltime=300:00:00
echo 'This script is running on:'
hostname
echo 'The data is:'
date
echo $PBS_O_WORKDIR
module load misc/febio/3.6
#module load misc/baronsolver/20.4.14 
module load anaconda3/2021.11
module load matlab/2021a
source activate myenv
pwd
module list
cd /export/home/s123456/FEA_scripts/Mat_Visco_Ecoflex10
pwd
# The command(s) to be executed:
cp ~/pathdef.m .
matlab -nodisplay -nosplash -nodesktop -r "run('/export/home/s2986149/FEA_scripts/Mat_Visco_Ecoflex10/C_inverse_FEA_uniaxial_viscoelastic.m');exit;"
echo 'Done'