diff options
author | 2021-07-07 06:02:27 +0200 | |
---|---|---|
committer | 2021-07-06 21:02:27 -0700 | |
commit | 36ac45fd7dff97206c75860f113b4838314429f7 (patch) | |
tree | 7048c1e7155d61925cde404cba5eaaa2204b38f5 /Source/Particles/PhysicalParticleContainer.cpp | |
parent | 23587b02ba81edd0c488af62238ce43cf0d841c8 (diff) | |
download | WarpX-36ac45fd7dff97206c75860f113b4838314429f7.tar.gz WarpX-36ac45fd7dff97206c75860f113b4838314429f7.tar.zst WarpX-36ac45fd7dff97206c75860f113b4838314429f7.zip |
Add possibility to start and stop moving window (#2027)
* Add possibility to start and stop moving window
* Update Benchmark laserInjection_2d
* Update Source/Diagnostics/BTDiagnostics.cpp
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
* modification of the MoveWindow function in the python interface
* False to True for move j in python function
Co-authored-by: Axel Huebl <axel.huebl@plasma.ninja>
Diffstat (limited to 'Source/Particles/PhysicalParticleContainer.cpp')
-rw-r--r-- | Source/Particles/PhysicalParticleContainer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index c4d6a2d7b..3f1c37dc6 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -647,7 +647,7 @@ PhysicalParticleContainer::AddPlasma (int lev, RealBox part_realbox) static int rrfac = 1; // This does not work if the mesh is dynamic. But in that case, we should // not use refined injected either. We also assume there is only one fine level. - if (WarpX::do_moving_window and WarpX::refine_plasma + if (WarpX::moving_window_active(WarpX::GetInstance().getistep(0)+1) and WarpX::refine_plasma and do_continuous_injection and nlevs == 2) { refine_injection = true; |