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

Go to the source code of this file.

Functions/Subroutines

subroutine w_ixaloc (ixa, nnod, cep, p, numel, numel_l, nodlocal, len_ia)

Function/Subroutine Documentation

◆ w_ixaloc()

subroutine w_ixaloc ( integer, dimension(nnod,*) ixa,
integer nnod,
integer, dimension(*) cep,
integer p,
integer numel,
integer numel_l,
integer, dimension(*) nodlocal,
integer len_ia )

Definition at line 30 of file w_ixaloc.F.

32C-----------------------------------------------
33C I m p l i c i t T y p e s
34C-----------------------------------------------
35#include "implicit_f.inc"
36C-----------------------------------------------
37C D u m m y A r g u m e n t s
38C-----------------------------------------------
39 INTEGER NNOD, NUMEL, NUMEL_L, P, LEN_IA,
40 . IXA(NNOD,*), CEP(*), NODLOCAL(*)
41C-----------------------------------------------
42C L o c a l V a r i a b l e s
43C-----------------------------------------------
44 INTEGER I, N, EL, NN
45 INTEGER, DIMENSION(:,:), ALLOCATABLE :: IXTMP
46C
47! --------------------------
48! allocate 2d array
49 ALLOCATE( ixtmp(nnod,numel_l) )
50! --------------------------
51
52 el = 0
53 DO i = 1, numel
54 IF(cep(i)==p) THEN
55 el = el + 1
56 DO n = 1, nnod
57 nn = ixa(n,i)
58 IF(nn/=0) THEN
59 ixtmp(n,el) = nodlocal(nn)
60 ELSE
61 ixtmp(n,el) = 0
62 ENDIF
63 ENDDO
64 ENDIF
65 ENDDO
66C
67 CALL write_i_c(ixtmp,numel_l*nnod)
68 len_ia = len_ia + numel_l*nnod
69C
70! --------------------------
71! deallocate 2d array
72 DEALLOCATE( ixtmp )
73! --------------------------
74 RETURN
void write_i_c(int *w, int *len)