diff options
author | 2020-04-24 16:22:22 -0700 | |
---|---|---|
committer | 2020-04-24 16:22:22 -0700 | |
commit | 3ef8e08c65dfd04bc98c8b9238b9f230d4c10cde (patch) | |
tree | bdfd3cd1a3b2848008296188abfd8460cb960633 /Source/Parallelization | |
parent | 86731f0018cf2461e93b95ab855a119d1458e034 (diff) | |
download | WarpX-3ef8e08c65dfd04bc98c8b9238b9f230d4c10cde.tar.gz WarpX-3ef8e08c65dfd04bc98c8b9238b9f230d4c10cde.tar.zst WarpX-3ef8e08c65dfd04bc98c8b9238b9f230d4c10cde.zip |
Re-initialize diag functors after LoadBalance (#943)
* fixing bug to initialize CellCenterFunctor for Bx
* new function to initialize diag functors called from regrid
* add comments and clean
* more cleaning
* use of unique_ptrs to prevent memory leak
* fixing eol
* Apply suggestions from code review
Co-Authored-By: MaxThevenet <mthevenet@lbl.gov>
* rho_new in PSATD defined using unique_ptr
* initialize field functor per level
* adding a comment for input lev
* more comments
* clearning
* comments
* space in function when called
* fix eol
Co-authored-by: MaxThevenet <mthevenet@lbl.gov>
Diffstat (limited to 'Source/Parallelization')
-rw-r--r-- | Source/Parallelization/WarpXRegrid.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Parallelization/WarpXRegrid.cpp b/Source/Parallelization/WarpXRegrid.cpp index bb5e5d9d8..ac8c81934 100644 --- a/Source/Parallelization/WarpXRegrid.cpp +++ b/Source/Parallelization/WarpXRegrid.cpp @@ -268,6 +268,8 @@ WarpX::RemakeLevel (int lev, Real /*time*/, const BoxArray& ba, const Distributi { amrex::Abort("RemakeLevel: to be implemented"); } + // Re-initialize diagnostic functors that stores pointers to the user-requested fields at level, lev. + multi_diags->InitializeFieldFunctors( lev ); } void |