-
Notifications
You must be signed in to change notification settings - Fork 2
/
getmixerinclusion.f
executable file
·51 lines (51 loc) · 1.31 KB
/
getmixerinclusion.f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
SUBROUTINE GETMIXERINCLUSION(MIXER,n,sn,rm,x,vr_reg,
& INCLUSION)
*
* +---------------------------------------------------+
* | Copyright (c) FORMAT Int '08. All rights reserved |
* +---------------------------------------------------+
* | Subroutine : GETMIXERINCLUSION |
* | Description: Extract the mixer inclusion |
* | Revision : June 2008 |
* +---------------------------------------------------+
*
*------------------------
* Implicit definition *
*------------------------
*
IMPLICIT INTEGER (A-Z)
*
*------------------
* Indirect data *
*------------------
*
INTEGER vr_reg(2+2*sn+3*n)
DOUBLE PRECISION INCLUSION
DOUBLE PRECISION x(n)
*
*---------------------
* Local parameters *
*---------------------
*
PARAMETER (TYPE_U=4)
*
*----------------------------
* Look for mixe inclusion *
*----------------------------
*
INCLUSION=0D0
DO i=1,n
IF (vr_reg(2+2*sn+i).eq.TYPE_U) THEN
j = vr_reg(2+2*sn+n+i)
IF (j-rm.EQ.MIXER) THEN
*
* Total premix consumption
*
INCLUSION=x(i)
RETURN
END IF
END IF
END DO
RETURN
END