dvector_resize Subroutine

public subroutine dvector_resize(this, new_size, ierr)

Resizes a vector to a given size. Existing data is truncated if desired size is smaller than current size. Otherwise, the empty spaces are filled with zero.

Arguments

Type IntentOptional AttributesName
class(dvector_t), intent(inout) :: this
integer, intent(in) :: new_size
integer, intent(out), optional :: ierr

Contents

None