MODFLOW 6  version 6.8.0.dev0
USGS Modular Hydrologic Model
ParticleTracks.f90 File Reference

Go to the source code of this file.

Data Types

type  particletracksmodule::particletrackeventselectiontype
 Selection of particle events. More...
 
type  particletracksmodule::particletrackstype
 Particle track output manager. Handles printing as well as writing to files. One output unit can be configured for printing. Multiple files can be configured for writing, with each file optionally associated with a PRP package or with the full model. Events can be filtered by type, so that only certain event types are printed or written to files. Particle events are buffered in memory or in a scratch file, flushed to disk only when the time step is successfully solved for the last time (there may be multiple solves per time step, depending on ATS and Picard options). More...
 

Modules

module  particletracksmodule
 Particle track output module.
 

Functions/Subroutines

subroutine particletracksmodule::init_file (this, iun, csv, iprp)
 Initialize a binary or CSV output file. More...
 
subroutine particletracksmodule::init_buffer (this, scratch)
 Initialize the event buffer strategy. More...
 
subroutine particletracksmodule::destroy (this)
 Destroy the particle track manager. More...
 
subroutine particletracksmodule::expand_files (this, increment)
 Grow the array of track files. More...
 
subroutine particletracksmodule::select_events (this, release, featexit, timestep, terminate, weaksink, usertime, subfexit, dropped)
 Pick events to track. More...
 
logical function particletracksmodule::is_selected (this, event)
 Check if a given event code is selected for tracking. More...
 
subroutine particletracksmodule::buffer_event (this, particle, event)
 Buffer an event for deferred write. More...
 
subroutine particletracksmodule::flush_buffer (this)
 Flush the event buffer to disk. More...
 
subroutine particletracksmodule::discard_buffer (this)
 Discard buffered events without writing. More...
 
logical(lgp) function, public particletracksmodule::add_particle_event (context, particle, event)
 Add a particle event to be written to eligible files and printed to an output file unit if requested. This function should be subscribed as an event handler to particle event dispatchers. Events are buffered to be written to output files upon successful completion of a time step when the framework OT hook is executed. More...
 

Variables

character(len= *), parameter, public particletracksmodule::trackheader = 'kper,kstp,imdl,iprp,irpt,ilay,icell,izone,istatus,ireason,trelease,t,x,y,z,name'
 
character(len= *), parameter, public particletracksmodule::trackdtypes = '<i4,<i4,<i4,<i4,<i4,<i4,<i4,<i4,<i4,<i4,<f8,<f8,<f8,<f8,<f8,|S40'