PISM, A Parallel Ice Sheet Model
stable v2.1.1 committed by Constantine Khrulev on 2024-12-04 13:36:58 -0900
|
◆ integration_weights() [1/2]
Compute weights for integrating a piece-wise linear or piece-wise constant function defined on the grid Uses constant extrapolation, both on the left and on the right. In the piece-wise constant case points in To evaluate in the integral compute the dot product of data on the grid double result = 0.0;
double w = weight.second;
result += w * data[k];
}
static int weight(int M_ij, int M_n, double h_ij, double h_n) Definition: SSAFD_Regional.cc:59 Definition at line 308 of file interpolation.cc. References LINEAR, PIECEWISE_CONSTANT, PISM_ERROR_LOCATION, weights_piecewise_constant(), and weights_piecewise_linear(). Referenced by pism::array::Forcing::average(), and integration_weights(). |