Skip to content

Commit

Permalink
add LGAR model; WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
aaraney committed Nov 21, 2023
1 parent 516d478 commit b6523a1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions python/ngen_conf/src/ngen/config/lgar.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from typing import Literal, Optional, Mapping
from pydantic import Field

from .bmi_formulation import BMICxx


class LGAR(BMICxx):
"""A BMICXX implementation for the LGAR ngen module"""

model_params: Optional[Mapping[str, str]]
# FIXME this isn't required for CXX bmi in ngen?
registration_function: str = "none"
# NOTE aliases don't propagate to subclasses, so we have to repeat the alias
model_name: Literal["LGAR"] = Field(
"LGAR", const=True, alias="model_type_name"
)

0 comments on commit b6523a1

Please sign in to comment.