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

Go to the source code of this file.

Functions/Subroutines

subroutine init_reac_nod (cptreac, nodreac, nthgrp, ithgrp, ithbuf)

Function/Subroutine Documentation

◆ init_reac_nod()

subroutine init_reac_nod ( integer cptreac,
integer, dimension(*) nodreac,
integer nthgrp,
integer, dimension(nithgr,*) ithgrp,
integer, dimension(*) ithbuf )

Definition at line 28 of file init_reac_nod.F.

29C-----------------------------------------------
30C I m p l i c i t T y p e s
31C-----------------------------------------------
32#include "implicit_f.inc"
33C-----------------------------------------------
34C C o m m o n B l o c k s
35C-----------------------------------------------
36#include "com04_c.inc"
37#include "param_c.inc"
38C-----------------------------------------------
39C D u m m y A r g u m e n t s
40C-----------------------------------------------
41 INTEGER CPTREAC,NTHGRP,NODREAC(*),ITHBUF(*),ITHGRP(NITHGR,*)
42C-----------------------------------------------
43C L o c a l V a r i a b l e s
44C-----------------------------------------------
45 INTEGER I,J,K,L,N,NN,IAD,NVAR,IADV
46C-----------------------------------------------
47C
48 DO i = 1,numnod
49 nodreac(i)=0
50 ENDDO
51 DO n=1,nthgrp
52 nn =ithgrp(4,n)
53 iad =ithgrp(5,n)
54 nvar=ithgrp(6,n)
55 iadv=ithgrp(7,n)
56 DO j=iad,iad+nn-1
57 k = 0
58 DO l=iadv,iadv+nvar-1
59 k=ithbuf(l)
60 IF (k == 620 .OR. k == 621 .OR. k == 622 .OR.
61 & k == 623 .OR. k == 624 .OR. k == 625) THEN
62 cptreac = cptreac + 1
63 IF (ithbuf(j)>0) nodreac(ithbuf(j)) = cptreac
64 EXIT
65 ENDIF
66
67 ENDDO
68 ENDDO
69 ENDDO
70C
71 RETURN
integer function nvar(text)
Definition nvar.F:32