mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: IOField,IOList : added name printing in error message.
This commit is contained in:
@ -36,7 +36,8 @@ Foam::IOField<Type>::IOField(const IOobject& io)
|
|||||||
if (io.readOpt() == IOobject::MUST_READ_IF_MODIFIED)
|
if (io.readOpt() == IOobject::MUST_READ_IF_MODIFIED)
|
||||||
{
|
{
|
||||||
WarningIn("IOField::IOField(const IOobject&)")
|
WarningIn("IOField::IOField(const IOobject&)")
|
||||||
<< "IOField constructed with IOobject::MUST_READ_IF_MODIFIED"
|
<< "IOField " << name()
|
||||||
|
<< " constructed with IOobject::MUST_READ_IF_MODIFIED"
|
||||||
" but IOField does not support automatic rereading."
|
" but IOField does not support automatic rereading."
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
@ -65,7 +66,8 @@ Foam::IOField<Type>::IOField(const IOobject& io, const label size)
|
|||||||
if (io.readOpt() == IOobject::MUST_READ_IF_MODIFIED)
|
if (io.readOpt() == IOobject::MUST_READ_IF_MODIFIED)
|
||||||
{
|
{
|
||||||
WarningIn("IOField::IOField(const IOobject&, const label)")
|
WarningIn("IOField::IOField(const IOobject&, const label)")
|
||||||
<< "IOField constructed with IOobject::MUST_READ_IF_MODIFIED"
|
<< "IOField " << name()
|
||||||
|
<< " constructed with IOobject::MUST_READ_IF_MODIFIED"
|
||||||
" but IOField does not support automatic rereading."
|
" but IOField does not support automatic rereading."
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
@ -98,7 +100,8 @@ Foam::IOField<Type>::IOField(const IOobject& io, const Field<Type>& f)
|
|||||||
if (io.readOpt() == IOobject::MUST_READ_IF_MODIFIED)
|
if (io.readOpt() == IOobject::MUST_READ_IF_MODIFIED)
|
||||||
{
|
{
|
||||||
WarningIn("IOField::IOField(const IOobject&, const Field<Type>&)")
|
WarningIn("IOField::IOField(const IOobject&, const Field<Type>&)")
|
||||||
<< "IOField constructed with IOobject::MUST_READ_IF_MODIFIED"
|
<< "IOField " << name()
|
||||||
|
<< " constructed with IOobject::MUST_READ_IF_MODIFIED"
|
||||||
" but IOField does not support automatic rereading."
|
" but IOField does not support automatic rereading."
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
@ -133,7 +136,8 @@ Foam::IOField<Type>::IOField(const IOobject& io, const Xfer<Field<Type> >& f)
|
|||||||
WarningIn
|
WarningIn
|
||||||
(
|
(
|
||||||
"IOField::IOField(const IOobject&, const Xfer<Field<Type> >&)"
|
"IOField::IOField(const IOobject&, const Xfer<Field<Type> >&)"
|
||||||
) << "IOField constructed with IOobject::MUST_READ_IF_MODIFIED"
|
) << "IOField " << name()
|
||||||
|
<< " constructed with IOobject::MUST_READ_IF_MODIFIED"
|
||||||
" but IOField does not support automatic rereading."
|
" but IOField does not support automatic rereading."
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -36,8 +36,9 @@ Foam::IOList<T>::IOList(const IOobject& io)
|
|||||||
if (io.readOpt() == IOobject::MUST_READ_IF_MODIFIED)
|
if (io.readOpt() == IOobject::MUST_READ_IF_MODIFIED)
|
||||||
{
|
{
|
||||||
WarningIn("IOList::IOList(const IOobject&)")
|
WarningIn("IOList::IOList(const IOobject&)")
|
||||||
<< "IOField constructed with IOobject::MUST_READ_IF_MODIFIED"
|
<< "IOList " << name()
|
||||||
" but IOField does not support automatic rereading."
|
<< " constructed with IOobject::MUST_READ_IF_MODIFIED"
|
||||||
|
" but IOList does not support automatic rereading."
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
if
|
if
|
||||||
@ -64,8 +65,9 @@ Foam::IOList<T>::IOList(const IOobject& io, const label size)
|
|||||||
if (io.readOpt() == IOobject::MUST_READ_IF_MODIFIED)
|
if (io.readOpt() == IOobject::MUST_READ_IF_MODIFIED)
|
||||||
{
|
{
|
||||||
WarningIn("IOList::IOList(const IOobject&, const label)")
|
WarningIn("IOList::IOList(const IOobject&, const label)")
|
||||||
<< "IOField constructed with IOobject::MUST_READ_IF_MODIFIED"
|
<< "IOList " << name()
|
||||||
" but IOField does not support automatic rereading."
|
<< " constructed with IOobject::MUST_READ_IF_MODIFIED"
|
||||||
|
" but IOList does not support automatic rereading."
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
if
|
if
|
||||||
@ -96,8 +98,9 @@ Foam::IOList<T>::IOList(const IOobject& io, const List<T>& list)
|
|||||||
if (io.readOpt() == IOobject::MUST_READ_IF_MODIFIED)
|
if (io.readOpt() == IOobject::MUST_READ_IF_MODIFIED)
|
||||||
{
|
{
|
||||||
WarningIn("IOList::IOList(const IOobject&, const List<T>&)")
|
WarningIn("IOList::IOList(const IOobject&, const List<T>&)")
|
||||||
<< "IOField constructed with IOobject::MUST_READ_IF_MODIFIED"
|
<< "IOList " << name()
|
||||||
" but IOField does not support automatic rereading."
|
<< " constructed with IOobject::MUST_READ_IF_MODIFIED"
|
||||||
|
" but IOList does not support automatic rereading."
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -131,8 +134,9 @@ Foam::IOList<T>::IOList(const IOobject& io, const Xfer<List<T> >& list)
|
|||||||
WarningIn
|
WarningIn
|
||||||
(
|
(
|
||||||
"IOList::IOList(const IOobject&, const Xfer<List<T> >&)"
|
"IOList::IOList(const IOobject&, const Xfer<List<T> >&)"
|
||||||
) << "IOField constructed with IOobject::MUST_READ_IF_MODIFIED"
|
) << "IOList " << name()
|
||||||
" but IOField does not support automatic rereading."
|
<< " constructed with IOobject::MUST_READ_IF_MODIFIED"
|
||||||
|
" but IOList does not support automatic rereading."
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user