Skip to content
Snippets Groups Projects
Commit 436bb87e authored by Mattijs Janssens's avatar Mattijs Janssens
Browse files

clearer error messages

parent 0ad4f7be
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ directMappedFixedValueFvPatchField<Type>::directMappedFixedValueFvPatchField
<< "\n for patch " << p.name()
<< " of field " << this->dimensionedInternalField().name()
<< " in file " << this->dimensionedInternalField().objectPath()
<< exit(FatalIOError);
<< exit(FatalError);
}
}
......@@ -111,7 +111,7 @@ directMappedFixedValueFvPatchField<Type>::directMappedFixedValueFvPatchField
<< "\n for patch " << p.name()
<< " of field " << this->dimensionedInternalField().name()
<< " in file " << this->dimensionedInternalField().objectPath()
<< exit(FatalIOError);
<< exit(FatalError);
}
}
......
......@@ -199,6 +199,16 @@ void Foam::directMappedPolyPatch::calcMapping() const
<< "Mapping already calculated" << exit(FatalError);
}
if (offset_ == vector::zero)
{
FatalErrorIn("directMappedPolyPatch::calcMapping() const")
<< "Invalid offset " << offset_ << endl
<< "Offset is the vector added to the patch face centres to"
<< " find the cell supplying the data."
<< exit(FatalError);
}
// Get global list of all samples and the processor and face they come from.
pointField samples;
labelList patchFaceProcs;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment