allocate_body_eph Subroutine

private subroutine allocate_body_eph(me, nx, kx)

Type Bound

body_eph

Arguments

Type IntentOptional Attributes Name
class(body_eph), intent(inout) :: me
integer, intent(in) :: nx
integer, intent(in) :: kx

Source Code

    subroutine allocate_body_eph(me, nx, kx)
        class(body_eph),intent(inout) :: me
        integer,intent(in) :: nx
        integer,intent(in) :: kx
        me%nx = nx
        allocate(me%tx(      nx+kx,6))  ! columns are for each state element (rx,ry,rz,vx,vy,vz)
        allocate(me%bcoef(   nx,6))
        allocate(me%f(       nx,6))
    end subroutine allocate_body_eph