Commit 9b33d41f authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'feature/friendlier-out-of-range-message' into 'master'

[tabulatedcomponent] make warning message more clear and friendly

Closes #750

See merge request !1693
parents fde55173 2dfa8103
......@@ -647,11 +647,14 @@ private:
return;
if (!initialized_)
std::cerr << "TABULATED COMPONENT '" << name()
<< "' WAS NOT INITIALIZED! "
<< "PLEASE CALL FluidSystem::init()\n";
std::cerr << "Warning: tabulated component '" << name()
<< "' has not been initialized. "
<< "Call FluidSystem::init() to use the tabulation in order to reduce runtime. \n";
else
std::cerr << "FORWARD METHOD CALL "<<quantity<<"("<<arg1<<", "<<arg2<<") OF COMPONENT '"<<name()<<"'. TABULATION TOO SMALL?\n";
std::cerr << "Warning: "<<quantity<<"(T="<<arg1<<", p="<<arg2<<") of component '"<<name()
<< "' is outside tabulation range: ("<< tempMin_<<"<=T<="<<tempMax_<<"), ("
<< pressMin_<<"<=p<=" <<pressMax_<<"). "
<< "Forwarded to FluidSystem for direct evaluation of "<<quantity<<". \n";
warningPrinted_ = true;
#endif
}
......
Supports Markdown
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