PISM, A Parallel Ice Sheet Model 2.2.1-cd005eec8 committed by Constantine Khrulev on 2025-03-07
Loading...
Searching...
No Matches

◆ normalize()

void pism::inverse::IPMeanSquareFunctional2S::normalize ( double  scale)
virtual

Implicitly set the normalization constant for the functional.

The normalization constant is selected so that if an input array::Scalar has entries all equal to scale, then the funtional value will be 1. I.e.

\[ c_N^{-1} = \sum_{i} w_i {\tt scale}^2. \]

Definition at line 144 of file IPMeanSquareFunctional.cc.

References pism::GlobalSum(), pism::inverse::IPFunctional< IMVecType >::m_grid, m_normalization, and m_weights.