Skip to content

Commit aa815a6

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent b1c6db2 commit aa815a6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

Examples/Tests/point_of_contact_EB/analysis.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
<<<<<<< HEAD
2-
import numpy as np
32
import math
3+
4+
import numpy as np
5+
46
=======
57
>>>>>>> ef1e962595decf0b2be4c24004b44886094e2cc5
68
import matplotlib.pyplot as plt

Source/EmbeddedBoundary/ParticleScraper.H

+3-3
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ scrapeParticles (PC& pc, const amrex::Vector<const amrex::MultiFab*>& distance_t
169169
for(WarpXParIter pti(pc, lev); pti.isValid(); ++pti)
170170
{
171171
const auto getPosition = GetParticlePosition<PIdx>(pti);
172-
auto setPosition = SetParticlePosition<PIdx>(pti);
172+
auto setPosition = SetParticlePosition<PIdx>(pti);
173173
auto& tile = pti.GetParticleTile();
174174
auto ptd = tile.getParticleTileData();
175175
const auto np = tile.numParticles();
@@ -211,7 +211,7 @@ scrapeParticles (PC& pc, const amrex::Vector<const amrex::MultiFab*>& distance_t
211211
} );
212212

213213
amrex::RealVect normal = DistanceToEB::interp_normal(i, j, k, W, phi, dxi);
214-
214+
215215
// the closest point on the surface to pos is pos - grad phi(pos) * phi(pos)
216216
amrex::RealVect pos;
217217
#if (defined WARPX_DIM_3D)
@@ -233,7 +233,7 @@ scrapeParticles (PC& pc, const amrex::Vector<const amrex::MultiFab*>& distance_t
233233
pos[0] = z_temp;
234234
#endif
235235
DistanceToEB::normalize(normal);
236-
236+
237237
f(ptd, ip, pos, normal, engine);
238238
setPosition( ip, x_temp, y_temp, z_temp );
239239
}

0 commit comments

Comments
 (0)