MoDeNa  1.0
Software framework facilitating sequential multi-scale modelling
simulationMode.H
Go to the documentation of this file.
1 
16 IOdictionary simulationMode
18 (
19  IOobject
20  (
21  "simulationMode",
22  runTime.constant(),
23  mesh,
24  IOobject::MUST_READ,
25  IOobject::NO_WRITE
26  )
27 );
28 
29 word simulationTarget(simulationMode.lookup("simulationTarget"));
30 
31 if
32 (
33  !(simulationTarget == "mold-filling"
34  || simulationTarget == "validation")
35 )
36 {
37  FatalErrorIn(args.executable())
38  << "Invalid simulation target " << simulationTarget
39  << "\nValid simulation targets are: "
40  << "\nmold-filling,"
41  << "\nvalidation,"
42  << exit(FatalError);
43 }
44 ///@endcond