Commit bd767fb9 authored by Ned Coltman's avatar Ned Coltman Committed by Melanie Lipp

[rans][zeroeq][kepsilon] guard for hasChannelGeometry

parent aaa5b663
......@@ -92,8 +92,14 @@ public:
*/
void updateStaticWallProperties()
{
ParentType::updateStaticWallProperties();
if (ParentType::hasChannelGeometry() != 1)
{
DUNE_THROW(Dune::NotImplemented, "\n Due to grid/geometric concerns, k-epsilon models should only be used for "
<< " wall bounded flows with flat channel geometries. "
<< "\n If your geometry is a flat channel, please set the runtime parameter RANS.HasChannelGeometry to true. \n");
}
ParentType::updateStaticWallProperties();
// update size and initial values of the global vectors
matchingPointIdx_.resize(this->gridGeometry().elementMapper().size(), 0);
storedDensity_.resize(this->gridGeometry().elementMapper().size(), 0.0);
......
......@@ -85,6 +85,12 @@ public:
*/
void updateStaticWallProperties()
{
if (ParentType::hasChannelGeometry() != 1)
{
DUNE_THROW(Dune::NotImplemented, "\n Due to grid/geometric concerns, zero-eq models should only be used for flat channel geometries. "
<< "\n If your geometry is a flat channel, please set the runtime parameter RANS.HasChannelGeometry to true. \n");
}
ParentType::updateStaticWallProperties();
// update size and initial values of the global vectors
......
Markdown is supported
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