Skip to content
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

Addition of "Convert to Structured Grid" to gdas #1167

Merged
merged 14 commits into from
Jun 12, 2024
Merged
5 changes: 5 additions & 0 deletions mains/gdas.cc
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "ufo/instantiateObsFilterFactory.h"
#include "ufo/ObsTraits.h"

#include "oops/runs/ConvertToStructuredGrid.h"
#include "oops/runs/ConvertState.h"
#include "oops/runs/HofX4D.h"
#include "oops/runs/LocalEnsembleDA.h"
Expand Down Expand Up @@ -52,6 +53,9 @@ int runApp(int argc, char** argv, const std::string traits, const std::string ap
// Define a map from app names to lambda functions that create unique_ptr to Applications
std::map<std::string, std::function<std::unique_ptr<oops::Application>()>> apps;

apps["converttostructuredgrid"] = []() {
return std::make_unique<oops::ConvertToStructuredGrid<Traits>>();
};
apps["convertstate"] = []() {
return std::make_unique<oops::ConvertState<Traits>>();
};
Expand Down Expand Up @@ -96,6 +100,7 @@ int main(int argc, char ** argv) {
// Check that the application is recognized
// ----------------------------------------
const std::set<std::string> validApps = {
"converttostructuredgrid",
"convertstate",
"hofx4d",
"localensembleda",
Expand Down
Loading