SPEED
GET_INDLOC_FROM_INDGLO.f90
Go to the documentation of this file.
1! Copyright (C) 2012 The SPEED FOUNDATION
2! Author: Ilario Mazzieri
3!
4! This file is part of SPEED.
5!
6! SPEED is free software; you can redistribute it and/or modify it
7! under the terms of the GNU Affero General Public License as
8! published by the Free Software Foundation, either version 3 of the
9! License, or (at your option) any later version.
10!
11! SPEED is distributed in the hope that it will be useful, but
12! WITHOUT ANY WARRANTY; without even the implied warranty of
13! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14! Affero General Public License for more details.
15!
16! You should have received a copy of the GNU Affero General Public License
17! along with SPEED. If not, see <http://www.gnu.org/licenses/>.
18
28
29 subroutine get_indloc_from_indglo(local_el, nel_loc, ie, ic)
30
31
32 implicit none
33
34 integer*4 :: nel_loc, ie, ic, i
35 integer*4, dimension(nel_loc) :: local_el
36
37 do i = 1, nel_loc
38 if(ie .eq. local_el(i)) then
39 ic = i
40 return
41 endif
42
43 enddo
44
45 ic = 0
46 return
47
48 end subroutine get_indloc_from_indglo
subroutine get_indloc_from_indglo(local_el, nel_loc, ie, ic)
Returns local id from global id.