Chi-Tech
diffusion_mip_00_constrdestr.cc
Go to the documentation of this file.
1#include "diffusion_mip.h"
2
4
5#include <utility>
6
7// ###################################################################
8/**Default constructor.*/
10 std::string text_name,
12 const chi_math::UnknownManager& uk_man,
13 std::map<uint64_t, BoundaryCondition> bcs,
14 MatID2XSMap map_mat_id_2_xs,
15 const std::vector<UnitCellMatrices>& unit_cell_matrices,
16 const bool verbose /*=false*/)
17 : DiffusionSolver(std::move(text_name),
18 sdm,
19 uk_man,
20 std::move(bcs),
21 std::move(map_mat_id_2_xs),
22 unit_cell_matrices,
23 verbose,
24 /*requires_ghosts=*/false)
25{
27 const auto& PWLD = SDM_TYPE ::PIECEWISE_LINEAR_DISCONTINUOUS;
28
29 if (sdm_.Type() != PWLD)
30 throw std::logic_error("lbs::acceleration::DiffusionMIPSolver: can only be"
31 " used with PWLD.");
32}
SpatialDiscretizationType Type() const
DiffusionMIPSolver(std::string text_name, const chi_math::SpatialDiscretization &sdm, const chi_math::UnknownManager &uk_man, std::map< uint64_t, BoundaryCondition > bcs, MatID2XSMap map_mat_id_2_xs, const std::vector< UnitCellMatrices > &unit_cell_matrices, bool verbose)
const chi_math::SpatialDiscretization & sdm_
Definition: diffusion.h:39
std::map< int, Multigroup_D_and_sigR > MatID2XSMap
Definition: diffusion.h:35
SpatialDiscretizationType
Definition: chi_math.h:37