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::particletrackfiletype
 Output file containing all or some particle pathlines. More...
 
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. More...
 

Modules

module  particletracksmodule
 Particle track output module.
 

Functions/Subroutines

subroutine particletracksmodule::init_file (this, iun, csv, iprp)
 Initialize a binary or CSV file. 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...
 
logical function particletracksmodule::should_save (this, particle, file)
 Check whether a particle belongs in a given file i.e. if the file is enabled and its group matches the particle's. More...
 
subroutine, private particletracksmodule::save_event (iun, particle, event, csv)
 Save an event to a binary or CSV file. More...
 
logical function particletracksmodule::should_print (this)
 Is the output unit valid? More...
 
logical(lgp) function, public particletracksmodule::write_particle_event (context, particle, event)
 Write a particle event to files for which the particle is eligible, and print the event to output unit if requested. This function is the module's main entry point. It should be subscribed as an event handler to particle event dispatchers. 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'