Skip to content

Commit

Permalink
multiply grad(phi) = E fluxes by -1 for the gmres case
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnonaka committed Dec 17, 2024
1 parent 98584df commit cc9d724
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/ablastr/fields/PoissonSolver.H
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,9 @@ computePhi (
#endif
);
linop->compGrad(0, e_field[0], *phi[0], amrex::MLLinOp::Location::CellCenter);
for(int dir=0; dir<AMREX_SPACEDIM; ++dir) {
e_field[0][dir]->mult(-1.);
}
}

rho[lev]->mult(-ablastr::constant::SI::ep0); // Multiply rho by epsilon again
Expand Down

0 comments on commit cc9d724

Please sign in to comment.