-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestions: temporary arrays in dd #109
Comments
Maybe this could be automated if we already track any dd quantity that's a dimension? We would need to be careful of multithreading of course |
@bclyons12 can you please take a look at the
|
Not quite what I had in mind. My idea is the preallocate the temporary arrays once the size of the dimensions are known. You would need a separate one for each dimension. Perhaps we could use the |
Ok, I think I get it. Essentially in your example you'd like to do
|
Often times in FUSE and such we need to create intermediary arrays, e.g.
https://github.com/ProjectTorreyPines/FUSE.jl/blob/d7b49e00f733b363c33f1287a680666001727842/src/actors/build/oh_magnet.jl#L80
What if we imbedded some temporary arrays within the dd, e.g., inside
core_profiles.profiles_1d[]
and the like? Then we could do these calculations without allocations.The text was updated successfully, but these errors were encountered: