Allocates and initializes a maximal-coordinate state. Positions and velocities are set to zero, and every orientation is set to the identity quaternion.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(variational_state), | intent(out) | :: | state |
The state to initialize. |
||
| integer(kind=int32), | intent(in) | :: | nbody |
The number of rigid bodies represented by the state. |