fill the positions that describe how the data in the state vector relates to the entries in the buffer.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(tem_intbuffer_type), | intent(inout) | :: | me | |||
integer, | intent(in) | :: | pos(nvals) | |||
integer, | intent(in) | :: | nvals |
subroutine tem_commbuf_int_fillpos( me, pos, nvals ) ! -------------------------------------------------------------------- ! type(tem_intbuffer_type), intent(inout) :: me integer, intent(in) :: nvals integer, intent(in) :: pos(nvals) ! -------------------------------------------------------------------- ! me%nvals = nvals if ( allocated(me%pos) ) deallocate(me%pos) allocate(me%pos(nvals)) me%pos = pos if ( associated(me%val) ) deallocate(me%val) allocate(me%val(nvals)) end subroutine tem_commbuf_int_fillpos