Skip to content

Commit fdbc26a

Browse files
authored
Merge pull request #162 from entity-toolkit/bug/grtoggles
Fieldsolver & Deposit Toggles fixed in GR
2 parents 4d0dba0 + 0d1fbc6 commit fdbc26a

4 files changed

Lines changed: 8 additions & 9 deletions

File tree

input.example.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,10 @@
260260
# Stencil coefficients for the field solver [notation as in Blinne+ (2018)]
261261
# @note: Standard Yee solver: `delta_i = beta_ij = 0.0`
262262
[algorithms.fieldsolver]
263+
# Enable the fieldsolver
264+
# @type: bool
265+
# @default: true
266+
enable = ""
263267
# delta_x coefficient (for `F_{i +/- 3/2, j, k}`)
264268
# @type: float
265269
# @default: 0.0

pgens/accretion/accretion.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@
3535
CFL = 0.5
3636
correction = 1.0
3737

38-
[algorithms.toggles]
39-
deposit = true
40-
fieldsolver = true
41-
4238
[particles]
4339
ppc0 = 4.0
4440
use_weights = true

pgens/wald/wald.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@
3030
[algorithms.timestep]
3131
CFL = 0.5
3232

33-
[algorithms.toggles]
34-
deposit = false
35-
fieldsolver = true
33+
[algorithms.deposit]
34+
enable = false
3635

3736
[particles]
3837
ppc0 = 2.0

src/engines/grpic.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ namespace ntt {
9494

9595
void step_forward(timer::Timers& timers, domain_t& dom) override {
9696
const auto fieldsolver_enabled = m_params.template get<bool>(
97-
"algorithms.toggles.fieldsolver");
97+
"algorithms.fieldsolver.enable");
9898
const auto deposit_enabled = m_params.template get<bool>(
99-
"algorithms.toggles.deposit");
99+
"algorithms.deposit.enable");
100100
const auto clear_interval = m_params.template get<std::size_t>(
101101
"particles.clear_interval");
102102

0 commit comments

Comments
 (0)