From b6523a1930994b4ebf21189413ee2c696d5de2fb Mon Sep 17 00:00:00 2001 From: Austin Raney Date: Tue, 21 Nov 2023 16:54:15 -0500 Subject: [PATCH] add LGAR model; WIP --- python/ngen_conf/src/ngen/config/lgar.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 python/ngen_conf/src/ngen/config/lgar.py diff --git a/python/ngen_conf/src/ngen/config/lgar.py b/python/ngen_conf/src/ngen/config/lgar.py new file mode 100644 index 00000000..48875827 --- /dev/null +++ b/python/ngen_conf/src/ngen/config/lgar.py @@ -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" + )