aboutsummaryrefslogtreecommitdiff
path: root/Source/WarpX.cpp
diff options
context:
space:
mode:
authorGravatar Andrew Myers <atmyers2@gmail.com> 2017-11-13 13:37:10 -0800
committerGravatar Andrew Myers <atmyers2@gmail.com> 2017-11-13 13:37:10 -0800
commitf94c413bbb3dc6b273a23021f606064adf45ca6b (patch)
treee6483917ceaf7cfe7cb5bebad2d06436d64bf973 /Source/WarpX.cpp
parenta4be47f8162c1f65bfcebf2b24b8d06d7a47f0a7 (diff)
parent12efa8768027daab7a97cbdc77bd470022f21387 (diff)
downloadWarpX-f94c413bbb3dc6b273a23021f606064adf45ca6b.tar.gz
WarpX-f94c413bbb3dc6b273a23021f606064adf45ca6b.tar.zst
WarpX-f94c413bbb3dc6b273a23021f606064adf45ca6b.zip
merging.
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r--Source/WarpX.cpp4
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]);