diff options
author | 2018-08-09 18:24:51 -0700 | |
---|---|---|
committer | 2018-08-09 18:24:51 -0700 | |
commit | 7db19f64211297aac0bba32f12839265e7463e53 (patch) | |
tree | 3d18619a640cc8a0ebd1cdb41b181349e3408a40 /Source/WarpXUtil.cpp | |
parent | 92ad7c03ea28302b5b306f43a6da49915db7d1d8 (diff) | |
download | WarpX-7db19f64211297aac0bba32f12839265e7463e53.tar.gz WarpX-7db19f64211297aac0bba32f12839265e7463e53.tar.zst WarpX-7db19f64211297aac0bba32f12839265e7463e53.zip |
indentation
Diffstat (limited to 'Source/WarpXUtil.cpp')
-rw-r--r-- | Source/WarpXUtil.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Source/WarpXUtil.cpp b/Source/WarpXUtil.cpp index b719d7f64..4edd41838 100644 --- a/Source/WarpXUtil.cpp +++ b/Source/WarpXUtil.cpp @@ -64,15 +64,14 @@ void ConvertLabParamsToBoost() for (int idim = 0; idim < AMREX_SPACEDIM; ++idim) { if (boost_direction[dim_map[idim]]) { - amrex::Real convert_factor; - // Assume that the window travels with speed +c - convert_factor = 1./( gamma_boost * ( 1 - beta_boost ) ); - prob_lo[idim] *= convert_factor; - prob_hi[idim] *= convert_factor; - break; + amrex::Real convert_factor; + // Assume that the window travels with speed +c + convert_factor = 1./( gamma_boost * ( 1 - beta_boost ) ); + prob_lo[idim] *= convert_factor; + prob_hi[idim] *= convert_factor; + break; } - } - + } pp.addarr("prob_lo", prob_lo); pp.addarr("prob_hi", prob_hi); } |