returns the index of these coordinates in the list of nodes (0 if it is not a node)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| integer(kind=ip), | intent(in) | :: | i | |||
| integer(kind=ip), | intent(in) | :: | j |
pure integer(ip) function node_number(i,j) !! returns the index of these coordinates in !! the list of nodes (0 if it is not a node) integer(ip),intent(in) :: i,j integer(ip),dimension(1) :: iloc iloc = findloc(inodes==i .and. jnodes==j, .true.) node_number = iloc(1) end function node_number