From f899e05fe89179d8de06f7c7a3bc5dbe3485a166 Mon Sep 17 00:00:00 2001 From: CoryMartin-NOAA Date: Wed, 9 Aug 2023 12:35:35 +0000 Subject: [PATCH] make hera compiler happy --- utils/ioda_example/gdas_meanioda.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/ioda_example/gdas_meanioda.h b/utils/ioda_example/gdas_meanioda.h index 11aad1321..95742c196 100644 --- a/utils/ioda_example/gdas_meanioda.h +++ b/utils/ioda_example/gdas_meanioda.h @@ -1,4 +1,5 @@ #include +#include #include "eckit/config/LocalConfiguration.h" #include "ioda/Group.h" #include "ioda/ObsSpace.h" @@ -66,7 +67,7 @@ namespace gdasapp { } // the below line computes the mean, aka sum divided by count - const float mean = std::reduce(buffer.begin(), buffer.end()) / float(nlocs); + const float mean = std::accumulate(buffer.begin(), buffer.end(), 0) / float(nlocs); // write the mean out to the stdout oops::Log::info() << "mean value for " << group << "/" << variable << "=" << mean << std::endl;