Allocate gradient array for total_atoms
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(mbe_result_t), | intent(inout) | :: | this | |||
| integer, | intent(in) | :: | total_atoms |
subroutine mbe_result_allocate_gradient(this, total_atoms) !! Allocate gradient array for total_atoms class(mbe_result_t), intent(inout) :: this integer, intent(in) :: total_atoms if (allocated(this%gradient)) deallocate (this%gradient) allocate (this%gradient(3, total_atoms)) this%gradient = 0.0_dp end subroutine mbe_result_allocate_gradient