-
Notifications
You must be signed in to change notification settings - Fork 10
Make iau runtime #972
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
Make iau runtime #972
Changes from 17 commits
4a09efa
ac7e775
133ed2d
9b5c3f2
1d1a929
f5b8769
be7be0a
04e3ee3
c4408c6
cf0c69c
8461420
153d30d
33c3e15
057aa28
20f3dc1
04e6fbd
9c9f8fe
6a6a218
22ce86f
904d808
ad21c77
7d8eafe
dc47ca8
66ad584
a44a98b
32b4c04
e19179e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,6 +51,7 @@ class GridConfig: | |
| # TODO(halungge): Decouple the vertical from horizontal grid. | ||
| vertical_size: int | ||
| limited_area: bool = True | ||
| iau_init: bool = False | ||
|
||
| distributed: bool = False | ||
| n_shift_total: int = 0 | ||
| length_rescale_factor: float = 1.0 | ||
|
|
@@ -152,6 +153,10 @@ def num_levels(self) -> int: | |
| def limited_area(self) -> bool: | ||
| return self.config.limited_area | ||
|
|
||
| @property | ||
| def iau_init(self) -> bool: | ||
| return self.config.iau_init | ||
|
|
||
| def get_connectivity(self, offset: str | gtx.FieldOffset) -> gtx_common.NeighborTable: | ||
| """Get the connectivity by its name.""" | ||
| if isinstance(offset, gtx.FieldOffset): | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -271,6 +271,8 @@ def _do_dyn_substepping( | |
| lprep_adv=do_prep_adv, | ||
| at_first_substep=self._is_first_substep(dyn_substep), | ||
| at_last_substep=self._is_last_substep(dyn_substep), | ||
| is_iau_active=False, | ||
| iau_wgt_dyn=0.0, | ||
|
||
| ) | ||
| timer_solve_nh.capture() | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just to let @jcanton know that this can be known from
init_modeininiticon_nmlin this PR#1091 when you clean up the fixture
However,
init_modeismode_iau, we have to read from serialized data.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added
is_iau_activeandiau_wgt_dynto the list of fixtures.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You now can use the fixture as you did in
test_solve_nonhydro.py