64 CHARACTER(CHRLEN) :: rcsidentstring
66 CHARACTER(CHRLEN),
POINTER :: statname(:,:,:)
69 INTEGER,
POINTER :: statid(:,:), statcode(:,:,:)
73 rcsidentstring =
'$RCSfile: PLAG_StatMapping.F90,v $'
76 'PLAG_StatMapping.F90' )
80 ALLOCATE( global%plagStatCode(2,2,global%plagNStat),stat=errorflag )
81 global%error = errorflag
82 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
84 statid => global%plagStatId
85 statcode => global%plagStatCode
88 ALLOCATE( global%plagStatNm(2,2,global%plagNStat),stat=errorflag )
89 global%error = errorflag
90 IF (global%error /= 0) CALL
errorstop( global,err_allocate,__line__ )
92 statname => global%plagStatNm
97 DO l=1,global%plagNStat
99 IF (statid(
n,l)==0)
THEN
100 statcode(
n,:,l) = stat_none
101 ELSE IF (statid(
n,l)==1)
THEN
102 statcode(
n,1,l) = stat_plagev
103 statcode(
n,2,l) = ev_plag_diam3
105 statname(
n,1,l) =
' '
106 statname(
n,2,l) =
' '
108 ELSE IF (statid(
n,l)==2)
THEN
109 statcode(
n,1,l) = stat_plagev
110 statcode(
n,2,l) = ev_plag_diam4
112 statname(
n,1,l) =
' '
113 statname(
n,2,l) =
' '
115 ELSE IF (statid(
n,l)==3)
THEN
116 statcode(
n,1,l) = stat_plagev
117 statcode(
n,2,l) = ev_plag_numdens
119 statname(
n,1,l) =
' '
120 statname(
n,2,l) =
' '
122 ELSE IF (statid(
n,l)==4)
THEN
123 statcode(
n,1,l) = stat_plagev
124 statcode(
n,2,l) = ev_plag_uvel
126 statname(
n,1,l) =
' '
127 statname(
n,2,l) =
' '
129 ELSE IF (statid(
n,l)==5)
THEN
130 statcode(
n,1,l) = stat_plagev
131 statcode(
n,2,l) = ev_plag_vvel
133 statname(
n,1,l) =
' '
134 statname(
n,2,l) =
' '
136 ELSE IF (statid(
n,l)==6)
THEN
137 statcode(
n,1,l) = stat_plagev
138 statcode(
n,2,l) = ev_plag_wvel
140 statname(
n,1,l) =
' '
141 statname(
n,2,l) =
' '
143 ELSE IF (statid(
n,l)==7)
THEN
144 statcode(
n,1,l) = stat_plagev
145 statcode(
n,2,l) = ev_plag_mass
147 statname(
n,1,l) =
' '
148 statname(
n,2,l) =
' '
150 ELSE IF (statid(
n,l)==8)
THEN
151 statcode(
n,1,l) = stat_plagev
152 statcode(
n,2,l) = ev_plag_mass+1
154 statname(
n,1,l) =
' '
155 statname(
n,2,l) =
' '
157 ELSE IF (statid(
n,l)==9)
THEN
158 statcode(
n,1,l) = stat_plagev
159 statcode(
n,2,l) = ev_plag_mass+2
161 statname(
n,1,l) =
' '
162 statname(
n,2,l) =
' '
165 CALL
errorstop( global,err_stats_indexing,__line__, &
166 'PLAG index is not defined.' )
subroutine genxstatnaming(global, fluidType)
subroutine registerfunction(global, funName, fileName)
subroutine plag_statmapping(global)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)