MODFLOW 6 version 6.9.0.dev0
USGS Modular Hydrologic Model
Loading...
Searching...
No Matches
SparseMatrix.f90 File Reference

Go to the source code of this file.

Data Types

type  sparsematrixmodule::sparsematrixtype

Modules

module  sparsematrixmodule

Functions/Subroutines

subroutine sparsematrixmodule::spm_init (this, sparse, mem_path)
 Initialize sparse matrix from passed.
subroutine sparsematrixmodule::spm_destroy (this)
class(vectorbasetype) function, pointer sparsematrixmodule::spm_create_vec_mm (this, n, name, mem_path)
class(vectorbasetype) function, pointer sparsematrixmodule::spm_create_vec (this, n)
real(dp) function sparsematrixmodule::spm_get_value_pos (this, ipos)
real(dp) function sparsematrixmodule::spm_get_diag_value (this, irow)
subroutine sparsematrixmodule::spm_set_diag_value (this, irow, diag_value)
subroutine sparsematrixmodule::spm_set_value_pos (this, ipos, value)
subroutine sparsematrixmodule::spm_add_value_pos (this, ipos, value)
subroutine sparsematrixmodule::spm_add_diag_value (this, irow, value)
integer(i4b) function sparsematrixmodule::spm_get_first_col_pos (this, irow)
integer(i4b) function sparsematrixmodule::spm_get_last_col_pos (this, irow)
integer(i4b) function sparsematrixmodule::spm_get_column (this, ipos)
integer(i4b) function sparsematrixmodule::spm_get_position (this, irow, icol)
 Return position index for (irow,icol) element in the matrix. This index can be used in other routines for direct access.
integer(i4b) function sparsematrixmodule::spm_get_position_diag (this, irow)
subroutine sparsematrixmodule::allocate_scalars (this)
subroutine sparsematrixmodule::allocate_arrays (this)
subroutine sparsematrixmodule::spm_zero_entries (this)
 Set all entries in the matrix to zero.
subroutine sparsematrixmodule::spm_zero_row_offdiag (this, irow)
 Set all off-diagonal entries in the matrix to zero.
subroutine sparsematrixmodule::spm_get_aij (this, ia, ja, amat)
integer(i4b) function sparsematrixmodule::spm_get_row_offset (this)
subroutine sparsematrixmodule::spm_multiply (this, vec_x, vec_y)
 Calculates the matrix vector product y = A*x.