From 7e5dab8d6b9b99c0abc129b7921edadc10b572c7 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Tue, 24 Sep 2019 14:31:26 +0200 Subject: [PATCH] Linear one was missing for integration into Persalys --- AdaoModelKeyVal.cxx | 3 +++ AdaoModelKeyVal.hxx | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/AdaoModelKeyVal.cxx b/AdaoModelKeyVal.cxx index b7b3aac..0c21832 100644 --- a/AdaoModelKeyVal.cxx +++ b/AdaoModelKeyVal.cxx @@ -159,6 +159,7 @@ std::shared_ptr EnumAlgoKeyVal::generateDftParameters() const switch(_enum) { case EnumAlgo::ThreeDVar: + case EnumAlgo::LinearLeastSquares: case EnumAlgo::NonLinearLeastSquares: { return templateForOthers(); @@ -180,6 +181,8 @@ std::string EnumAlgoKeyVal::getRepresentation() const return "3DVAR"; case EnumAlgo::NonLinearLeastSquares: return "NonLinearLeastSquares"; + case EnumAlgo::LinearLeastSquares: + return "LinearLeastSquares"; case EnumAlgo::Blue: return "Blue"; default: diff --git a/AdaoModelKeyVal.hxx b/AdaoModelKeyVal.hxx index f9c8132..372daaf 100644 --- a/AdaoModelKeyVal.hxx +++ b/AdaoModelKeyVal.hxx @@ -45,7 +45,8 @@ namespace AdaoModel { ThreeDVar, Blue, - NonLinearLeastSquares + NonLinearLeastSquares, + LinearLeastSquares }; class GenericKeyVal; -- 2.39.2