Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FabArray::isDefined
(AMReX-Codes#2997)
## Summary Add a new query to `define_function_called`. ## Additional background This is a cheaper check than `ok()` for finding out if a MultiFab has been allocated or not yet, assuming that the calling code follows the convention that `define()` is called collectively. Update: It turns out you can also call `empty` inherited from `FabArrayBase`. The new API is quite explicit, which is ok, too. Co-authored-by: Weiqun Zhang <[email protected]>
- Loading branch information