Chi-Tech
pi_keigen_03_utils.cc
Go to the documentation of this file.
1#include "pi_keigen.h"
2
3#include "chi_runtime.h"
4#include "chi_log.h"
5
6namespace lbs
7{
8
9// ##################################################################
10/**Combines function calls to set fission source.*/
12 const bool additive)
13{
14 if (not additive) chi_math::Set(q_moments_local_, 0.0);
17 input,
20}
21
22// ##################################################################
23/**Combines function calls to set scattering source source.*/
25 const VecDbl& input, const bool additive, const bool suppress_wg_scat /*=false*/)
26{
27 if (not additive) chi_math::Set(q_moments_local_, 0.0);
31 input,
33 (suppress_wg_scat ? SUPPRESS_WG_SCATTER : NO_FLAGS_SET));
34}
35
36} // namespace lbs
LBSGroupset & front_gs_
Definition: pi_keigen.h:24
void SetLBSScatterSource(const VecDbl &input, bool additive, bool suppress_wg_scat=false)
lbs::SetSourceFunction active_set_source_function_
Definition: pi_keigen.h:23
void SetLBSFissionSource(const VecDbl &input, bool additive)
void Set(VecDbl &x, const double &val)
@ APPLY_AGS_FISSION_SOURCES
Definition: lbs_structs.h:94
@ NO_FLAGS_SET
Definition: lbs_structs.h:89
@ APPLY_WGS_FISSION_SOURCES
Definition: lbs_structs.h:93
@ SUPPRESS_WG_SCATTER
Definition: lbs_structs.h:95
@ APPLY_WGS_SCATTER_SOURCES
Definition: lbs_structs.h:91
@ APPLY_AGS_SCATTER_SOURCES
Definition: lbs_structs.h:92
std::vector< double > VecDbl
Definition: lbs_structs.h:18