#!/bin/bash #SBATCH --job-name=test_job #SBATCH --nodes=1 #SBATCH --tasks-per-node=1 #SBATCH --cpus-per-task=1 #SBATCH --time=24:00:00 # Replace [budget code] below with your project code (e.g. t01) #SBATCH --account=e696 #SBATCH --partition=standard #SBATCH --qos=standard #SBATCH --exclusive module load PrgEnv-gnu # Set the prefix PRFX=/mnt/lustre/a2fs-work2/work/e696/e696/yabin/preCICE # Set paths to find precice export PATH=$PRFX/precice-2.5.0:$PATH export LD_LIBRARY_PATH=$PRFX/precice-2.5.0/lib64:$PRFX/boost/lib:$LD_LIBRARY_PATH export CPATH=$PRFX/precice/include:$CPATH export PKG_CONFIG_PATH=$PRFX/precice-2.5.0/lib64/pkgconfig:$PKG_CONFIG_PATH # Set paths to find the adapter export PATH=$PRFX/adapter-install:$PATH export LD_LIBRARY_PATH=$PRFX/adapter-install:$LD_LIBRARY_PATH # Set paths to find OpenFOAM export FOAM_INSTALL_DIR=$PRFX/OpenFOAM-v2106/OpenFOAM-v2106 source ${FOAM_INSTALL_DIR}/etc/bashrc cd /mnt/lustre/a2fs-work2/work/e696/e696/yabin/FSI_Simulations/test/fluid-openfoam pimpleFoam