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

Go to the source code of this file.

Functions/Subroutines

subroutine qmassreal2 (off, rho, ms_2d, vnew, nc1, nc2, nc3, nc4, nel)

Function/Subroutine Documentation

◆ qmassreal2()

subroutine qmassreal2 ( off,
rho,
ms_2d,
vnew,
integer, dimension(*) nc1,
integer, dimension(*) nc2,
integer, dimension(*) nc3,
integer, dimension(*) nc4,
integer, intent(in) nel )

Definition at line 37 of file qmassreal2.F.

41C-----------------------------------------------
42C I m p l i c i t T y p e s
43C-----------------------------------------------
44#include "implicit_f.inc"
45C-----------------------------------------------
46C G l o b a l P a r a m e t e r s
47C-----------------------------------------------
48#include "mvsiz_p.inc"
49C-----------------------------------------------
50C C o m m o n B l o c k s
51C-----------------------------------------------
52C-----------------------------------------------
53C D u m m y A r g u m e n t s
54C-----------------------------------------------
55 INTEGER, INTENT(IN) :: NEL
56C REAL
58 . off(*), rho(*), ms_2d(*),vnew(*)
59 INTEGER NC1(*), NC2(*), NC3(*), NC4(*)
60C-----------------------------------------------
61C L o c a l V a r i a b l e s
62C-----------------------------------------------
63C REAL
65 . mass(mvsiz)
66 INTEGER I
67C-----------------------------------------------
68 DO i=1,nel
69 mass(i)=rho(i)*vnew(i)*off(i)*fourth
70 ENDDO
71C
72 CALL idp_lock(1)
73 DO i=1,nel
74C
75 ms_2d(nc1(i))=ms_2d(nc1(i)) + mass(i)
76 ms_2d(nc2(i))=ms_2d(nc2(i)) + mass(i)
77 ms_2d(nc3(i))=ms_2d(nc3(i)) + mass(i)
78 ms_2d(nc4(i))=ms_2d(nc4(i)) + mass(i)
79 ENDDO
80 CALL idp_free(1)
81C
82 RETURN
#define my_real
Definition cppsort.cpp:32
subroutine idp_lock(id)
Definition machine.F:269
subroutine idp_free(id)
Definition machine.F:299