Skip to content

Commit

Permalink
fixed Ue sign in HybridInitializeUe
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoacc95 committed Nov 26, 2024
1 parent 3afa998 commit 4191b7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Source/Fluids/WarpXFluidContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1464,9 +1464,9 @@ void WarpXFluidContainer::HybridInitializeUe (ablastr::fields::MultiFabRegister&
auto const jiy_interp = ablastr::coarsen::sample::Interp(Jiy, Jy_stag, nodal, coarsen, i, j, k, 0);
auto const jiz_interp = ablastr::coarsen::sample::Interp(Jiz, Jz_stag, nodal, coarsen, i, j, k, 0);

Uex(i, j, k) = (jx_interp - jix_interp)/rho(i, j, k);
Uey(i, j, k) = (jy_interp - jiy_interp)/rho(i, j, k);
Uez(i, j, k) = (jz_interp - jiz_interp)/rho(i, j, k);
Uex(i, j, k) = -(jx_interp - jix_interp)/rho(i, j, k);
Uey(i, j, k) = -(jy_interp - jiy_interp)/rho(i, j, k);
Uez(i, j, k) = -(jz_interp - jiz_interp)/rho(i, j, k);
}

});
Expand Down

0 comments on commit 4191b7d

Please sign in to comment.