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

CompatHelper: bump compat for Thermodynamics to 0.11, (keep existing compat) #312

Conversation

github-actions[bot]
Copy link
Contributor

This pull request changes the compat entry for the Thermodynamics package from 0.9, 0.10 to 0.9, 0.10, 0.11.
This keeps the compat entries for earlier versions.

Note: I have not tested your package with this new compat entry.
It is your responsibility to make sure that your package tests pass before you merge this pull request.

@kmdeck kmdeck mentioned this pull request Sep 1, 2023
bors bot added a commit that referenced this pull request Sep 7, 2023
314: Remove overloaded getindex r=kmdeck a=charleskawczynski

This PR removes the overloading of `getindex` on ClimaCore fields.

also closes #317 #312 

We access the individual fields within the Field of Tuples using the following rules:
Previously, regardless of in a loop or not:
```
field[i] .= ....
`@.` field[i] = g(other field)
```
Now: outside of a loop:
```
field.:i .= ...
```
Now: inside of a loop:

```
field.:($i) .=
`@.` field.:($$i) =
```

We also need to sometimes access elements that are compute quantities, for example, before,
```
field[n_stem+n_leaf] .= 
```
Now, we need to do something like:
```
i_end =n_stem+n_leaf # define intermediate quantity
field.:($i_end) .= 
```
regardless of if we are in a loop or not.

Co-authored-by: Charles Kawczynski <kawczynski.charles@gmail.com>
@kmdeck
Copy link
Member

kmdeck commented Sep 7, 2023

closed by #277

@kmdeck kmdeck closed this Sep 7, 2023
mitraA90 pushed a commit that referenced this pull request Dec 22, 2023
314: Remove overloaded getindex r=kmdeck a=charleskawczynski

This PR removes the overloading of `getindex` on ClimaCore fields.

also closes #317 #312 

We access the individual fields within the Field of Tuples using the following rules:
Previously, regardless of in a loop or not:
```
field[i] .= ....
`@.` field[i] = g(other field)
```
Now: outside of a loop:
```
field.:i .= ...
```
Now: inside of a loop:

```
field.:($i) .=
`@.` field.:($$i) =
```

We also need to sometimes access elements that are compute quantities, for example, before,
```
field[n_stem+n_leaf] .= 
```
Now, we need to do something like:
```
i_end =n_stem+n_leaf # define intermediate quantity
field.:($i_end) .= 
```
regardless of if we are in a loop or not.

Co-authored-by: Charles Kawczynski <kawczynski.charles@gmail.com>
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