forked from ECP-WarpX/WarpX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generalization of WarpXSolverVec class used by implicit solvers (ECP-…
…WarpX#5171) * added warpx::fields::FieldType member to WarpXSolverVec. * AMREX_ALWAYS ==> WARPX_ALWAYS * Changed how WarpXSolverVec is defined. Explicit call to SetDotMask() is no longer required. * refactoring. * refactoring comments and how to Copy WarpXSolverVec. * small comment fix. * dotMask now owned by WarpX. Defined only when needed. * clang tidy. * adding Afield_dotMask. * adding None as enum FieldType * WarpXSolverVec can now be used with scalar field quantities. * putting check for dotMask define inside SetDotMask(). * dont use namespace in header file. * name change: field ==> array * updating comments. * updating comment. * removed function. * braces * added isFieldArray() fun to warpx::fields::namespace. * simplify logic for boolean return * adding assert. * adding assertSameType() function. * adding assertIsDefined() function. * both array_vec and scalar_vec types cant be FieldType::None * restoring comment change in implicit solvers. moved to separate PR. * additional revert to comments. * one more revert to comments. * fixing merge issue. * reposition header file. * adding ArrayFieldTypes[] to Fields.H * using std::any_of() * attempt to please clang tidy. * Doxygen: Location of Fwd Declaration Fix location of `WarpX`forward declaration. --------- Co-authored-by: Axel Huebl <[email protected]>
- Loading branch information
1 parent
08da23e
commit cc6e7ea
Showing
8 changed files
with
367 additions
and
130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.