Skip to main content

isSimulationRunModeInit

bool isSimulationRunModeInit() const;

Availability: Component, SubComponent, ComponentExtension

SST can be configured to only run initialization and then terminate. This function returns whether the mode was set to INIT.

Parameters

  • returns (bool) Whether SST's run mode is INIT

Example

output.output("SST is%s configured to only execute initialization.\n", isSimulationRunModeInit() ? "" : " not");
#include <sst/core/component.h> // or
#include <sst/core/subcomponent.h> // or
#include <sst/core/componentExtension.h>