Chi-Tech
lbts_02_execute.cc
Go to the documentation of this file.
2
3#include "chi_runtime.h"
4#include "chi_log.h"
5
6//###################################################################
7/**Transient solver execute routine.*/
9{
10 chi::log.Log() << "Executing " << TextName() << ".";
11
12 const int max_num_steps = transient_options_.max_time_steps;
13 const double max_time = transient_options_.t_final;
14 int step_number = 0;
15 while (((max_num_steps > 0 and step_number < max_num_steps) or
16 (max_num_steps < 0)) and (time_ < max_time))
17 {
18 Step();
19
21
23 {
24 Advance(); //new copied to prev + time+=dt
25 ++step_number;
27 }
28 }
29
30 UpdateFieldFunctions();
31
32 chi::log.Log() << "Done Executing " << TextName() << ".";
33}
void PostStepCallBackFunction() const
Definition: lbts_callback.cc:9
struct lbs::DiscOrdTransientSolver::Options transient_options_