PISM, A Parallel Ice Sheet Model  stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900

◆ 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.