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

Go to the source code of this file.

Functions/Subroutines

subroutine constit (itab, itabm1, numnod)

Function/Subroutine Documentation

◆ constit()

subroutine constit ( integer, dimension(*) itab,
integer, dimension(*) itabm1,
integer numnod )

Definition at line 34 of file constit.F.

35C
36C CONSTITUTION DU TABLEAU INVERSE DES NOEUDS
37C ITABM1(J)=NO USER ITABM1(NUMNOD+J)=NO SYSTEME
38C-----------------------------------------------
39C I m p l i c i t T y p e s
40C-----------------------------------------------
41#include "implicit_f.inc"
42C-----------------------------------------------
43C D u m m y A r g u m e n t s
44C-----------------------------------------------
45 INTEGER NUMNOD
46 INTEGER ITAB(*), ITABM1(*)
47C-----------------------------------------------
48C L o c a l V a r i a b l e s
49C-----------------------------------------------
50 INTEGER I
51 INTEGER WORK(70000)
52 INTEGER, DIMENSION(:), ALLOCATABLE :: INDX
53C-----------------------------------------------
54C S o u r c e L i n e s
55C-----------------------------------------------
56 ALLOCATE(indx(2*numnod))
57 DO i = 1, numnod
58 indx(i) = i
59 END DO
60
61 CALL my_orders(0,work,itab,indx,numnod,1)
62
63 IF(numnod>=1)THEN
64 itabm1(1) = itab(indx(1))
65 itabm1(numnod+1) = indx(1)
66 ENDIF
67
68 DO i = 2, numnod
69 itabm1(i) = itab(indx(i))
70 IF(itabm1(i)==itabm1(i-1))THEN
71C An error might have been written during pre-reading of Nodes and Cnodes
72C CALL ANCMSG(MSGID=56,
73C . MSGTYPE=MSGERROR,
74C . ANMODE=ANINFO,
75C . I1=ITABM1(I))
76 indx(i)=indx(i-1)
77 END IF
78 itabm1(numnod+i) = indx(i)
79 END DO
80 DEALLOCATE(indx)
81
82 RETURN
void my_orders(int *mode, int *iwork, int *data, int *index, int *n, int *irecl)
Definition my_orders.c:82