31 use const_gbl,
only: stdout
72 if (.not. this % constructed)
then
73 write (stdout,
"('Vector::constructed - Vector is not constructed')")
74 stop
"Vector::constructed - Vector is not constructed"
87 print *,
'MatrixElement::construct_mat_standard'
89 call this % matrix_cache % construct
90 call this % matrix_cache % clear
101 integer,
intent(in) :: matrix_size, matrix_type, block_size
104 this % initialized = .true.
116 integer,
intent(in) :: i, j, class
117 real(wp),
intent(in) :: coefficient, thresh
120 if (abs(coefficient) < thresh)
return
122 call this % matrix_cache % insert_into_cache(i, j, coefficient)
124 this % n = this % matrix_cache % n
135 integer,
intent(in) :: idx
136 integer,
intent(out) :: i, j
137 real(wp),
intent(out) :: coeff
139 call this % matrix_cache % get_from_cache(idx, i, j, coeff)
150 integer,
intent(in) :: capacity
152 call this % matrix_cache % expand_capacity(capacity)
154 write (stdout,
"('Current Matrix array size is ',i4)") this % matrix_cache % max_capacity
174 call this % matrix_cache % clear
186 call this % matrix_cache % sort
198 call this % matrix_cache % destroy