#include "implicit_f.inc"
#include "mvsiz_p.inc"
Go to the source code of this file.
|
| subroutine | qmassreal2 (off, rho, ms_2d, vnew, nc1, nc2, nc3, nc4, nel) |
◆ 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.
41
42
43
44#include "implicit_f.inc"
45
46
47
48#include "mvsiz_p.inc"
49
50
51
52
53
54
55 INTEGER, INTENT(IN) :: NEL
56
58 . off(*), rho(*), ms_2d(*),vnew(*)
59 INTEGER NC1(*), NC2(*), (*), NC4(*)
60
61
62
63
65 . mass(mvsiz)
66 INTEGER I
67
68 DO i=1,nel
69 mass(i)=rho(i)*vnew(i)*off(i)*fourth
70 ENDDO
71
73 DO i=1,nel
74
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
81
82 RETURN