Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions input.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,10 @@
# Stencil coefficients for the field solver [notation as in Blinne+ (2018)]
# @note: Standard Yee solver: `delta_i = beta_ij = 0.0`
[algorithms.fieldsolver]
# Enable the fieldsolver
# @type: bool
# @default: true
enable = ""
# delta_x coefficient (for `F_{i +/- 3/2, j, k}`)
# @type: float
# @default: 0.0
Expand Down
4 changes: 0 additions & 4 deletions pgens/accretion/accretion.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@
CFL = 0.5
correction = 1.0

[algorithms.toggles]
deposit = true
fieldsolver = true

[particles]
ppc0 = 4.0
use_weights = true
Expand Down
5 changes: 2 additions & 3 deletions pgens/wald/wald.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@
[algorithms.timestep]
CFL = 0.5

[algorithms.toggles]
deposit = false
fieldsolver = true
[algorithms.deposit]
enable = false

[particles]
ppc0 = 2.0
Expand Down
4 changes: 2 additions & 2 deletions src/engines/grpic.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ namespace ntt {

void step_forward(timer::Timers& timers, domain_t& dom) override {
const auto fieldsolver_enabled = m_params.template get<bool>(
"algorithms.toggles.fieldsolver");
"algorithms.fieldsolver.enable");
const auto deposit_enabled = m_params.template get<bool>(
"algorithms.toggles.deposit");
"algorithms.deposit.enable");
const auto clear_interval = m_params.template get<std::size_t>(
"particles.clear_interval");

Expand Down