Skip to content

Commit 9f52a45

Browse files
authored
Removed const modifier from LPInfo object on stack that was causing a… (#4696)
* Removed const modifier from LPInfo object on stack that was causing a warning from not being initialized properly. * Changing instantiation of LPInfo to make consistent with usage elsewhere in AMReX and avoiding compile time warning. * LPInfo in PoissonSolver can be adjusted for semi-coarsening, so reverting back to non-const.
1 parent 7740464 commit 9f52a45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/ablastr/fields/VectorPoissonSolver.H

+1-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ computeVectorPotential ( amrex::Vector<amrex::Array<amrex::MultiFab*, 3> > co
130130
);
131131
}
132132

133-
const amrex::LPInfo info;
133+
const amrex::LPInfo& info = amrex::LPInfo();
134134

135135
// Loop over dimensions of A to solve each component individually
136136
for (int lev=0; lev<=finest_level; lev++) {

0 commit comments

Comments
 (0)