初始化内存空间
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nnps_pairs_type), | intent(inout) | :: | self | |||
| integer, | intent(in) | :: | n |
粒子对容量 |
subroutine init(self, n)
class(nnps_pairs_type), intent(inout) :: self
integer, intent(in) :: n !! 粒子对容量
allocate (self%wdwdx(dim + 1, n))
allocate (self%contact_type(n))
self%cap = n
end subroutine init