Skip to content

Commit

Permalink
eliminate WarpX::GetInstance from WarpX::ReadExternalFieldFromFile
Browse files Browse the repository at this point in the history
  • Loading branch information
lucafedeli88 committed Mar 10, 2025
1 parent acb7289 commit da4a319
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/Initialization/WarpXInitData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1555,8 +1555,7 @@ WarpX::ReadExternalFieldFromFile (
const std::string& F_name, const std::string& F_component)
{
// Get WarpX domain info
auto& warpx = WarpX::GetInstance();
amrex::Geometry const& geom0 = warpx.Geom(0);
amrex::Geometry const& geom0 = Geom(0);
const amrex::RealBox& real_box = geom0.ProbDomain();
const auto dx = geom0.CellSizeArray();
const amrex::IntVect nodal_flag = mf->ixType().toIntVect();
Expand Down

0 comments on commit da4a319

Please sign in to comment.