MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
sfrcrosssectionmanager::sfrcrosssection Type Reference
Collaboration diagram for sfrcrosssectionmanager::sfrcrosssection:
Collaboration graph

Public Member Functions

procedure, public initialize (this, ncrossptstot, ncrosspts, iacross, station, height, roughfraction)
 Initialize a cross-section object.
procedure, public source_table (this, irch, width, mempath, filename)
 Source a reach's cross-section table from its SFRTAB6 subpackage.
procedure, public read_table (this, irch, width, filename)
 Read a cross-section table file for a reach.
procedure, public get_ncrossptstot (this)
 Get the total number of cross-section points.
procedure, public output (this, widths, roughs, kstp, kper)
 Write cross-section tables.
procedure, public pack (this, ncrossptstot, ncrosspts, iacross, station, height, roughfraction)
 Pack the cross-section object.
procedure, public destroy (this)
 Deallocate the cross-section object.

Public Attributes

integer(i4b), pointer iout => null()
integer(i4b), pointer iprpak => null()
integer(i4b), pointer nreaches => null()
integer(i4b), pointer invalid => null()
character(len=linelength), dimension(:), allocatable filenames
integer(i4b), dimension(:), pointer, contiguous npoints => null()
type(sfrcrosssectiontype), dimension(:), pointer, contiguous cross_sections => null()
type(tabletype), pointer inputtab => null()

Private Member Functions

procedure, private validate (this, irch)
 Validate cross-section tables.

Detailed Description

Definition at line 23 of file SfrCrossSectionManager.f90.

Member Function/Subroutine Documentation

◆ destroy()

procedure, public sfrcrosssectionmanager::sfrcrosssection::destroy ( class(sfrcrosssection) this)

Subroutine to deallocate the cross-section object.

Parameters
thisSfrCrossSection object

Definition at line 44 of file SfrCrossSectionManager.f90.

◆ get_ncrossptstot()

procedure, public sfrcrosssectionmanager::sfrcrosssection::get_ncrossptstot ( class(sfrcrosssection) this)

Function to get the total number of cross-section points to get the new size of the station xsheight data for all reaches.

Definition at line 41 of file SfrCrossSectionManager.f90.

◆ initialize()

procedure, public sfrcrosssectionmanager::sfrcrosssection::initialize ( class(sfrcrosssection) this,
integer(i4b), intent(in) ncrossptstot,
integer(i4b), dimension(this%nreaches), intent(in) ncrosspts,
integer(i4b), dimension(this%nreaches + 1), intent(in) iacross,
real(dp), dimension(ncrossptstot), intent(in) station,
real(dp), dimension(ncrossptstot), intent(in) height,
real(dp), dimension(ncrossptstot), intent(in) roughfraction )

Subroutine to initialize the cross-section object with the current data.

Parameters
thisSfrCrossSection object
[in]ncrossptstottotal number of cross-section points
[in]ncrossptspointers to cross-section data in data vector
[in]iacrosspointers to cross-section data in data vector
[in]stationcross-section station data
[in]heightcross-section height data
[in]roughfractioncross-section roughness fraction data

Definition at line 38 of file SfrCrossSectionManager.f90.

◆ output()

procedure, public sfrcrosssectionmanager::sfrcrosssection::output ( class(sfrcrosssection) this,
real(dp), dimension(this%nreaches), intent(in) widths,
real(dp), dimension(this%nreaches), intent(in) roughs,
integer(i4b), intent(in), optional kstp,
integer(i4b), intent(in), optional kper )

Subroutine to write the cross-section tables to the model listing file.

Parameters
thisSfrCrossSection object
[in]widthsreach widths
[in]roughsreach Manning's roughness coefficients
[in]kstptime step
[in]kperstress period

Definition at line 42 of file SfrCrossSectionManager.f90.

◆ pack()

