Method
NumCosmoGalaxyShapeFactorupdate_data_at_nodes_crit
Declaration [src]
void
nc_galaxy_shape_factor_update_data_at_nodes_crit (
NcGalaxyShapeFactor* gsf,
NcGalaxyShapeFactorData* data,
const NcmVector* z_nodes
)
Description [src]
Refreshes data‘s per-node critical surface density cache, using the lens
context cached by the last nc_galaxy_shape_factor_prepare() call. This
cache depends only on self->lens_ctx/self->cosmo/
self->surface_mass_density (not on density_profile or the projected
radius), and lens_ctx is refreshed whenever
nc_galaxy_shape_factor_get_optzs_hash() changes (see prepare()’s own doc
comment) — so call this whenever that hash changed, or whenever the node
grid itself was rebuilt (different/resized z_nodes).
Parameters
data-
Type:
NcGalaxyShapeFactorDataA
NcGalaxyShapeFactorData.The data is owned by the caller of the method. z_nodes-
Type:
NcmVectorThe z values at each quadrature node.
The data is owned by the caller of the method.