检查是否粒子发生坍塌聚集
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(memory_type), | intent(inout) | :: | self | |||
| integer, | intent(in) | :: | pairs | |||
| integer, | intent(in) | :: | particles |
subroutine check(self, pairs, particles)
class(memory_type), intent(inout) :: self
integer, intent(in) :: pairs, particles
if (pairs > self%maxpairs) then
self%maxpairs = pairs
if (pairs/particles > dim*8) then
call terminal_obj%error('too many pairs, please check the model')
end if
end if
end subroutine check