From c2483643ff09dcc5274877a334b44338a6f12176 Mon Sep 17 00:00:00 2001 From: Juliette Rocha Date: Thu, 11 Jul 2024 13:13:25 -0500 Subject: [PATCH 1/6] Add ConvertToStructuredGrid File --- src/mains/ConvertToStructuredGrid.cc | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/mains/ConvertToStructuredGrid.cc diff --git a/src/mains/ConvertToStructuredGrid.cc b/src/mains/ConvertToStructuredGrid.cc new file mode 100644 index 000000000..944c74475 --- /dev/null +++ b/src/mains/ConvertToStructuredGrid.cc @@ -0,0 +1,18 @@ +/* + * (C) Copyright 2017-2021 UCAR + * + * This software is licensed under the terms of the Apache Licence Version 2.0 + * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. + */ + + +#include "oops/runs/ConvertToStructuredGrid.h" +#include "oops/runs/Run.h" +#include "soca/Traits.h" + +int main(int argc, char ** argv) { + oops::Run run(argc, argv); + oops::ConvertToStructuredGrid converttostructuredgrid; + return run.execute(converttostructuredgrid); +} + From 412bbd1adc62763601a96435c0b971966d27573d Mon Sep 17 00:00:00 2001 From: Juliette Rocha Date: Thu, 11 Jul 2024 13:21:36 -0500 Subject: [PATCH 2/6] Add ConvertToStructuredGrid File and CMakeFile Edit --- src/mains/CMakeLists.txt | 4 ++++ src/mains/ConvertToStructuredGrid.cc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/mains/CMakeLists.txt b/src/mains/CMakeLists.txt index fa3a4317b..ea691b2d6 100644 --- a/src/mains/CMakeLists.txt +++ b/src/mains/CMakeLists.txt @@ -74,6 +74,10 @@ ecbuild_add_executable( TARGET soca_convertstate.x SOURCES ConvertState.cc LIBS soca ) +ecbuild_add_executable( TARGET soca_converttostructuredgrid.x + SOURCES ConvertToStructuredGrid.cc + LIBS soca + ) ecbuild_add_executable( TARGET soca_addincrement.x SOURCES AddIncrement.cc diff --git a/src/mains/ConvertToStructuredGrid.cc b/src/mains/ConvertToStructuredGrid.cc index 944c74475..d6c0b67f7 100644 --- a/src/mains/ConvertToStructuredGrid.cc +++ b/src/mains/ConvertToStructuredGrid.cc @@ -1,7 +1,7 @@ /* * (C) Copyright 2017-2021 UCAR * - * This software is licensed under the terms of the Apache Licence Version 2.0 + * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. */ From b62ae32150eeb79a2d26092fd4a18fad194b5ed3 Mon Sep 17 00:00:00 2001 From: Juliette Rocha Date: Thu, 11 Jul 2024 13:25:54 -0500 Subject: [PATCH 3/6] ConvertToStructuredGrid File and CMakeFile Final Edits --- src/mains/CMakeLists.txt | 1 + src/mains/ConvertToStructuredGrid.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mains/CMakeLists.txt b/src/mains/CMakeLists.txt index ea691b2d6..808e94ebf 100644 --- a/src/mains/CMakeLists.txt +++ b/src/mains/CMakeLists.txt @@ -74,6 +74,7 @@ ecbuild_add_executable( TARGET soca_convertstate.x SOURCES ConvertState.cc LIBS soca ) + ecbuild_add_executable( TARGET soca_converttostructuredgrid.x SOURCES ConvertToStructuredGrid.cc LIBS soca diff --git a/src/mains/ConvertToStructuredGrid.cc b/src/mains/ConvertToStructuredGrid.cc index d6c0b67f7..944c74475 100644 --- a/src/mains/ConvertToStructuredGrid.cc +++ b/src/mains/ConvertToStructuredGrid.cc @@ -1,7 +1,7 @@ /* * (C) Copyright 2017-2021 UCAR * - * This software is licensed under the terms of the Apache Licence Version 2.0 + * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. */ From de4d935fa2d1b4fa616bb7ffb30e307ad52701d7 Mon Sep 17 00:00:00 2001 From: Juliette Rocha Date: Thu, 11 Jul 2024 13:37:15 -0500 Subject: [PATCH 4/6] Add Structured Grid Code and Edit CMake file accordingly --- src/mains/CMakeLists.txt | 1 + src/mains/ConvertToStructuredGrid.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mains/CMakeLists.txt b/src/mains/CMakeLists.txt index 808e94ebf..dea489195 100644 --- a/src/mains/CMakeLists.txt +++ b/src/mains/CMakeLists.txt @@ -75,6 +75,7 @@ ecbuild_add_executable( TARGET soca_convertstate.x LIBS soca ) + ecbuild_add_executable( TARGET soca_converttostructuredgrid.x SOURCES ConvertToStructuredGrid.cc LIBS soca diff --git a/src/mains/ConvertToStructuredGrid.cc b/src/mains/ConvertToStructuredGrid.cc index 944c74475..d6c0b67f7 100644 --- a/src/mains/ConvertToStructuredGrid.cc +++ b/src/mains/ConvertToStructuredGrid.cc @@ -1,7 +1,7 @@ /* * (C) Copyright 2017-2021 UCAR * - * This software is licensed under the terms of the Apache Licence Version 2.0 + * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. */ From 6109816e4be241b11e63eedb7e30f4c6fe1bd6a9 Mon Sep 17 00:00:00 2001 From: Juliette Rocha Date: Thu, 11 Jul 2024 13:38:24 -0500 Subject: [PATCH 5/6] Add Structured Grid Code and Edit CMake file accordingly --- src/mains/CMakeLists.txt | 1 - src/mains/ConvertToStructuredGrid.cc | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mains/CMakeLists.txt b/src/mains/CMakeLists.txt index dea489195..808e94ebf 100644 --- a/src/mains/CMakeLists.txt +++ b/src/mains/CMakeLists.txt @@ -75,7 +75,6 @@ ecbuild_add_executable( TARGET soca_convertstate.x LIBS soca ) - ecbuild_add_executable( TARGET soca_converttostructuredgrid.x SOURCES ConvertToStructuredGrid.cc LIBS soca diff --git a/src/mains/ConvertToStructuredGrid.cc b/src/mains/ConvertToStructuredGrid.cc index d6c0b67f7..944c74475 100644 --- a/src/mains/ConvertToStructuredGrid.cc +++ b/src/mains/ConvertToStructuredGrid.cc @@ -1,7 +1,7 @@ /* * (C) Copyright 2017-2021 UCAR * - * This software is licensed under the terms of the Apache Licence Version 2.0 + * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. */ From ed8215f533d2fbadffd3c41211339f5dabb5da0d Mon Sep 17 00:00:00 2001 From: Juliette Rocha Date: Thu, 11 Jul 2024 14:22:54 -0500 Subject: [PATCH 6/6] Date Edit to ConvertStructuredGrid File --- src/mains/ConvertToStructuredGrid.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mains/ConvertToStructuredGrid.cc b/src/mains/ConvertToStructuredGrid.cc index 944c74475..75d0958d7 100644 --- a/src/mains/ConvertToStructuredGrid.cc +++ b/src/mains/ConvertToStructuredGrid.cc @@ -1,5 +1,5 @@ /* - * (C) Copyright 2017-2021 UCAR + * (C) Copyright 2017-2024 UCAR * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.