Versions Compared

Key

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

Prepare your environment

Code Block
languagebash
$ module load imasenv/3.24.0/rc # if not set


Info

Before proceeding any further, make sure you have configured your Kepler environment. Take a look here 00. Initial setup or here 05.3. IMAS - basic topics - environment set-up(POZ'19Oct)

Sample codes of using switchLib

Prepare example:

Code Block
$ cd switchLib/fortran
$ module load imasenv       # load environment if not set
$ tree
.
├── expected_output_alt.txt
├── expected_output_def.txt
├── main.f90
├── Makefile
├── run_test.sh
├── switch_lib_alt.f90
├── switch_lib_def.f90
├── switch_lib_fc2k.xml
├── switch_lib_workflow_alt.xml
└── switch_lib_workflow_def.xml

Run example:

Code Block
languagebash
$ ./run_test.sh
building actor - switch_lib_fc2k.xml - OK
Skipping log removal
switch_lib_workflow_def workflow execution - OK
Skipping log removal
switch_lib_workflow_alt workflow execution - OK
Skipping log removal
switch_lib_workflow_def diff  - OK
Skipping log removal
switch_lib_workflow_alt diff  - OK
Skipping log removal

The same example in Kepler:

standar version libraryoptional version of library

Image Added

Image Added

Comparison of actor configurations

standar version libraryoptional version of library

Image Added

Image Added