Chi-Tech
lbts_02_execute.cc
Go to the documentation of this file.
1
#include "
lbts_transient_solver.h
"
2
3
#include "
chi_runtime.h
"
4
#include "
chi_log.h
"
5
6
//###################################################################
7
/**Transient solver execute routine.*/
8
void
lbs::DiscOrdTransientSolver::Execute
()
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
20
PostStepCallBackFunction
();
21
22
if
(not
transient_options_
.
inhibit_advance
)
23
{
24
Advance
();
//new copied to prev + time+=dt
25
++step_number;
26
transient_options_
.
inhibit_advance
=
false
;
27
}
28
}
29
30
UpdateFieldFunctions();
31
32
chi::log.Log() <<
"Done Executing "
<< TextName() <<
"."
;
33
}
chi_log.h
chi_runtime.h
lbs::DiscOrdTransientSolver::Advance
void Advance() override
Definition:
lbts_02b_advance.cc:5
lbs::DiscOrdTransientSolver::time_
double time_
Definition:
lbts_transient_solver.h:44
lbs::DiscOrdTransientSolver::Step
void Step() override
Definition:
lbts_02a_step.cc:11
lbs::DiscOrdTransientSolver::PostStepCallBackFunction
void PostStepCallBackFunction() const
Definition:
lbts_callback.cc:9
lbs::DiscOrdTransientSolver::Execute
void Execute() override
Definition:
lbts_02_execute.cc:8
lbs::DiscOrdTransientSolver::transient_options_
struct lbs::DiscOrdTransientSolver::Options transient_options_
lbts_transient_solver.h
lbs::DiscOrdTransientSolver::Options::inhibit_advance
bool inhibit_advance
Definition:
lbts_transient_solver.h:33
lbs::DiscOrdTransientSolver::Options::max_time_steps
int max_time_steps
Definition:
lbts_transient_solver.h:35
lbs::DiscOrdTransientSolver::Options::t_final
double t_final
Definition:
lbts_transient_solver.h:34
modules
LinearBoltzmannSolvers
D_DO_Transient
lbts_02_execute.cc
Generated by
1.9.3