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

This commit is contained in:
andy
2013-11-05 15:21:28 +00:00
parent d41e15840d
commit 2c6491c3c0

View File

@ -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();