Skip to content
Snippets Groups Projects
Commit 9ea84ab6 authored by Andrew Heather's avatar Andrew Heather
Browse files

added error msg when sampling patch is not found

parent 5871f9e0
Branches
Tags
No related merge requests found
......@@ -234,6 +234,16 @@ void directMappedFixedValueFvPatchField<Type>::updateCoeffs()
(
mpp.samplePatch()
);
if (patchID < 0)
{
FatalErrorIn
(
"void directMappedFixedValueFvPatchField<Type>::"
"updateCoeffs()"
)<< "Unable to find sample patch " << mpp.samplePatch()
<< " for patch " << this->patch().name() << nl
<< abort(FatalError);
}
typedef GeometricField<Type, fvPatchField, volMesh> fieldType;
const word& fieldName = this->dimensionedInternalField().name();
const fieldType& sendField =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment