Skip to content

Commit

Permalink
level coef in right order
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasaunai committed Oct 4, 2024
1 parent 08ce776 commit b7b6db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/numerics/ohm/ohm.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ class Ohm : public LayoutHolder<GridLayout>
auto spatial_hyperresistive_(VecField const& J, VecField const& B, Field const& n,
MeshIndex<VecField::dimension> index) const
{ // TODO : https://github.com/PHAREHUB/PHARE/issues/3
auto const lvlCoeff = std::pow(4, layout_->levelNumber());
auto const lvlCoeff = 1. / std::pow(4, layout_->levelNumber());

auto computeHR = [&](auto BxProj, auto ByProj, auto BzProj, auto nProj) {
auto const BxOnE = GridLayout::project(B(Component::X), index, BxProj);
Expand Down

0 comments on commit b7b6db9

Please sign in to comment.