예제 #1
0
void Process::preIteration(const unsigned iter, const GlobalVector &x)
{
    // In every new iteration cached values of secondary variables are expired.
    for (auto& cached_var : _cached_secondary_variables) {
        cached_var->expire();
    }

    preIterationConcreteProcess(iter, x);
}
예제 #2
0
파일: Process.cpp 프로젝트: wenqing/ogs
void Process::preIteration(const unsigned iter, const GlobalVector& x)
{
    // In every new iteration cached values of secondary variables are expired.
    for (auto& cached_var : _cached_secondary_variables)
    {
        cached_var->updateCurrentSolution(x, *_local_to_global_index_map);
    }

    MathLib::LinAlg::setLocalAccessibleVector(x);
    preIterationConcreteProcess(iter, x);
}