All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
readFluxScheme.H
Go to the documentation of this file.
1 word fluxScheme("Kurganov");
2 if (mesh.schemesDict().readIfPresent("fluxScheme", fluxScheme))
3 {
4  if ((fluxScheme == "Tadmor") || (fluxScheme == "Kurganov"))
5  {
6  Info<< "fluxScheme: " << fluxScheme << endl;
7  }
8  else
9  {
11  << "fluxScheme: " << fluxScheme
12  << " is not a valid choice. "
13  << "Options are: Tadmor, Kurganov"
14  << abort(FatalError);
15  }
16 }
error FatalError
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Definition: error.H:319
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:251
dynamicFvMesh & mesh
errorManip< error > abort(error &err)
Definition: errorManip.H:131
messageStream Info
word fluxScheme("Kurganov")