Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jngrad committed May 9, 2023
1 parent ed97498 commit e567981
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 19 deletions.
26 changes: 12 additions & 14 deletions src/script_interface/walberla/EKFFT.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,18 @@ class EKFFT : public EKPoissonSolver {
m_single_precision);

add_parameters({
{"permittivity",
[this](Variant const &v) {
m_instance->set_permittivity(get_value<double>(v) *
m_conv_permittivity);
},
[this]() {
return m_instance->get_permittivity() /
m_conv_permittivity;
}},
{"single_precision", AutoParameter::read_only,
[this]() { return m_single_precision; }},
{"lattice", AutoParameter::read_only,
[this]() { return m_lattice; }},
});
{"permittivity",
[this](Variant const &v) {
m_instance->set_permittivity(get_value<double>(v) *
m_conv_permittivity);
},
[this]() {
return m_instance->get_permittivity() / m_conv_permittivity;
}},
{"single_precision", AutoParameter::read_only,
[this]() { return m_single_precision; }},
{"lattice", AutoParameter::read_only, [this]() { return m_lattice; }},
});
}

[[nodiscard]] std::shared_ptr<::walberla::PoissonSolver>
Expand Down
8 changes: 3 additions & 5 deletions src/script_interface/walberla/EKNone.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,15 @@ class EKNone : public EKPoissonSolver {

add_parameters({
{"single_precision", AutoParameter::read_only,
[this]() { return m_single_precision; }},
{"lattice", AutoParameter::read_only,
[this]() { return m_lattice; }},
});
[this]() { return m_single_precision; }},
{"lattice", AutoParameter::read_only, [this]() { return m_lattice; }},
});
}

[[nodiscard]] std::shared_ptr<::walberla::PoissonSolver>
get_instance() const noexcept override {
return m_instance;
}

};

} // namespace ScriptInterface::walberla
Expand Down

0 comments on commit e567981

Please sign in to comment.