本文整理汇总了C++中Transient::forceOutput方法的典型用法代码示例。如果您正苦于以下问题:C++ Transient::forceOutput方法的具体用法?C++ Transient::forceOutput怎么用?C++ Transient::forceOutput使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Transient
的用法示例。
在下文中一共展示了Transient::forceOutput方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: aldit
//.........这里部分代码省略.........
}
solution.close();
}
ex->takeStep();
bool converged = ex->lastSolveConverged();
if (!converged)
{
mooseWarning("While sub_cycling "<<_name<<_first_local_app+i<<" failed to converge!"<<std::endl);
_failures++;
if (_failures > _max_failures)
mooseError("While sub_cycling "<<_name<<_first_local_app+i<<" REALLY failed!"<<std::endl);
}
Real solution_change_norm = ex->getSolutionChangeNorm();
if (_detect_steady_state)
Moose::out << "Solution change norm: " << solution_change_norm << std::endl;
if (converged && _detect_steady_state && solution_change_norm < _steady_state_tol)
{
Moose::out << "Detected Steady State! Fast-forwarding to " << target_time << std::endl;
at_steady = true;
// Set the time for the problem to the target time we were looking for
ex->setTime(target_time-app_time_offset);
// Force it to output right now \todo{Remove}
ex->forceOutput();
// Indicate that the next output call (occurs in ex->endStep()) should output, regarless of intervals etc...
output_warehouse.forceOutput();
// Clean up the end
ex->endStep();
}
else
ex->endStep();
}
// If we were looking for a steady state, but didn't reach one, we still need to output one more time
if (!at_steady)
{
output_warehouse.forceOutput();
output_warehouse.outputStep();
ex->forceOutput(); // \todo{Remove}
}
}
else if (_tolerate_failure)
{
ex->takeStep(dt);
ex->setTime(target_time-app_time_offset);
ex->forceOutput(); // \todo{Remove}
output_warehouse.forceOutput();
ex->endStep();
}
else
{
Moose::out << "Solving Normal Step!" << std::endl;
if (_first != true)