Skip to content

Commit

Permalink
added FillBoundary to fluid container Ue calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoacc95 committed Dec 14, 2024
1 parent daba314 commit 1f06f10
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Source/Fluids/QdsmcParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -479,8 +479,5 @@ QdsmcParticleContainer::DepositK(int lev, amrex::MultiFab &Kfield)
Kfield, 0, Kfield.nComp(), Kfield.nGrowVect(), Kfield.nGrowVect(),
WarpX::do_single_precision_comms, period);

// Add fill boundary ?
//Kfield.FillBoundary(Kfield.nGrowVect(), period);

//amrex::Gpu::streamSynchronize();
}
8 changes: 8 additions & 0 deletions Source/Fluids/WarpXFluidContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,10 @@ void WarpXFluidContainer::HybridInitializeUe (
HybridPICModel const* hybrid_model,
int lev)
{
WarpX &warpx = WarpX::GetInstance();
const amrex::Geometry &geom = warpx.Geom(lev);
const amrex::Periodicity &period = geom.periodicity();

using ablastr::fields::Direction;
using warpx::fields::FieldType;

Expand Down Expand Up @@ -1493,6 +1497,10 @@ void WarpXFluidContainer::HybridInitializeUe (

});
}

m_fields.get(name_mf_NU, Direction{0}, lev)->FillBoundary(m_fields.get(name_mf_NU, Direction{0}, lev)->nGrowVect(), period);
m_fields.get(name_mf_NU, Direction{1}, lev)->FillBoundary(m_fields.get(name_mf_NU, Direction{1}, lev)->nGrowVect(), period);
m_fields.get(name_mf_NU, Direction{2}, lev)->FillBoundary(m_fields.get(name_mf_NU, Direction{2}, lev)->nGrowVect(), period);
}


Expand Down

0 comments on commit 1f06f10

Please sign in to comment.