PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800

◆ 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< array::Scalar >::m_grid, m_normalization, and m_weights.