checkPatchFieldTypes.H
Go to the documentation of this file.
1 if (!isA<zeroGradientFvPatchScalarField>(k_.boundaryField()[patchi]))
2 {
4  << k_.boundaryField()[patchi].type()
5  << " is the wrong k patchField type for wall-functions on patch "
6  << curPatch.name() << nl
7  << " should be zeroGradient"
8  << exit(FatalError);
9 }
10 
11 if (!isA<zeroGradientFvPatchScalarField>(epsilon_.boundaryField()[patchi]))
12 {
14  << epsilon_.boundaryField()[patchi].type()
15  << " is the wrong epsilon patchField type for wall-functions on patch "
16  << curPatch.name() << nl
17  << " should be zeroGradient"
18  << exit(FatalError);
19 }
Foam::FatalError
error FatalError
Foam::exit
errorManipArg< error, int > exit(error &err, const int errNo=1)
Definition: errorManip.H:130
FatalErrorInFunction
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Definition: error.H:381
Foam::nl
constexpr char nl
Definition: Ostream.H:385