Skip to content

Commit

Permalink
Oliver E suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Malatino authored and Frank Malatino committed Sep 27, 2023
1 parent 255f1de commit b20e85b
Show file tree
Hide file tree
Showing 8 changed files with 613 additions and 651 deletions.
2 changes: 1 addition & 1 deletion driver/pace/driver/initialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def get_driver_state(
driver_grid_data: pace.util.grid.DriverGridData,
grid_data: pace.util.grid.GridData,
) -> DriverState:
dycore_state = analytic_init.init_analytic_choice(
dycore_state = analytic_init.init_analytic_state(
analytic_init_str=self.case,
grid_data=grid_data,
quantity_factory=quantity_factory,
Expand Down
11 changes: 0 additions & 11 deletions environment.yml

This file was deleted.

5 changes: 1 addition & 4 deletions fv3core/pace/fv3core/initialization/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
# from .baroclinic import init_baroclinic_state
# from .tropical_cyclone import init_tc_state
from .test_cases.initialize_baroclinic import init_baroclinic_state
from .test_cases.initialize_tc import init_tc_state
from .analytic_init.py import init_analytic_state
10 changes: 5 additions & 5 deletions fv3core/pace/fv3core/initialization/analytic_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class cases(Enum):
valid_cases = [item.value for item in cases]


def init_analytic_choice(
def init_analytic_state(
analytic_init_str: str,
grid_data: GridData,
quantity_factory: fv3util.QuantityFactory,
Expand Down Expand Up @@ -43,9 +43,9 @@ def init_analytic_choice(
return bc.init_baroclinic_state(
grid_data=grid_data,
quantity_factory=quantity_factory,
adiabatic=False,
hydrostatic=False,
moist_phys=True,
adiabatic=adiabatic,
hydrostatic=hydrostatic,
moist_phys=moist_phys,
comm=comm,
)

Expand All @@ -55,7 +55,7 @@ def init_analytic_choice(
return tc.init_tc_state(
grid_data=grid_data,
quantity_factory=quantity_factory,
hydrostatic=False,
hydrostatic=hydrostatic,
comm=comm,
)
else:
Expand Down
Loading

0 comments on commit b20e85b

Please sign in to comment.