#include "implicit_f.inc"
Go to the source code of this file.
|
| subroutine | w_reloc (rtab, cep, p, numel, numel_l, len_am) |
◆ w_reloc()
| subroutine w_reloc |
( |
| rtab, |
|
|
integer, dimension(*) | cep, |
|
|
integer | p, |
|
|
integer | numel, |
|
|
integer | numel_l, |
|
|
integer | len_am ) |
Definition at line 30 of file w_reloc.F.
31
32
33
34#include "implicit_f.inc"
35
36
37
38 INTEGER CEP(*), P, NUMEL, NUMEL_L, LEN_AM
40 . rtab(*)
41
42
43
44 INTEGER I,
45 my_real,
DIMENSION(:),
ALLOCATABLE :: rtmp
46
47
48 ALLOCATE( rtmp(numel_l) )
49
50
51 el = 0
52 DO i = 1, numel
53 IF(cep(i)==p) THEN
54 el = el + 1
55 rtmp(el) = rtab(i)
56 ENDIF
57 ENDDO
58
60 len_am = len_am + numel_l
61
62
63
64 DEALLOCATE( rtmp )
65
66 RETURN
subroutine write_db(a, n)