diff --git a/src/sources/scalar_potential_source.cpp b/src/sources/scalar_potential_source.cpp index c3aabaae0..7bb61eb9b 100644 --- a/src/sources/scalar_potential_source.cpp +++ b/src/sources/scalar_potential_source.cpp @@ -117,11 +117,8 @@ ScalarPotentialSource::Apply(mfem::ParLinearForm * lf) _a0->FormLinearSystem( poisson_ess_tdof_list, phi_gf, *_b0, *_diffusion_mat, *_p_tdofs, *_b0_tdofs); - if (_a0_solver == nullptr) - { - _a0_solver = std::make_unique(_solver_options, *_diffusion_mat); - } // Solve + _a0_solver = std::make_unique(_solver_options, *_diffusion_mat); _a0_solver->Mult(*_b0_tdofs, *_p_tdofs); // "undo" the static condensation saving result in grid function dP