Versions Compared

Key

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

...

  • Generates a Fortran/CPP wrapper, which intermediates between Kepler actor and user code in terms of:
    • reading/writing of in/out physical data (CPOIDS)
    • passing arguments of standard types to/from the actor
  • Creates a Kepler actor that:
    • calls a user code
    • provides error handling
    • calls debugger (if run in "debug" mode)
    • calls batch submission commands for MPI based actors

...

  • Type - Defines a type of an argument. It is possible to choose either CPO IDS based type (e.g. equilibrium, topinfo, etc.) or primitive type (e.g. int, long, double, char)
  • Single slice - Determines if CPO IDS is passed as single slice or an array. (This setting is valid for CPO IDS types only )
    • if turned ON - Only one slice is passed. An actor will get an additional port to define a time.
    • if turned OFF - An array of all CPOs IDSs for given shot run is passed.
  • Is array - Determines if a primitive type  is passed as a scalar or an array
    • if turned ON - An argument is passed as an array. It requires definition of array size (dynamic array are not supported) 
    • if turned OFF - An argument is passed as a scalar.
  • Array size - Defines the size of an array of primitive types
  • Input - Defines argument as an input
  • Output - Defines argument as an output
  • Label - User defined name of an argument (and actor port)

...

  • equilibrium - an input parameter - one CPO IDS (slice)
  • amns - an input parameter - an array of all "amns" CPO IDS slices stored in given shot/run
  • integer - an input parameter - a scalar
  • double - an input parameter - an array of size 10
  • edge - an in/out parameter - single slice of "edge" CPOIDS
  • waves - an output parameter - all slices of "waves" CPOIDS

4.1.6 "Parameters" tab explained

...

Exercise no. 1

Fortran UAL example (CPO IDS handling)

In this exercise you will create Kepler actor that uses UAL. 
Exercise no. 2

...

Simple C++ code that will be incorporated into Kepler via FC2K tool - addition of one to the value passed into input port of the actor
Exercise no. 3

C++ code within Kepler (CPOIDS)
In this exercise you will create Kepler actor that uses UAL. 
Exercise no. 4

...