-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add GetPackDimension to StateDescriptor Sometimes when initializing a package, you want to know how many variables another package has declared (e.g., a `Flux` package might need the total number of `WithFluxes` variables declared so far). The `Mesh` doesn't exist yet, so you have to ask the other packages directly what they've declared. Thus, `GetPackDimension`. * Changelog * Fix GitPackDim for tensors and add unit test * GetPackDim: Shorter general implementation from Jonah --------- Co-authored-by: Jonah Miller <[email protected]>
- Loading branch information
Showing
4 changed files
with
59 additions
and
0 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