Skip to content
Snippets Groups Projects
Commit 3cf1f5ea authored by mattijs's avatar mattijs
Browse files

ENH: IOdictionary : print name in warning message about READ_IF_MODIFIED

parent 02d58696
No related branches found
No related tags found
No related merge requests found
...@@ -48,7 +48,8 @@ Foam::IOdictionary::IOdictionary(const IOobject& io) ...@@ -48,7 +48,8 @@ Foam::IOdictionary::IOdictionary(const IOobject& io)
{ {
WarningIn("IOdictionary::IOdictionary(const IOobject&)") WarningIn("IOdictionary::IOdictionary(const IOobject&)")
//FatalErrorIn("IOdictionary::IOdictionary(const IOobject&)") //FatalErrorIn("IOdictionary::IOdictionary(const IOobject&)")
<< "Dictionary constructed with IOobject::MUST_READ" << "Dictionary " << name()
<< " constructed with IOobject::MUST_READ"
" instead of IOobject::MUST_READ_IF_MODIFIED." << nl " instead of IOobject::MUST_READ_IF_MODIFIED." << nl
<< "Use MUST_READ_IF_MODIFIED if you need automatic rereading." << "Use MUST_READ_IF_MODIFIED if you need automatic rereading."
<< endl; << endl;
...@@ -82,7 +83,8 @@ Foam::IOdictionary::IOdictionary(const IOobject& io, const dictionary& dict) ...@@ -82,7 +83,8 @@ Foam::IOdictionary::IOdictionary(const IOobject& io, const dictionary& dict)
WarningIn WarningIn
( (
"IOdictionary::IOdictionary(const IOobject& const dictionary&)" "IOdictionary::IOdictionary(const IOobject& const dictionary&)"
) << "Dictionary constructed with IOobject::MUST_READ" ) << "Dictionary " << name()
<< " constructed with IOobject::MUST_READ"
" instead of IOobject::MUST_READ_IF_MODIFIED." << nl " instead of IOobject::MUST_READ_IF_MODIFIED." << nl
<< "Use MUST_READ_IF_MODIFIED if you need automatic rereading." << "Use MUST_READ_IF_MODIFIED if you need automatic rereading."
<< endl; << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment