#include "implicit_f.inc"
#include "com01_c.inc"
#include "param_c.inc"
Go to the source code of this file.
◆ get_group_id()
| subroutine get_group_id |
( |
integer, intent(in) | ii, |
|
|
integer, intent(inout) | ng, |
|
|
integer, intent(inout) | ig, |
|
|
integer, dimension(nparg,*), intent(in) | iparg ) |
Definition at line 28 of file get_group_id.F.
30
31
32
33#include "implicit_f.inc"
34
35
36
37#include "com01_c.inc"
38#include "param_c.inc"
39
40
41
42 INTEGER, INTENT(IN) :: II, IPARG(NPARG,*)
43 INTEGER, INTENT(INOUT) :: NG, IG
44
45
46
47 INTEGER NEL, NFL, I, NG_
48 LOGICAL DONE
49
50
51
52
53
54
55
56
57
58
59
60
61
62 done=.false.
63 DO ng_=1,ngroup
64 nel=iparg(2,ng_)
65 nfl=iparg(3,ng_)
66 IF((ii>nfl).AND.(ii<=nfl+nel))THEN
67 ig = ii - nfl
68 ng = ng_
69 done =.true.
70 EXIT
71 ELSE
72 cycle
73 ENDIF
74 if (.NOT.(done).OR.ii==0)then
75 print *, "int 22 : error in group sorting."
76 stop
77 end if
78 ENDDO
79
80 RETURN