Miscellaneous Methods

These other methods are also available within HostAPI for use within host functions and host conditions:

Method

Return

Description

getStepCounter()

unsigned int

Returns the current step index, the first step has index 0.

getSimulationConfig()

Simulation::Config

Returns the current simulation’s simulation config struct.

getCUDAConfig()

CUDASimulation::Config

Returns the current simulation’s CUDA config struct.

getEnsembleRunIndex()

unsigned int

Returns the index of the simulation run within the ensemble’s RunPlanVector. If the simulation is not part of an ensemble, UINT_MAX will be returned.