Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
merging with develop
  • Loading branch information
jtramm committed Feb 17, 2025
commit a9e1ec073b7d367f15b83def6cf0351f67ef32ee
22 changes: 1 addition & 21 deletions src/random_ray/flat_source_domain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ void FlatSourceDomain::update_neutron_source(double k_eff)
source_regions_.source(se) = 0.0;
}

// Add scattering source
// Add scattering + fission source
#pragma omp parallel for
for (int64_t sr = 0; sr < n_source_regions_; sr++) {
int material = source_regions_.material(sr);
Expand All @@ -141,26 +141,6 @@ void FlatSourceDomain::update_neutron_source(double k_eff)
double scalar_flux = source_regions_.scalar_flux_old(sr, g_in);
double sigma_s =
sigma_s_[material * negroups_ * negroups_ + g_out * negroups_ + g_in];
scatter_source += sigma_s * scalar_flux;
}

source_regions_.source(sr, g_out) = scatter_source / sigma_t;
}
}

// Add fission source
#pragma omp parallel for
for (int64_t sr = 0; sr < n_source_regions_; sr++) {
int material = source_regions_.material(sr);
if (material == MATERIAL_VOID) {
continue;
}
for (int g_out = 0; g_out < negroups_; g_out++) {
double sigma_t = sigma_t_[material * negroups_ + g_out];
double fission_source = 0.0;

for (int g_in = 0; g_in < negroups_; g_in++) {
double scalar_flux = source_regions_.scalar_flux_old(sr, g_in);
double nu_sigma_f = nu_sigma_f_[material * negroups_ + g_in];
double chi = chi_[material * negroups_ + g_out];

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.