Method

NumCosmoMathModelCtrlupdate

Declaration [src]

gboolean
ncm_model_ctrl_update (
  NcmModelCtrl* ctrl,
  NcmModel* model
)

Description [src]

Compares the model inside ctrl with model and updates the status of ctrl. If the model inside ctrl differs from model, ctrl is updated, and TRUE is returned. Otherwise, FALSE is returned.

If the model is the same but the model’s pkey is different, ctrl is updated, and TRUE is returned. Otherwise, FALSE is returned.

Submodels inside model are also analyzed similarly, and ctrl is updated if necessary. If any submodel is updated, TRUE is returned. Otherwise, FALSE is returned.

Parameters

model

Type: NcmModel

A NcmModel.

The data is owned by the caller of the method.

Return value

Type: gboolean

TRUE if ctrl was updated.