Skip to content

Commit

Permalink
remove implementation for smoothening
Browse files Browse the repository at this point in the history
  • Loading branch information
RevathiJambunathan committed May 24, 2024
1 parent 0f33db5 commit 1ba9dc1
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions Source/Particles/PhysicalParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2091,7 +2091,6 @@ PhysicalParticleContainer::Evolve (int lev,
FArrayBox const* bzfab = &Bz[pti];

Elixir exeli, eyeli, ezeli, bxeli, byeli, bzeli;
Elixir buf_exeli, buf_eyeli, buf_ezeli, buf_bxeli, buf_byeli, buf_bzeli;

if (WarpX::use_fdtd_nci_corr)
{
Expand Down Expand Up @@ -2176,16 +2175,6 @@ PhysicalParticleContainer::Evolve (int lev,
FArrayBox const* cbyfab = &(*cBy)[pti];
FArrayBox const* cbzfab = &(*cBz)[pti];

//// buffer box (Both 2D and 3D)
InterpolateFieldsInGatherBuffer(box, bufferEx, bufferEy, bufferEz,
bufferBx, bufferBy, bufferBz,
buf_exeli, buf_eyeli, buf_ezeli,
buf_bxeli, buf_byeli, buf_bzeli,
exfab, eyfab, ezfab, bxfab, byfab, bzfab,
cexfab, ceyfab, cezfab, cbxfab, cbyfab, cbzfab,
(*gather_masks)[pti], (*weight_gbuffer)[pti],
ref_ratio);

if (WarpX::use_fdtd_nci_corr)
{
// should this be bufferEFields*
Expand All @@ -2203,14 +2192,11 @@ PhysicalParticleContainer::Evolve (int lev,
// Field gather and push for particles in gather buffers
e_is_nodal = cEx->is_nodal() and cEy->is_nodal() and cEz->is_nodal();
if (push_type == PushType::Explicit) {
//PushPX(pti, cexfab, ceyfab, cezfab,
// cbxfab, cbyfab, cbzfab,
PushPX(pti, &bufferEx, &bufferEy, &bufferEz,
&bufferBx, &bufferBy, &bufferBz,
PushPX(pti, cexfab, ceyfab, cezfab,
cbxfab, cbyfab, cbzfab,
cEx->nGrowVect(), e_is_nodal,
nfine_gather, np-nfine_gather,
lev, gather_lev, dt, ScaleFields(false), a_dt_type);
//lev, lev-1, dt, ScaleFields(false), a_dt_type);
lev, lev-1, dt, ScaleFields(false), a_dt_type);
} else if (push_type == PushType::Implicit) {
ImplicitPushXP(pti, cexfab, ceyfab, cezfab,
cbxfab, cbyfab, cbzfab,
Expand Down

0 comments on commit 1ba9dc1

Please sign in to comment.