Skip to content

Commit

Permalink
Pointer type passed into the magnetostatic solver for current is no l…
Browse files Browse the repository at this point in the history
…onger smart, so removed the call to get() to return the raw pointer.

Signed-off-by: S. Eric Clark <[email protected]>
  • Loading branch information
clarkse committed Sep 25, 2024
1 parent c0bb670 commit aa156bd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Source/FieldSolver/MagnetostaticSolver/MagnetostaticSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,12 @@ WarpX::computeVectorPotential (ablastr::fields::MultiLevelVectorField const& cur
amrex::Vector<amrex::Array<amrex::MultiFab*,3>> sorted_curr;
amrex::Vector<amrex::Array<amrex::MultiFab*,3>> sorted_A;
for (int lev = 0; lev <= finest_level; ++lev) {
sorted_curr.emplace_back(amrex::Array<amrex::MultiFab*,3> ({curr[lev][0].get(),
curr[lev][1].get(),
curr[lev][2].get()}));
sorted_A.emplace_back(amrex::Array<amrex::MultiFab*,3> ({A[lev][0].get(),
A[lev][1].get(),
A[lev][2].get()}));
sorted_curr.emplace_back(amrex::Array<amrex::MultiFab*,3> ({curr[lev][0],
curr[lev][1],
curr[lev][2]}));
sorted_A.emplace_back(amrex::Array<amrex::MultiFab*,3> ({A[lev][0],
A[lev][1],
A[lev][2]}));
}

const ablastr::fields::MultiLevelVectorField Bfield_fp = m_fields.get_mr_levels_alldirs(FieldType::Bfield_fp, finest_level);
Expand Down

0 comments on commit aa156bd

Please sign in to comment.