STYLE: nearWallFields.C: added debug messages

This commit is contained in:
mattijs
2011-12-13 12:44:45 +00:00
parent 2499ad10a7
commit 37861591bd

View File

@ -70,13 +70,23 @@ Foam::nearWallFields::nearWallFields
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
Foam::nearWallFields::~nearWallFields() Foam::nearWallFields::~nearWallFields()
{} {
if (debug)
{
Info<< "nearWallFields::~nearWallFields()" << endl;
}
}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void Foam::nearWallFields::read(const dictionary& dict) void Foam::nearWallFields::read(const dictionary& dict)
{ {
if (debug)
{
Info<< "nearWallFields::read(const dictionary&)" << endl;
}
if (active_) if (active_)
{ {
const fvMesh& mesh = refCast<const fvMesh>(obr_); const fvMesh& mesh = refCast<const fvMesh>(obr_);
@ -122,6 +132,11 @@ void Foam::nearWallFields::read(const dictionary& dict)
void Foam::nearWallFields::execute() void Foam::nearWallFields::execute()
{ {
if (debug)
{
Info<< "nearWallFields:execute()" << endl;
}
if (active_) if (active_)
{ {
sampleFields(vsf_); sampleFields(vsf_);
@ -135,12 +150,22 @@ void Foam::nearWallFields::execute()
void Foam::nearWallFields::end() void Foam::nearWallFields::end()
{ {
// Do nothing if (debug)
{
Info<< "nearWallFields:end()" << endl;
}
// Update fields
execute();
} }
void Foam::nearWallFields::write() void Foam::nearWallFields::write()
{ {
if (debug)
{
Info<< "nearWallFields:write()" << endl;
}
// Do nothing // Do nothing
if (active_) if (active_)
{ {