PlasCom2  1.0
XPACC Multi-physics simluation application
PlasCom2.C
Go to the documentation of this file.
1 #include "PlasCom2.H"
2 #include "BareBonesKernels.H"
3 
4 
5 namespace plascom2 {
6 
8  {
9  FunctionEntry("RunApplication");
10  int runCode = 0;
11  std::string runMode(appConfig.GetValue<std::string>("PlasCom2:RunMode"));
13  std::ostringstream localMessages;
14  localMessages << "RunMode = '" << runMode << "'" << std::endl;
15  StdOut(localMessages.str());
16  pcpp::io::RenewStream(localMessages);
17  if(runMode.empty())
18  runMode = "BareBones";
19  if(runMode == "BareBones"){
20  runCode = 1;
21  StdOut("Doing barebones.\n");
22  FC_GLOBAL(barebones,BAREBONES)(&runCode);
23  } else if (runMode == "PlasCom2") {
24  runCode = Run();
25  // } else if(runMode == "EulerPBSPeriodic"){
26  // StdOut("Doing Euler.\n");
27  // runCode = RunEulerPBSPeriodic();
28  } else if(runMode == "PC2"){
29  StdOut("Doing PC2.\n");
30  runCode = RunPlasCom2();
31  } else if (runMode == "MaxwellSolver") {
32  StdOut("Doing Maxwell Solver.\n");
33  runCode = RunMaxwellSolver();
34  } else {
35  StdOut("Unknown run option.\n");
36  runCode = 1;
37  }
38  FunctionExit("RunApplication");
39  return(runCode);
40  }
41 
42 }
virtual int Run()
This function implements the main function executed by the program.
Definition: PCPPProgram.H:324
virtual void FunctionExit(const StackType &stackentry)
FunctionExit updates the Stack as well as the Profiler.
Definition: Global.H:609
void RenewStream(std::ostringstream &outStream)
void FC_GLOBAL(barebones, BAREBONES)(int *runCode)
Definition: PC2IO.H:10
virtual void FunctionEntry(const StackType &stackentry)
FunctionEntry updates the Stack as well as the Profiler.
Definition: Global.H:604
virtual int StdOut(const std::string &outstr, unsigned char inlev=1)
Definition: Global.H:439
std::string GetValue(const std::string &key) const
Definition: Parameters.C:24
virtual int RunApplication()
Definition: PlasCom2.C:7
CommunicatorType globalCommunicator
Definition: Global.H:531
subroutine barebones(runCode)
Definition: barebones.f90:5
fixtures::ConfigurationType appConfig
Definition: Simulation.H:42