Skip to content

Commit

Permalink
Merge branch 'develop' into feature/devgdasapp
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumevernieres authored Jun 14, 2024
2 parents e4a3e6c + f5bbec0 commit e1d9349
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
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
6 changes: 3 additions & 3 deletions utils/soca/gdas_soca_diagb.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,12 +300,12 @@ namespace gdasapp {
}

// Update the layer thickness halo
xbFs["hocn"].haloExchange();
nodeColumns.haloExchange(xbFs["hocn"]);

// Loop through variables
for (auto & var : configD.socaVars.variables()) {
// Update the halo
xbFs[var].haloExchange();
nodeColumns.haloExchange(xbFs[var]);

// Skip the layer thickness variable
if (var == "hocn") {
Expand Down Expand Up @@ -361,7 +361,7 @@ namespace gdasapp {
// Horizontal averaging
for (int iter = 0; iter < configD.niterHoriz; ++iter) {
// Update the halo points
bkgErrFs[var].haloExchange();
nodeColumns.haloExchange(bkgErrFs[var]);
auto stdDevBkg = atlas::array::make_view<double, 2>(bkgErrFs[var]);

// Loops through nodes and levels
Expand Down

0 comments on commit e1d9349

Please sign in to comment.