memory_type Derived Type

type, private :: memory_type

内存报告


Contents

Source Code


Components

Type Visibility Attributes Name Initial
integer, public :: region

粒子域内存, MBytes

integer, public :: nnps

近邻搜索结构内存, MBytes

integer, public :: total

总内存, MBytes

integer, public :: maxpairs = 0

最大近邻对数


Type-Bound Procedures

procedure, public, :: check

  • private subroutine check(self, pairs, particles)

    检查是否粒子发生坍塌聚集

    Arguments

    Type IntentOptional Attributes Name
    class(memory_type), intent(inout) :: self
    integer, intent(in) :: pairs
    integer, intent(in) :: particles

procedure, public, :: init

  • private subroutine init(self)

    初始化

    Arguments

    Type IntentOptional Attributes Name
    class(memory_type), intent(inout) :: self

procedure, public, :: report

  • private subroutine report(self)

    报告

    Arguments

    Type IntentOptional Attributes Name
    class(memory_type), intent(in) :: self

Source Code

    type memory_type
        integer :: region   !! 粒子域内存, MBytes
        integer :: nnps     !! 近邻搜索结构内存, MBytes
        integer :: total    !! 总内存, MBytes
        integer :: maxpairs = 0  !! 最大近邻对数
    contains
        procedure :: report, init, check
    end type memory_type