コード例 #1
0
void Foam::expressionField::storeField(
    const T &data,
    autoPtr<T> &store
)
{
    if(store.empty()) {
        store.reset(
            new T(
                IOobject(
                    name_,
                    obr_.time().timeName(),
                    obr_,
                    IOobject::NO_READ,
                    autowrite_ ? IOobject::AUTO_WRITE : IOobject::NO_WRITE
                ),
                data
            )
        );
    } else {
        store()==data;
    }
}