gf_mdstate_set

Modify a model state object.

# Calling Sequence

    gf_mdstate_set(mdstate MDS, 'compute_reduced_system')

    gf_mdstate_set(mdstate MDS, 'compute_reduced_residual')

    gf_mdstate_set(mdstate MDS, 'compute_residual', mdbrick B)

    gf_mdstate_set(mdstate MDS, 'compute_tangent_matrix', mdbrick B)

    gf_mdstate_set(mdstate MDS, 'state', vec U)

    gf_mdstate_set(mdstate MDS, 'clear')

## Description

Modify a model state object.

## Command list

- `gf_mdstate_set(mdstate MDS, 'compute_reduced_system')`

  Compute the reduced system from the tangent matrix and constraints.

- `gf_mdstate_set(mdstate MDS, 'compute_reduced_residual')`

  Compute the reduced residual from the residual and constraints.

- `gf_mdstate_set(mdstate MDS, 'compute_residual', mdbrick B)`

  Compute the residual for the brick `B`.

- `gf_mdstate_set(mdstate MDS, 'compute_tangent_matrix', mdbrick B)`

  Update the tangent matrix from the brick `B`.

- `gf_mdstate_set(mdstate MDS, 'state', vec U)`

  Update the internal state with the vector `U`.

- `gf_mdstate_set(mdstate MDS, 'clear')`

  Clear the model state.

## See Also

- getfem types

## Authors

Y. Collette