-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2115: Avoid FieldVector outer constructor inference r=charleskawczynski a=charleskawczynski I realized that most of the allocations in the callbacks are actually coming from _inference_ in the FieldVector outer constructor: <img width="1896" alt="Screen Shot 2023-09-19 at 11 08 19 AM" src="https://github.com/CliMA/ClimaAtmos.jl/assets/1880641/9600dd17-4862-4730-8180-6e5d19a163d8"> This PR should (hopefully) avoid this, by calling the outer constructor where the undertype is pre-specified. Co-authored-by: Charles Kawczynski <kawczynski.charles@gmail.com>
- Loading branch information
Showing
2 changed files
with
11 additions
and
12 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