diff options
author | 2022-01-13 20:05:19 +0100 | |
---|---|---|
committer | 2022-01-13 11:05:19 -0800 | |
commit | ca67ae0700d1f56e7921da9283d42184149cb15b (patch) | |
tree | 6ee96802136c95bf7fbbbebbf19a871516ea697a /Source/Initialization | |
parent | 726a9d85b951cf26f936ef0dd600a342657f4106 (diff) | |
download | WarpX-ca67ae0700d1f56e7921da9283d42184149cb15b.tar.gz WarpX-ca67ae0700d1f56e7921da9283d42184149cb15b.tar.zst WarpX-ca67ae0700d1f56e7921da9283d42184149cb15b.zip |
Fixing staircased EM solver (#2739)
* Fixing the staircase consistency
* Removed the face_areas multifabs everywhere they're not needed
* Bug fix
* More fixes
* Another fix
* Another fix
* Initialize areas anyways for the initialization
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
Co-authored-by: lgiacome <lorenzo.giacome@cern.ch>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Diffstat (limited to 'Source/Initialization')
-rw-r--r-- | Source/Initialization/WarpXInitData.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Initialization/WarpXInitData.cpp b/Source/Initialization/WarpXInitData.cpp index be810d21e..95efa48aa 100644 --- a/Source/Initialization/WarpXInitData.cpp +++ b/Source/Initialization/WarpXInitData.cpp @@ -888,8 +888,8 @@ void WarpX::InitializeEBGridData (int lev) auto const eb_fact = fieldEBFactory(lev); ComputeEdgeLengths(m_edge_lengths[lev], eb_fact); - ComputeFaceAreas(m_face_areas[lev], eb_fact); ScaleEdges(m_edge_lengths[lev], CellSize(lev)); + ComputeFaceAreas(m_face_areas[lev], eb_fact); ScaleAreas(m_face_areas[lev], CellSize(lev)); if (WarpX::maxwell_solver_id == MaxwellSolverAlgo::ECT) { |