ICFERST  22-06
Reservoir simulator based on DCVFEM, Dynamic Mesh optimisation and Surface-based modelling
multi_data_types::multi_sparsity Type Reference

This type comprises the necessary variables to represent matrices using a CSR structure. More...

Public Attributes

integer ncol
 
integer, dimension(:), pointer fin => null()
 
integer, dimension(:), pointer col => null()
 
integer, dimension(:), pointer mid => null()
 

Detailed Description

This type comprises the necessary variables to represent matrices using a CSR structure.

Parameters
ncolNumber of columns
finis the row index
colis the column index
midis to access the diagonal elements (barely used...)

 Taken from wikipedia. For the following watrix: 
 10 20  0  0  0  0
 0  30  0 40  0  0
 0  0  50 60 70  0
 0  0  0  0  0  80
 You would access it using CSR as:
 V   = [ 10 20 30 40 50 60 70 80 ]
 COL = [  0  1  1  3  2  3  4  5 ]   
 FIN = [  0  2  4  7  8 ]
 

Member Data Documentation

◆ col

integer, dimension(:), pointer multi_data_types::multi_sparsity::col => null()

◆ fin

integer, dimension(:), pointer multi_data_types::multi_sparsity::fin => null()

◆ mid

integer, dimension(:), pointer multi_data_types::multi_sparsity::mid => null()

◆ ncol

integer multi_data_types::multi_sparsity::ncol

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