68 TYPE(t_region
),
POINTER :: pregion
74 CHARACTER(CHRLEN) :: rcsidentstring
75 INTEGER :: errorflag,
ic,iv
77 INTEGER :: loc(cv_mixt_dens:cv_mixt_ener,min_val:max_val)
78 REAL(RFREAL),
DIMENSION(:,:),
POINTER :: pcv,prhs
79 REAL(RFREAL),
DIMENSION(:,:),
ALLOCATABLE :: rhsn
80 TYPE(t_grid),
POINTER :: pgrid
87 rcsidentstring =
'$RCSfile: RFLU_PrintChangeInfo.F90,v $ $Revision: 1.12 $'
89 global => pregion%global
92 'RFLU_PrintChangeInfo.F90')
94 IF ( global%verbLevel > verbose_none )
THEN
95 WRITE(stdout,
'(A,1X,A)') solver_name,
'Printing relative change '// &
97 WRITE(stdout,
'(A,3X,A,1X,I5.5)') solver_name,
'Global region:', &
105 pcv => pregion%mixt%cv
106 prhs => pregion%mixt%rhs
107 pgrid => pregion%grid
109 ALLOCATE(rhsn(cv_mixt_dens:cv_mixt_ener,1:pgrid%nCells),stat=errorflag)
110 global%error = errorflag
111 IF ( global%error /= 0 )
THEN
112 CALL
errorstop(global,err_allocate,__line__,
'rhsn')
119 DO ic = 1,pgrid%nCells
120 DO iv = cv_mixt_dens,cv_mixt_ener
131 dummy = minloc(rhsn(cv_mixt_dens,1:pgrid%nCells))
132 loc(cv_mixt_dens,min_val) = dummy(1)
134 dummy = minloc(rhsn(cv_mixt_xmom,1:pgrid%nCells))
135 loc(cv_mixt_xmom,min_val) = dummy(1)
137 dummy = minloc(rhsn(cv_mixt_ymom,1:pgrid%nCells))
138 loc(cv_mixt_ymom,min_val) = dummy(1)
140 dummy = minloc(rhsn(cv_mixt_zmom,1:pgrid%nCells))
141 loc(cv_mixt_zmom,min_val) = dummy(1)
143 dummy = minloc(rhsn(cv_mixt_ener,1:pgrid%nCells))
144 loc(cv_mixt_ener,min_val) = dummy(1)
147 dummy = maxloc(rhsn(cv_mixt_dens,1:pgrid%nCells))
148 loc(cv_mixt_dens,max_val) = dummy(1)
150 dummy = maxloc(rhsn(cv_mixt_xmom,1:pgrid%nCells))
151 loc(cv_mixt_xmom,max_val) = dummy(1)
153 dummy = maxloc(rhsn(cv_mixt_ymom,1:pgrid%nCells))
154 loc(cv_mixt_ymom,max_val) = dummy(1)
156 dummy = maxloc(rhsn(cv_mixt_zmom,1:pgrid%nCells))
157 loc(cv_mixt_zmom,max_val) = dummy(1)
159 dummy = maxloc(rhsn(cv_mixt_ener,1:pgrid%nCells))
160 loc(cv_mixt_ener,max_val) = dummy(1)
163 WRITE(stdout,
'(A,3X,A,2(1X,E15.8),2(1X,I9))') solver_name,
'Mass: ', &
164 minval(rhsn(cv_mixt_dens,1:pgrid%nCells)), &
165 maxval(rhsn(cv_mixt_dens,1:pgrid%nCells)), &
166 loc(cv_mixt_dens,min_val),loc(cv_mixt_dens,max_val)
167 WRITE(stdout,
'(A,3X,A,2(1X,E15.8),2(1X,I9))') solver_name,
'X-momentum:', &
168 minval(rhsn(cv_mixt_xvel,1:pgrid%nCells)), &
169 maxval(rhsn(cv_mixt_xvel,1:pgrid%nCells)), &
170 loc(cv_mixt_xvel,min_val),loc(cv_mixt_xvel,max_val)
171 WRITE(stdout,
'(A,3X,A,2(1X,E15.8),2(1X,I9))') solver_name,
'Y-momentum:', &
172 minval(rhsn(cv_mixt_yvel,1:pgrid%nCells)), &
173 maxval(rhsn(cv_mixt_yvel,1:pgrid%nCells)), &
174 loc(cv_mixt_yvel,min_val),loc(cv_mixt_yvel,max_val)
175 WRITE(stdout,
'(A,3X,A,2(1X,E15.8),2(1X,I9))') solver_name,
'Z-momentum:', &
176 minval(rhsn(cv_mixt_zvel,1:pgrid%nCells)), &
177 maxval(rhsn(cv_mixt_zvel,1:pgrid%nCells)), &
178 loc(cv_mixt_zvel,min_val),loc(cv_mixt_zvel,max_val)
179 WRITE(stdout,
'(A,3X,A,2(1X,E15.8),2(1X,I9))') solver_name,
'Energy: ', &
180 minval(rhsn(cv_mixt_ener,1:pgrid%nCells)), &
181 maxval(rhsn(cv_mixt_ener,1:pgrid%nCells)), &
182 loc(cv_mixt_ener,min_val),loc(cv_mixt_ener,max_val)
188 IF ( global%verbLevel /= verbose_none )
THEN
190 locinfo_mode_silent,output_mode_master_only)
197 DEALLOCATE(rhsn,stat=errorflag)
198 global%error = errorflag
199 IF ( global%error /= 0 )
THEN
200 CALL
errorstop(global,err_allocate,__line__,
'rhsn')
203 IF ( global%verbLevel > verbose_none )
THEN
204 WRITE(stdout,
'(A,1X,A)') solver_name,
'Printing relative change '// &
subroutine registerfunction(global, funName, fileName)
**********************************************************************Rocstar Simulation Suite Illinois Rocstar LLC All rights reserved ****Illinois Rocstar LLC IL **www illinoisrocstar com **sales illinoisrocstar com WITHOUT WARRANTY OF ANY **EXPRESS OR INCLUDING BUT NOT LIMITED TO THE WARRANTIES **OF FITNESS FOR A PARTICULAR PURPOSE AND **NONINFRINGEMENT IN NO EVENT SHALL THE CONTRIBUTORS OR **COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER WHETHER IN AN ACTION OF TORT OR **Arising OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE **USE OR OTHER DEALINGS WITH THE SOFTWARE **********************************************************************INTERFACE SUBROUTINE ic
subroutine rflu_printlocinfo(pRegion, locUnsorted, nLocUnsorted, locInfoMode, outputMode)
subroutine rflu_printchangeinfo(pRegion)
subroutine errorstop(global, errorCode, errorLine, addMessage)
subroutine deregisterfunction(global)