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
removed change to adjoint source computation as this is unrelated to …
…current PR
  • Loading branch information
jtramm committed Feb 12, 2025
commit d29562b113d0ec7db3fec87eb7ed4d049cf13869
9 changes: 2 additions & 7 deletions src/random_ray/flat_source_domain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1074,13 +1074,8 @@ void FlatSourceDomain::set_adjoint_sources(const vector<double>& forward_flux)
#pragma omp parallel for
for (int64_t sr = 0; sr < n_source_regions_; sr++) {
for (int g = 0; g < negroups_; g++) {
// Protect against a case where the forward flux is zero or negative.
if (forward_flux[sr * negroups_ + g] > 0.0) {
source_regions_.external_source(sr, g) =
1.0 / forward_flux[sr * negroups_ + g];
} else {
source_regions_.external_source(sr, g) = 0.0;
}
source_regions_.external_source(sr, g) =
1.0 / forward_flux[sr * negroups_ + g];
}
}

Expand Down