Skip to content
Snippets Groups Projects
Commit 2c6491c3 authored by andy's avatar andy
Browse files

ENH: film-pyrolysis BC - output available region names if region not found

parent d41e1584
No related branches found
No related tags found
No related merge requests found
...@@ -49,6 +49,11 @@ filmModel() const ...@@ -49,6 +49,11 @@ filmModel() const
} }
} }
DynamicList<word> modelNames;
forAllConstIter(HashTable<const filmModelType*>, models, iter)
{
modelNames.append(iter()->regionMesh().name());
}
FatalErrorIn FatalErrorIn
( (
...@@ -58,6 +63,7 @@ filmModel() const ...@@ -58,6 +63,7 @@ filmModel() const
"filmModel() const" "filmModel() const"
) )
<< "Unable to locate film region " << filmRegionName_ << "Unable to locate film region " << filmRegionName_
<< ". Available regions include: " << modelNames
<< abort(FatalError); << abort(FatalError);
return **models.begin(); return **models.begin();
...@@ -80,6 +86,13 @@ pyrModel() const ...@@ -80,6 +86,13 @@ pyrModel() const
} }
} }
DynamicList<word> modelNames;
forAllConstIter(HashTable<const pyrolysisModelType*>, models, iter)
{
modelNames.append(iter()->regionMesh().name());
}
FatalErrorIn FatalErrorIn
( (
"const filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::" "const filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::"
...@@ -88,6 +101,7 @@ pyrModel() const ...@@ -88,6 +101,7 @@ pyrModel() const
"pyrModel() const" "pyrModel() const"
) )
<< "Unable to locate pyrolysis region " << pyrolysisRegionName_ << "Unable to locate pyrolysis region " << pyrolysisRegionName_
<< ". Available regions include: " << modelNames
<< abort(FatalError); << abort(FatalError);
return **models.begin(); return **models.begin();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment