Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
*/

#include <cmath>

#include "oops/util/Logger.h"
#include "oops/util/Timer.h"

Expand Down Expand Up @@ -144,7 +146,7 @@ ParametricOceanStdDev::ParametricOceanStdDev(
double sstVal = v_sstErr(i, 0);
for (size_t z = 0; z < levels; z++) {
// step 1: calc value from dT/dz
auto val = abs(tocnParams.dz.value() * v_dtdz(i, z));
auto val = std::abs(tocnParams.dz.value() * v_dtdz(i, z));

// step 2: calc a min from the e-folding scale, and min SST value
auto localMin = minVal + (sstVal - minVal) * exp(-v_depth(i, z) / efold);
Expand Down
1 change: 1 addition & 0 deletions src/soca/Utils/OceanSmoother.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "oops/base/GeometryData.h"
#include "oops/generic/Diffusion.h"
#include "oops/util/FieldSetHelpers.h"
#include "oops/util/Logger.h"

#include "soca/Utils/OceanSmoother.h"

Expand Down
Loading