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

Go to the source code of this file.

Functions/Subroutines

subroutine c_dampvrel (dampr, igrnod, proc, idamp_vrel, ndamp_vrel_l, ngrnod, ndamp, nrdamp)

Function/Subroutine Documentation

◆ c_dampvrel()

subroutine c_dampvrel ( dimension(nrdamp,ndamp), intent(in) dampr,
type (group_), dimension(ngrnod), intent(in) igrnod,
integer, intent(in) proc,
integer, dimension(ndamp), intent(inout) idamp_vrel,
integer, intent(inout) ndamp_vrel_l,
integer, intent(in) ngrnod,
integer, intent(in) ndamp,
integer, intent(in) nrdamp )

Definition at line 31 of file c_dampvrel.F.

33C-----------------------------------------------
34C M o d u l e s
35C-----------------------------------------------
36 USE groupdef_mod
37C---------------------------------------------
38C I m p l i c i t T y p e s
39C-----------------------------------------------
40#include "implicit_f.inc"
41C-----------------------------------------------
42C D u m m y A r g u m e n t s
43C-----------------------------------------------
44 INTEGER, INTENT(IN) :: PROC,NGRNOD,NDAMP,NRDAMP
45 INTEGER, INTENT(INOUT) :: NDAMP_VREL_L,IDAMP_VREL(NDAMP)
46 my_real, INTENT(IN) :: dampr(nrdamp,ndamp)
47 TYPE (GROUP_),DIMENSION(NGRNOD),INTENT(IN) :: IGRNOD
48C-----------------------------------------------
49C E x t e r n a l F u n c t i o n s
50C-----------------------------------------------
51 INTEGER NLOCAL
52 EXTERNAL nlocal
53C-----------------------------------------------
54C L o c a l V a r i a b l e s
55C-----------------------------------------------
56 INTEGER I,J,IGR,CPT
57C-----------------------------------------------
58C
59 DO i=1,ndamp
60 IF (nint(dampr(21,i)) == 2) THEN
61 igr = nint(dampr(2,i))
62 cpt = 0
63 DO j = 1,igrnod(igr)%NENTITY
64 IF (nlocal(igrnod(igr)%ENTITY(j),proc)==1) THEN
65 cpt = cpt + 1
66 ENDIF
67 ENDDO
68 IF (cpt > 0) THEN
69 ndamp_vrel_l = ndamp_vrel_l +1
70 idamp_vrel(i) = ndamp_vrel_l
71 ENDIF
72 ENDIF
73 ENDDO
74C
75! --------------------------------------
76 RETURN
#define my_real
Definition cppsort.cpp:32
integer function nlocal(n, p)
Definition ddtools.F:349