SPEED
GET_INDLOC_FROM_INDGLO.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine get_indloc_from_indglo (local_el, nel_loc, ie, ic)
 Returns local id from global id.
 

Function/Subroutine Documentation

◆ get_indloc_from_indglo()

subroutine get_indloc_from_indglo ( integer*4, dimension(nel_loc)  local_el,
integer*4  nel_loc,
integer*4  ie,
integer*4  ic 
)

Returns local id from global id.

Author
Ilario Mazzieri
Date
September, 2013
Version
1.0
Parameters
[in]local_ellocal element numeration local_el(i) = global numeration of the i-th local element
[in]nel_locnumber of local elements
[in]ieglobal id for the element
[out]iclocal number for the element, 0 if the element is not present

Definition at line 29 of file GET_INDLOC_FROM_INDGLO.f90.

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

Referenced by compute_energy_error(), compute_sdof_input(), find_monitor_position(), get_max_values(), make_dg_interface(), make_dg_loc_numeration(), make_extint_forces(), make_spx_con_loc_bound(), make_spx_loc_numeration(), make_system_position_lglnodes(), read_filemesh_loc(), read_system_position(), setup_dg4mpi(), setup_mpi_jump(), and write_output().

Here is the caller graph for this function: