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 find_crs(self,row,col,index)implicit none class(type_crs),intent(in)::selfinteger(int32),intent(in)::row,colinteger(int32),intent(inout)::indexinteger(int32)::iinteger(int32)::search_start,search_endindex=0! 見つからなかった場合のデフォルト値! 検索範囲を設定search_start=self%ptr(row)search_end=self%ptr(row+1)-1! 範囲が存在しない場合は終了if(search_start>search_end)return! 線形探索 (最初から最後まで順番に探す)do i=search_start,search_endif(self%ind(i)==col)thenindex=ireturn! 見つかったら即座に終了end if end do end subroutine find_crs