Chi-Tech
lbsadj_solver_01_main_initialize.cc
Go to the documentation of this file.
1#include "lbsadj_solver.h"
2
4
5#include "chi_runtime.h"
6#include "chi_log.h"
7
9{
11
13 InitQOIs();
14
15 //================================================== Initialize source func
16 auto src_function = std::make_shared<AdjointSourceFunction>(*this);
17
18 using namespace std::placeholders;
20 std::bind(&SourceFunction::operator(), src_function, _1, _2, _3, _4);
21
22 //================================================== Initialize groupsets for
23 // sweeping
25 for (auto& groupset : groupsets_)
26 {
27 InitFluxDataStructures(groupset);
28
29 InitWGDSA(groupset);
30 InitTGDSA(groupset);
31 }
32
35}
static chi::ChiLog & log
Definition: chi_runtime.h:81
size_t GetRepeatingEventTag(std::string event_name)
Definition: chi_log.cc:176
void InitFluxDataStructures(LBSGroupset &groupset)
void InitWGDSA(LBSGroupset &groupset, bool vaccum_bcs_are_dirichlet=true)
void InitTGDSA(LBSGroupset &groupset)
size_t source_event_tag_
Definition: lbs_solver.h:58
void Initialize() override
std::vector< LBSGroupset > groupsets_
Definition: lbs_solver.h:68
virtual void InitializeSolverSchemes()
SetSourceFunction active_set_source_function_
Definition: lbs_solver.h:99