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

Go to the source code of this file.

Functions/Subroutines

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

Function/Subroutine Documentation

◆ w_ixbloc()

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

Definition at line 30 of file w_ixbloc.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 DIM, NNOD, NUMEL, NUMEL_L, P, LEN_IA,
40 . IXA(DIM,*), 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(dim,numel_l) )
50! --------------------------
51 el = 0
52 DO i = 1, numel
53 IF(cep(i)==p) THEN
54 el = el + 1
55 DO n = 1, nnod
56 nn = ixa(n,i)
57 IF(nn/=0) THEN
58 ixtmp(n,el) = nodlocal(nn)
59 ELSE
60 ixtmp(n,el) = 0
61 ENDIF
62 ENDDO
63 DO n = nnod+1, dim
64 ixtmp(n,el) = ixa(n,i)
65 END DO
66 ENDIF
67 ENDDO
68C
69 CALL write_i_c(ixtmp,numel_l*dim)
70 len_ia = len_ia + numel_l*dim
71C
72! --------------------------
73! deallocate 2d array
74 DEALLOCATE( ixtmp )
75! --------------------------
76 RETURN
void write_i_c(int *w, int *len)