Access to runtime environment

The runtime environment are informations about the context during execution of the simulation : input and output directories, options passed to the OpenFLUID application at runtime (verbose/quiet mode, ...)...

They are accessible from simulation functions using the OPENFLUID_GetRunEnvironment method.

bool MyFunction::initializeRun(const openfluid::base::SimulationInfo* SimInfo)
{
  std::string InputDir;

  OPENFLUID_GetRunEnvironment("dir.input",&InputDir);

  // the current input directory is now available through the InputDir local variable 

  return true;
}

The keys for requesting runtime environment information are:


Generated using Doxygen 1.6.3
Creative Commons License Creative Commons By-NC-ND license