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