diff options
author | 2019-01-08 11:24:49 -0800 | |
---|---|---|
committer | 2019-01-08 11:24:49 -0800 | |
commit | 27c37c73dadc41fdf09fabbdf2357523d946687a (patch) | |
tree | d7c08371ea41f5bb765f063e64eaeba8671b0736 /Source/WarpX.cpp | |
parent | 2e39a44a0f18845cffafa976d4ca7daac0aa4551 (diff) | |
download | WarpX-27c37c73dadc41fdf09fabbdf2357523d946687a.tar.gz WarpX-27c37c73dadc41fdf09fabbdf2357523d946687a.tar.zst WarpX-27c37c73dadc41fdf09fabbdf2357523d946687a.zip |
create EB_nd_aux as an alias MultiFab on level 0
Diffstat (limited to 'Source/WarpX.cpp')
-rw-r--r-- | Source/WarpX.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/WarpX.cpp b/Source/WarpX.cpp index f207e5d3c..4fa1ff95e 100644 --- a/Source/WarpX.cpp +++ b/Source/WarpX.cpp @@ -688,7 +688,12 @@ WarpX::AllocLevelMFs (int lev, const BoxArray& ba, const DistributionMapping& dm // // The Aux patch (i.e., the full solution) // - if (lev > 0) + if (lev == 0) + { + EB_nd_aux[lev].reset(new MultiFab(*EB_nd_fp[lev], amrex::make_alias, 0, 6)); + // Efield_aux and Bfield_aux wil be created later + } + else { EB_nd_aux[lev].reset(new MultiFab(nba, dm, 6, ngE)); Efield_aux[lev][0].reset(new MultiFab(*EB_nd_aux[lev], amrex::make_alias, 0, 1)); |