Skip to content

Commit

Permalink
optional diagb at lowres
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumevernieres committed Jan 11, 2025
1 parent a36255a commit 004aef2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion utils/soca/gdas_soca_diagb.h
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,14 @@ namespace gdasapp {
oops::Log::info() << "Background:" << std::endl;
oops::Log::info() << xb << std::endl;

// Setup the output soca geometry
oops::Log::info() << "====================== output geometry" << std::endl;
const std::string outputGeometryKey = fullConfig.has("output geometry")
? "output geometry" // keep things backward compatible for now
: "geometry"; // and default to the input geometry
const eckit::LocalConfiguration geomOutConfig(fullConfig, outputGeometryKey);
const soca::Geometry geomOut(geomOutConfig, this->getComm());

/// Create the mesh connectivity (Copy/paste of Francois's stuff)
// --------------------------------------------------------------
// Build edges, then connections between nodes and edges
Expand Down Expand Up @@ -485,7 +493,8 @@ namespace gdasapp {

// Save the background error
const eckit::LocalConfiguration bkgErrorConfig(fullConfig, "background error");
bkgErr.write(bkgErrorConfig);
soca::Increment bkgErrOut(geomOut, bkgErr);
bkgErrOut.write(bkgErrorConfig);

return 0;
}
Expand Down

0 comments on commit 004aef2

Please sign in to comment.