Skip to content

Commit

Permalink
adding a variable const amrex::dt for the ScraperParticle function
Browse files Browse the repository at this point in the history
  • Loading branch information
EyaDammak committed Nov 15, 2023
1 parent fafef7b commit 46afde2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Examples/Tests/spacecraft_charging/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ def func(x, v0, tau):
print("pourcentage error for v0 = "+ str(diff_v0 *100) + '%')
print("pourcentage error for tau = "+ str(diff_tau*100) + '%')

f = open('results.txt', 'a')
f.write( str(popt[0]) +' ' + str(popt[1] + '\n')
f.close()
assert (diff_v0 < tolerance_v0) and (diff_tau < tolerance_tau), 'Test spacecraft_charging did not pass'


Expand Down
2 changes: 1 addition & 1 deletion Source/Evolve/WarpXEvolve.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ WarpX::Evolve (int numsteps)

// interact the particles with EB walls (if present)
#ifdef AMREX_USE_EB
mypc->ScrapeParticles(amrex::GetVecOfConstPtrs(m_distance_to_eb));
mypc->ScrapeParticles(amrex::GetVecOfConstPtrs(m_distance_to_eb), dt[0]);
#endif

m_particle_boundary_buffer->gatherParticles(*mypc, amrex::GetVecOfConstPtrs(m_distance_to_eb));
Expand Down

0 comments on commit 46afde2

Please sign in to comment.