initialize_variational_state Subroutine

public subroutine initialize_variational_state(state, nbody)

Allocates and initializes a maximal-coordinate state. Positions and velocities are set to zero, and every orientation is set to the identity quaternion.

Arguments

Type IntentOptional 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.


Contents