diff options
author | 2017-11-13 13:37:10 -0800 | |
---|---|---|
committer | 2017-11-13 13:37:10 -0800 | |
commit | f94c413bbb3dc6b273a23021f606064adf45ca6b (patch) | |
tree | e6483917ceaf7cfe7cb5bebad2d06436d64bf973 /Source/WarpX.cpp | |
parent | a4be47f8162c1f65bfcebf2b24b8d06d7a47f0a7 (diff) | |
parent | 12efa8768027daab7a97cbdc77bd470022f21387 (diff) | |
download | WarpX-f94c413bbb3dc6b273a23021f606064adf45ca6b.tar.gz WarpX-f94c413bbb3dc6b273a23021f606064adf45ca6b.tar.zst WarpX-f94c413bbb3dc6b273a23021f606064adf45ca6b.zip |
merging.
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r-- | Source/WarpX.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index e6c72e9d8..4ea87d6e5 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -26,7 +26,7 @@ Vector<Real> WarpX::B_external(3, 0.0); Real WarpX::gamma_boost = 1.; Real WarpX::beta_boost = 0.; -Vector<Real> WarpX::boost_direction(3, 0.0); +Vector<Real> WarpX::boost_direction = {0,0,1}; long WarpX::current_deposition_algo = 3; long WarpX::charge_deposition_algo = 0; @@ -180,9 +180,9 @@ WarpX::ReadParameters () // Boosted-frame parameters pp.query("gamma_boost", gamma_boost); beta_boost = std::sqrt(1.-1./pow(gamma_boost,2)); - pp.queryarr("boost_direction", boost_direction); if( gamma_boost > 1. ){ // Read and normalize the boost direction + pp.queryarr("boost_direction", boost_direction); Real s = 1.0/std::sqrt(boost_direction[0]*boost_direction[0] + boost_direction[1]*boost_direction[1] + boost_direction[2]*boost_direction[2]); |