procedure, public sfrcrosssectionmanager::sfrcrosssection::pack ( class(sfrcrosssection) this,
integer(i4b), intent(in) ncrossptstot,
integer(i4b), dimension(this%nreaches), intent(inout) ncrosspts,
integer(i4b), dimension(this%nreaches + 1), intent(inout) iacross,
real(dp), dimension(ncrossptstot), intent(inout) station,
real(dp), dimension(ncrossptstot), intent(inout) height,
real(dp), dimension(ncrossptstot), intent(inout) roughfraction )

Subroutine to pack the cross-section object into vectors.

Parameters
thisSfrCrossSection object
[in]ncrossptstottotal number of cross-section points
[in,out]ncrossptspointers to cross-section data in data vector
[in,out]iacrosspointers to cross-section data in data vector
[in,out]stationcross-section station data
[in,out]heightcross-section height data
[in,out]roughfractioncross-section roughness fraction data

Definition at line 43 of file SfrCrossSectionManager.f90.

◆ read_table()

procedure, public sfrcrosssectionmanager::sfrcrosssection::read_table ( class(sfrcrosssection) this,
integer(i4b), intent(in) irch,
real(dp), intent(in) width,
character(len=*), intent(in) filename )

Used only for the PERIOD block's dynamic CROSS_SECTION reissue, whose file path is not known until runtime.

Parameters
thisSfrCrossSection object
[in]irchcurrent reach
[in]widthreach width
[in]filenametable file with station height data

Definition at line 40 of file SfrCrossSectionManager.f90.

◆ source_table()

procedure, public sfrcrosssectionmanager::sfrcrosssection::source_table ( class(sfrcrosssection) this,
integer(i4b), intent(in) irch,
real(dp), intent(in) width,
character(len=*), intent(in) mempath,
character(len=*), intent(in) filename )
Parameters
thisSfrCrossSection object
[in]irchcurrent reach
[in]widthreach width
[in]mempathSFRTAB6 input mempath
[in]filenametable file name, for reporting

Definition at line 39 of file SfrCrossSectionManager.f90.

◆ validate()

procedure, private sfrcrosssectionmanager::sfrcrosssection::validate ( class(sfrcrosssection) this,
integer(i4b), intent(in) irch )
private

Subroutine to validate a cross-section table.

Parameters
thisSfrCrossSection object
[in]irchcurrent reach

Definition at line 47 of file SfrCrossSectionManager.f90.

Member Data Documentation

◆ cross_sections

type(sfrcrosssectiontype), dimension(:), pointer, contiguous sfrcrosssectionmanager::sfrcrosssection::cross_sections => null()

Definition at line 30 of file SfrCrossSectionManager.f90.

◆ filenames

character(len=linelength), dimension(:), allocatable sfrcrosssectionmanager::sfrcrosssection::filenames

Definition at line 28 of file SfrCrossSectionManager.f90.

28 character(len=LINELENGTH), dimension(:), allocatable :: filenames

◆ inputtab

type(tabletype), pointer sfrcrosssectionmanager::sfrcrosssection::inputtab => null()

Definition at line 32 of file SfrCrossSectionManager.f90.

◆ invalid

integer(i4b), pointer sfrcrosssectionmanager::sfrcrosssection::invalid => null()

Definition at line 27 of file SfrCrossSectionManager.f90.

◆ iout

integer(i4b), pointer sfrcrosssectionmanager::sfrcrosssection::iout => null()

Definition at line 24 of file SfrCrossSectionManager.f90.

◆ iprpak

integer(i4b), pointer sfrcrosssectionmanager::sfrcrosssection::iprpak => null()

Definition at line 25 of file SfrCrossSectionManager.f90.

◆ npoints

integer(i4b), dimension(:), pointer, contiguous sfrcrosssectionmanager::sfrcrosssection::npoints => null()

Definition at line 29 of file SfrCrossSectionManager.f90.

◆ nreaches

integer(i4b), pointer sfrcrosssectionmanager::sfrcrosssection::nreaches => null()

Definition at line 26 of file SfrCrossSectionManager.f90.


The documentation for this type was generated from the following file: