IPS-IMAS workflow demo

This IPS has 3 components:

  1. Python IMAS init - creates an initial IMAS file
  2. Fortran IMAS component - does get_slice, modifies it and puts it back as a new slice put_slice.
  3. Python display script - load the IMAS file and display it's contents

It runs a time loop from 1 to 10.

Building IMAS in Docker

This assumes you have cloned the repos already, since they will just be copied in

git clone ssh://git@git.iter.org/imas/access-layer.git
git clone ssh://git@git.iter.org/imas/data-dictionary.git

To build docker image

docker build . --tag imas

Running IPS-IMAS demo in Docker container

docker run imas

Running on stellar

First install IPS

module load anaconda3/2021.5
python -m pip install ipsframework

Build IMAS Fortran component, can use either gfortran or ifort

cd IPS
./build-stellar.sh

Submit batch script

sbatch batch-stellar-intel.sh

Building IMAS on cori

The script imas_cori_build will download, build and install IMAS to $HOME/IMAS. It only builds the python, gfortran and ifort APIs and only for the HDF5 backend.

Running on cori

First install IPS

module load python
python -m pip install ipsframework

Build IMAS Fortran component, can be either gfortran or ifort

cd IPS
./build-cori.sh

Submit batch script

sbatch batch-cori.sh