Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
Source Code
subroutine initialize_type_crs(self,num_nodes,row,col)implicit none class(type_crs),intent(inout)::selfinteger(int32),intent(in)::num_nodesinteger(int32),intent(in),optional::row(:)integer(int32),intent(in),optional::col(:)integer(int32)::iif(.not.present(row).or..not.present(col))then print*,"Error: row and col must be provided for CRS initialization."stop end ifself%nnz=size(col)self%num_row=num_nodesself%num_ptr=self%num_row+1call allocate_array(self%ptr,self%num_ptr)do i=1,self%num_ptrself%ptr(i)=row(i)end do call allocate_array(self%ind,self%nnz)call allocate_array(self%val,self%nnz)do i=1,self%nnzself%ind(i)=col(i)self%val(i)=0.0d0end do end subroutine initialize_type_crs