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

Fix differentiability of local element map #909

Merged
merged 1 commit into from
Aug 25, 2022
Merged

Fix differentiability of local element map #909

merged 1 commit into from
Aug 25, 2022

Conversation

simonbyrne
Copy link
Member

I was experimenting with IntrinsicMap and noticed some sign errors in the metric terms due to the non-differentiable extra branches for handling of signed zeros. This is a simpler and better approach.

  • Code follows the style guidelines OR N/A.
  • Unit tests are included OR N/A.
  • Code is exercised in an integration test OR N/A.
  • Documentation has been added/updated OR N/A.

@simonbyrne
Copy link
Member Author

bors r+

bors bot added a commit that referenced this pull request Aug 23, 2022
909: Fix differentiability of local element map r=simonbyrne a=simonbyrne

I was experimenting with `IntrinsicMap` and noticed some sign errors in the metric terms due to the non-differentiable extra branches for handling of signed zeros. This is a simpler and better approach.

- [X] Code follows the [style guidelines](https://clima.github.io/ClimateMachine.jl/latest/DevDocs/CodeStyle/) OR N/A.
- [X] Unit tests are included OR N/A.
- [X] Code is exercised in an integration test OR N/A.
- [X] Documentation has been added/updated OR N/A.


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

bors bot commented Aug 23, 2022

Build failed:

@simonbyrne
Copy link
Member Author

bors r+

bors bot added a commit that referenced this pull request Aug 24, 2022
853: add special cases for projection from Covariant => Contravariant r=charleskawczynski a=simonbyrne



909: Fix differentiability of local element map r=simonbyrne a=simonbyrne

I was experimenting with `IntrinsicMap` and noticed some sign errors in the metric terms due to the non-differentiable extra branches for handling of signed zeros. This is a simpler and better approach.

- [X] Code follows the [style guidelines](https://clima.github.io/ClimateMachine.jl/latest/DevDocs/CodeStyle/) OR N/A.
- [X] Unit tests are included OR N/A.
- [X] Code is exercised in an integration test OR N/A.
- [X] Documentation has been added/updated OR N/A.


910: Fix Zalesak FCT docstring and add it to the Docs r=simonbyrne a=valeriabarra

This PR adds the Zalesak FCT operator to the docs since #887  did not include it. Plus some additional doc fixes and improvements.

- [x] Code follows the [style guidelines](https://clima.github.io/ClimateMachine.jl/latest/DevDocs/CodeStyle/) OR N/A.
- [x] Unit tests are included OR N/A.
- [x] Code is exercised in an integration test OR N/A.
- [x] Documentation has been added/updated OR N/A.


Co-authored-by: Simon Byrne <[email protected]>
Co-authored-by: Charles Kawczynski <[email protected]>
Co-authored-by: Valeria Barra <[email protected]>
@simonbyrne
Copy link
Member Author

bors r-

@bors
Copy link
Contributor

bors bot commented Aug 24, 2022

Canceled.

@simonbyrne
Copy link
Member Author

bors r+

bors bot added a commit that referenced this pull request Aug 25, 2022
853: add special cases for projection from Covariant => Contravariant r=charleskawczynski a=simonbyrne



909: Fix differentiability of local element map r=simonbyrne a=simonbyrne

I was experimenting with `IntrinsicMap` and noticed some sign errors in the metric terms due to the non-differentiable extra branches for handling of signed zeros. This is a simpler and better approach.

- [X] Code follows the [style guidelines](https://clima.github.io/ClimateMachine.jl/latest/DevDocs/CodeStyle/) OR N/A.
- [X] Unit tests are included OR N/A.
- [X] Code is exercised in an integration test OR N/A.
- [X] Documentation has been added/updated OR N/A.


914: Fix test failures on Julia 1.8 r=simonbyrne a=simonbyrne

Builds on #912

- [ ] Code follows the [style guidelines](https://clima.github.io/ClimateMachine.jl/latest/DevDocs/CodeStyle/) OR N/A.
- [ ] Unit tests are included OR N/A.
- [ ] Code is exercised in an integration test OR N/A.
- [ ] Documentation has been added/updated OR N/A.


Co-authored-by: Simon Byrne <[email protected]>
Co-authored-by: Charles Kawczynski <[email protected]>
@bors
Copy link
Contributor

bors bot commented Aug 25, 2022

Build failed (retrying...):

bors bot added a commit that referenced this pull request Aug 25, 2022
909: Fix differentiability of local element map r=simonbyrne a=simonbyrne

I was experimenting with `IntrinsicMap` and noticed some sign errors in the metric terms due to the non-differentiable extra branches for handling of signed zeros. This is a simpler and better approach.

- [X] Code follows the [style guidelines](https://clima.github.io/ClimateMachine.jl/latest/DevDocs/CodeStyle/) OR N/A.
- [X] Unit tests are included OR N/A.
- [X] Code is exercised in an integration test OR N/A.
- [X] Documentation has been added/updated OR N/A.


914: Fix test failures on Julia 1.8 r=simonbyrne a=simonbyrne

Builds on #912

- [ ] Code follows the [style guidelines](https://clima.github.io/ClimateMachine.jl/latest/DevDocs/CodeStyle/) OR N/A.
- [ ] Unit tests are included OR N/A.
- [ ] Code is exercised in an integration test OR N/A.
- [ ] Documentation has been added/updated OR N/A.


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

bors bot commented Aug 25, 2022

Build failed (retrying...):

@bors bors bot merged commit a93b7e9 into main Aug 25, 2022
@bors bors bot deleted the sb/differentiable branch August 25, 2022 05:43
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.

1 participant