gf_mdstate

A model state is an object which store the state data for a chain of model bricks. This includes the global tangent matrix, the right hand side and the constraints. This object is now deprecated and replaced by the model object. There are two sorts of model states, the `real` and the `complex` models states.

# Calling Sequence

    MDS = gf_mdstate('real')

    MDS = gf_mdstate('complex')

    MDS = gf_mdstate(mdbrick B)

## Description

General constructor for mdstate objects.

A model state is an object which store the state data for a chain of model bricks. This includes the global tangent matrix, the right hand side and the constraints. This object is now deprecated and replaced by the model object. There are two sorts of model states, the `real` and the `complex` models states.

## Command list

- `MDS = gf_mdstate('real')`

  Build a model state for real unknowns.

- `MDS = gf_mdstate('complex')`

  Build a model state for complex unknowns.

- `MDS = gf_mdstate(mdbrick B)`

  Build a modelstate for the brick `B`. Selects the real or complex state from the complexity of `B`.

## See Also

- getfem types

## Authors

Y. Collette