Skip to content
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

Check if "ClimaCore version" is already attribute #1464

Merged
merged 1 commit into from
Oct 5, 2023
Merged

Conversation

Sbozzolo
Copy link
Member

HDF5.jl complains if you try writing an attribute that already exists, so that appending to ClimaCore-generated files can be a problem

@Sbozzolo
Copy link
Member Author

Maybe in the future we should consider checking if the version of ClimaCore is the same and allow appending only if it is.

HDF5.jl complains if you try writing an attribute that already exists
@simonbyrne
Copy link
Member

bors r+

bors bot added a commit that referenced this pull request Sep 21, 2023
1464: Check if "ClimaCore version" is already attribute r=simonbyrne a=Sbozzolo

HDF5.jl complains if you try writing an attribute that already exists, so that appending to `ClimaCore`-generated files can be a problem 



Co-authored-by: Gabriele Bozzola <[email protected]>
@bors
Copy link
Contributor

bors bot commented Sep 21, 2023

Build failed:

@Sbozzolo
Copy link
Member Author

I cannot see how this change led to the failing test.

@simonbyrne
Copy link
Member

bors r+

bors bot added a commit that referenced this pull request Oct 4, 2023
1464: Check if "ClimaCore version" is already attribute r=simonbyrne a=Sbozzolo

HDF5.jl complains if you try writing an attribute that already exists, so that appending to `ClimaCore`-generated files can be a problem 



1475: Add distributed_remapping.jl r=simonbyrne a=Sbozzolo

This pull request introduces a new way to interpolate a field onto a given set of points that works for distributed simulations.

This change introduces a new object, a `Remapper`. `Remapper`s are process-local and are defined starting from the target points where we want to interpolate and the `Space`. `Remapper`s contain all the information necessary to perform interpolations of all the fields that are defined on the same `Space`. 

Once a `Remapper` is defined, it can be used as many times as needed. To use a `Remapper`, just call the new `interpolate` function with the field you want to remap:
```julia
remapper = Remapper(hcoords, zcoords, space)
interpolate(remapper, field) 
# => Array of values interpolated on hcoords × zcoords
```
Internally, `interpolate` computes the process-local points and then calls a `MPI.reduce` to return the final value in the root process.

Co-authored-by: Gabriele Bozzola <[email protected]>
@bors
Copy link
Contributor

bors bot commented Oct 5, 2023

This PR was included in a batch that timed out, it will be automatically retried

@bors
Copy link
Contributor

bors bot commented Oct 5, 2023

Build succeeded!

The publicly hosted instance of bors-ng is deprecated and will go away soon.

If you want to self-host your own instance, instructions are here.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot merged commit 2706600 into main Oct 5, 2023
6 checks passed
@bors bors bot deleted the gb/fix_attribute branch October 5, 2023 04:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants