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

Go to the source code of this file.

Functions/Subroutines

subroutine w_reloc2 (rtab, ndim, cep, p, numel, numel_l, len_am)

Function/Subroutine Documentation

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

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