diff options
author | 2019-05-24 07:36:21 -0700 | |
---|---|---|
committer | 2019-05-24 07:36:21 -0700 | |
commit | 329d340881a5c1fd6cb70369ae517ee42d79ca33 (patch) | |
tree | 9e46428724b176756252f91ff3da63a579f0770d /Source/Utils/WarpXMovingWindow.cpp | |
parent | 62b03c30d50899f3c7c334f06c7cee7ad8c55543 (diff) | |
parent | fe37f932e428846473d75d1cad5962546f3fecac (diff) | |
download | WarpX-329d340881a5c1fd6cb70369ae517ee42d79ca33.tar.gz WarpX-329d340881a5c1fd6cb70369ae517ee42d79ca33.tar.zst WarpX-329d340881a5c1fd6cb70369ae517ee42d79ca33.zip |
Merge pull request #161 from ECP-WarpX/compiler_warnings
Fix a bunch of unused variable / parameter shadowing warnings
Diffstat (limited to 'Source/Utils/WarpXMovingWindow.cpp')
-rw-r--r-- | Source/Utils/WarpXMovingWindow.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Utils/WarpXMovingWindow.cpp b/Source/Utils/WarpXMovingWindow.cpp index 5f9e36bf6..a0ab1f26f 100644 --- a/Source/Utils/WarpXMovingWindow.cpp +++ b/Source/Utils/WarpXMovingWindow.cpp @@ -5,7 +5,7 @@ using namespace amrex; void -WarpX::UpdatePlasmaInjectionPosition (Real dt) +WarpX::UpdatePlasmaInjectionPosition (Real a_dt) { int dir = moving_window_dir; // Continuously inject plasma in new cells (by default only on level 0) @@ -14,12 +14,12 @@ WarpX::UpdatePlasmaInjectionPosition (Real dt) // call to this function, and injection position needs to be updated current_injection_position -= WarpX::beta_boost * #if ( AMREX_SPACEDIM == 3 ) - WarpX::boost_direction[dir] * PhysConst::c * dt; + WarpX::boost_direction[dir] * PhysConst::c * a_dt; #elif ( AMREX_SPACEDIM == 2 ) // In 2D, dir=0 corresponds to x and dir=1 corresponds to z // This needs to be converted in order to index `boost_direction` // which has 3 components, for both 2D and 3D simulations. - WarpX::boost_direction[2*dir] * PhysConst::c * dt; + WarpX::boost_direction[2*dir] * PhysConst::c * a_dt; #endif } } |