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