MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
memorybuffermodule::memorybuffertype Type Referenceabstract

In-memory particle event buffer. Records are held in a dynamically growing array that doubles in capacity as needed. More...

Inheritance diagram for memorybuffermodule::memorybuffertype:
Inheritance graph
Collaboration diagram for memorybuffermodule::memorybuffertype:
Collaboration graph

Public Member Functions

procedure append (this, rec)
procedure flush (this, files)
procedure discard (this)
procedure destroy (this)
procedure init (this)
 open/allocate resources
procedure(buffer_append), deferred append (this, rec)
 buffer one record
procedure(buffer_flush), deferred flush (this, files)
 write buffered records, reset
procedure(buffer_simple), deferred discard (this)
 reset without writing
procedure(buffer_simple), deferred destroy (this)
 release resources

Public Attributes

type(particletrackrecordtype), dimension(:), allocatable records
 buffer
integer(i4b) nrecords = 0
 number of records stored

Detailed Description

Definition at line 17 of file MemoryBuffer.f90.

Member Function/Subroutine Documentation

◆ append() [1/2]

procedure memorybuffermodule::memorybuffertype::append ( class(memorybuffertype) this,
type(particletrackrecordtype), intent(in) rec )

Definition at line 20 of file MemoryBuffer.f90.

◆ append() [2/2]

procedure(buffer_append), deferred particletrackeventbuffermodule::particletrackeventbuffertype::append ( class(particletrackeventbuffertype) this,
type(particletrackrecordtype), intent(in) rec )
pure virtualinherited

Definition at line 34 of file ParticleTrackEventBuffer.f90.

◆ destroy() [1/2]

procedure memorybuffermodule::memorybuffertype::destroy ( class(memorybuffertype) this)

Definition at line 23 of file MemoryBuffer.f90.

◆ destroy() [2/2]

procedure(buffer_simple), deferred particletrackeventbuffermodule::particletrackeventbuffertype::destroy ( class(particletrackeventbuffertype) this)
pure virtualinherited

Definition at line 37 of file ParticleTrackEventBuffer.f90.

◆ discard() [1/2]

procedure memorybuffermodule::memorybuffertype::discard ( class(memorybuffertype) this)

Definition at line 22 of file MemoryBuffer.f90.

◆ discard() [2/2]

procedure(buffer_simple), deferred particletrackeventbuffermodule::particletrackeventbuffertype::discard ( class(particletrackeventbuffertype) this)
pure virtualinherited

Definition at line 36 of file ParticleTrackEventBuffer.f90.

◆ flush() [1/2]

procedure memorybuffermodule::memorybuffertype::flush ( class(memorybuffertype) this,
type(particletrackfiletype), dimension(:), intent(in) files )

Definition at line 21 of file MemoryBuffer.f90.

◆ flush() [2/2]

procedure(buffer_flush), deferred particletrackeventbuffermodule::particletrackeventbuffertype::flush ( class(particletrackeventbuffertype) this,
type(particletrackfiletype), dimension(:), intent(in) files )
pure virtualinherited

Definition at line 35 of file ParticleTrackEventBuffer.f90.

◆ init()

procedure particletrackeventbuffermodule::particletrackeventbuffertype::init ( class(particletrackeventbuffertype) this)
inherited

Definition at line 33 of file ParticleTrackEventBuffer.f90.

Member Data Documentation

◆ nrecords

integer(i4b) particletrackeventbuffermodule::particletrackeventbuffertype::nrecords = 0
inherited

Definition at line 31 of file ParticleTrackEventBuffer.f90.

◆ records

type(particletrackrecordtype), dimension(:), allocatable memorybuffermodule::memorybuffertype::records

Definition at line 18 of file MemoryBuffer.f90.

18 type(ParticleTrackRecordType), allocatable :: records(:) !< buffer

The documentation for this type was generated from the following file:
  • /home/runner/work/modflow6/modflow6/src/Solution/ParticleTracker/Particle/MemoryBuffer.f90