Skip to content

Commit e25b9c5

Browse files
committed
const in domain for injector
1 parent f50f62a commit e25b9c5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/archetypes/particle_injector.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ namespace arch {
165165
~KeepConstantInjector() = default;
166166

167167
auto ComputeAvgDensity(const SimulationParams& params,
168-
Domain<S, M>& domain) const -> real_t {
168+
const Domain<S, M>& domain) const -> real_t {
169169
const auto result = this->DeduceRegion(domain, probe_box);
170170
const auto should_probe = std::get<0>(result);
171171
if (not should_probe) {
@@ -218,7 +218,7 @@ namespace arch {
218218
}
219219

220220
auto ComputeNumInject(const SimulationParams& params,
221-
Domain<S, M>& domain,
221+
const Domain<S, M>& domain,
222222
real_t number_density,
223223
const boundaries_t<real_t>& box) const
224224
-> std::tuple<bool, npart_t, array_t<real_t*>, array_t<real_t*>> override {

0 commit comments

Comments
 (0)