OpenRadioss 2025.1.11
OpenRadioss project
Loading...
Searching...
No Matches
w_reloc.F File Reference
#include "implicit_f.inc"

Go to the source code of this file.

Functions/Subroutines

subroutine w_reloc (rtab, cep, p, numel, numel_l, len_am)

Function/Subroutine Documentation

◆ 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.

31C-----------------------------------------------
32C I m p l i c i t T y p e s
33C-----------------------------------------------
34#include "implicit_f.inc"
35C-----------------------------------------------
36C D u m m y A r g u m e n t s
37C-----------------------------------------------
38 INTEGER CEP(*), P, NUMEL, NUMEL_L, LEN_AM
40 . rtab(*)
41C-----------------------------------------------
42C L o c a l V a r i a b l e s
43C-----------------------------------------------
44 INTEGER I, EL
45 my_real, DIMENSION(:), ALLOCATABLE :: rtmp
46C-----------------------------------------------
47! allocate 1d array
48 ALLOCATE( rtmp(numel_l) )
49! --------------------------------
50C
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
58C
59 CALL write_db(rtmp,numel_l)
60 len_am = len_am + numel_l
61C
62! --------------------------------
63! deallocate 1d array
64 DEALLOCATE( rtmp )
65! --------------------------------
66 RETURN
#define my_real
Definition cppsort.cpp:32
subroutine write_db(a, n)
Definition write_db.F:140