コード例 #1
0
bool Foam::OutputFilterFunctionObject<OutputFilter>::execute
(
    const bool forceWrite
)
{
    if (active())
    {
        if (!storeFilter_ && !allocateFilter())
        {
            return false;
        }

        if (evaluateControl_.output())
        {
            ptr_->execute();
        }

        if (forceWrite || outputControl_.output())
        {
            ptr_->write();
        }

        if (!storeFilter_)
        {
            destroyFilter();
        }
    }

    return true;
}
コード例 #2
0
bool Foam::OutputFilterFunctionObject<OutputFilter>::execute
(
    const bool forceWrite
)
{
    if (enabled_)
    {
        if (!storeFilter_)
        {
            allocateFilter();
        }

        ptr_->execute();

        if (forceWrite || outputControl_.output())
        {
            ptr_->write();
        }

        if (!storeFilter_)
        {
            destroyFilter();
        }
    }

    return true;
}
bool Foam::OutputFilterFunctionObject<OutputFilter>::end()
{
    Dbug << this->name() << " OutputFilterFunctionObject::end()" << endl;

    if (enabled_)
    {
        if (!storeFilter_)
        {
            allocateFilter();
        }

        ptr_->end();

        if (outputControl_.output())
        {
            ptr_->write();
        }

        if (!storeFilter_)
        {
            destroyFilter();
        }
    }

    return true;
}
bool Foam::OutputFilterFunctionObject<OutputFilter>::execute
(
    const bool forceWrite
)
{
    Dbug << this->name() << " OutputFilterFunctionObject::execute() forceWrite: " << forceWrite << endl;

    if (active())
    {
        if (!storeFilter_)
        {
            allocateFilter();
        }

        if (evaluateControl_.output())
        {
            ptr_->execute();
        }

        if (forceWrite || outputControl_.output())
        {
            ptr_->write();
        }

        if (!storeFilter_)
        {
            destroyFilter();
        }
    }

    return true;
}
コード例 #5
0
bool Foam::OutputFilterFunctionObject<OutputFilter>::start()
{
    readDict();

    if (enabled_&&storeFilter_)
    {
        allocateFilter();
    }

    return true;
}
bool Foam::OutputFilterFunctionObject<OutputFilter>::start()
{
    Dbug << this->name() << " OutputFilterFunctionObject::start()" << endl;

    readDict();

    if (enabled_ && storeFilter_)
    {
        allocateFilter();
    }

    Dbug << this->name() << " OutputFilterFunctionObject::start() - end" << endl;

    return true;
}
コード例 #7
0
bool Foam::OutputFilterFunctionObject<OutputFilter>::end()
{
    if (active())
    {
        if (!storeFilter_)
        {
            allocateFilter();
        }

        ptr_->end();

        if (outputControl_.output())
        {
            ptr_->write();
        }

        if (!storeFilter_)
        {
            destroyFilter();
        }
    }

    return true;
}