-
Notifications
You must be signed in to change notification settings - Fork 50
Open
Description
The function that currently resides in sts1.f looks like
subroutine initTimers()
use amr_module
!implicit double precision (a-h,o-z)
timeBufnst = 0
timeStepgrid = 0
timeStepgridCPU = 0.d0
timeBound = 0
timeBoundCPU = 0.d0
timeGrdfitAll = 0
timeFlagger = 0
timeFlglvl = 0
timeFlglvlTot = 0
timeGrdfit2 = 0
timeRegridding = 0
timeRegriddingCPU = 0.d0
timeTick = 0
timeTickCPU = 0.d0
timeSetaux = 0.d0
timeSetauxCPU = 0.d0
timeUpdating = 0
timeValout = 0
timeValoutCPU = 0.d0
return
endwhere these variables are defined in amr_module.f90 as
integer :: timeRegridding, timeUpdating, timeValout
integer :: timeFlglvl,timeGrdfit2,timeGrdfit3,timeGrdfitAll
integer :: timeSetaux,timeFilval,timeBound,timeStepgrid,timeFilvalTot
integer :: timeFlagger, timeBufnst, timeTick, tick_clock_start
real(kind=8) tvollCPU(maxlv), timeTickCPU
real(kind=8) timeBoundCPU,timeStepgridCPU,timeSetauxCPU,timeRegriddingCPU
real(kind=8) timeValoutCPUThe problematic variables are
timeSetauxis defined as an integer and initialized as a double. Not entirely bad but not great.timeGrdfit3is defined but not initializedtimeFilvlis defined but not initializedtimeFilvalTotis defined but not initializedtick_clock_startis defined but not initializedtvollCPU(maxlv)is defined but not initializedtimeFlglvlTotis initialized but not definedtimeSetauxis initialized but not defined
My guess is that some of this is not coming up because these are just timing variables or never used but it would be good to clean this up.
Metadata
Metadata
Assignees
Labels
No labels