Loading web-font TeX/Math/Italic
PISM, A Parallel Ice Sheet Model 2.2.1-cd005eec8 committed by Constantine Khrulev on 2025-03-07
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages

◆ normalize()

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

Implicitly set the normalization constant for the functional.

The normalization constant is selected so that if an input array::Vector has component vectors all of length scale, then the funtional value will be 1. I.e.

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

Definition at line 34 of file IPMeanSquareFunctional.cc.

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