Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing timer in RtmMod.F90 #289

Closed
worleyph opened this issue Jul 31, 2015 · 4 comments
Closed

missing timer in RtmMod.F90 #289

worleyph opened this issue Jul 31, 2015 · 4 comments
Assignees

Comments

@worleyph
Copy link
Contributor

There is a missing "call t_stopf('rtmi_grid')" that needs to added to the end of the subroutine Rtmini in RtmMod.F90 . This only causes problems when enabling the highest level of performance profiling (which we never do), but I discovered this when testing this option for some of the CIME work. The same error is in the CESM version, btw.

I'd like someone to drop this in next time that RTM is modified, or as part of some other pull request. It is not a productive use of anyone's time to do a pull request just for this bug fix. I can help with putting in the fix and describing how to test it.

@worleyph
Copy link
Contributor Author

Still needs to be fixed.

@bishtgautam
Copy link
Contributor

How does one enable "the highest level of performance profiling"? In other words, how can I make sure the fix that I add is correct?

@worleyph
Copy link
Contributor Author

You can add

profile_detail_limit = 10

to user_nl_cpl. Let me check this again, and I'll tell you exactly where to put it.

@worleyph
Copy link
Contributor Author

Okay, the fix is to add

     call t_stopf('rtmi_grid')

at line 430 in ./components/rtm/src/riverroute/RtmMod.F90, as in

 ...
     if (masterproc) then
        write(iulog,*)'RTM netcdf river direction file successfully read '
        call shr_sys_flush(iulog)
     endif

     call t_stopf('rtmi_grid')

     !-------------------------------------------------------
     ! Set dwnstrm_index from rdirc values
     !-------------------------------------------------------
 ...

If you then run with

 profile_detail_limit = 10

in user_nl_cpl the timing output file (./timing/XXX.stats) should indicate something like

 rtmi_grid                                    164      164 1.640000e+02   3.014999e+01 ...

in contrast to the current output of

 rtmi_grid                                      0        0 0.000000e+00   0.000000e+00     ...

There are other indicators as well, including at the end of the run, the original will indicate that the rtmi_grid timer was never stopped.

I can send you the udpated file as well, if you wish.

bishtgautam pushed a commit that referenced this issue Jan 14, 2016
Corrects the timers for ALM and RTM

Fixes #289 #483

[BFB]

Conflicts:
	components/rtm/src/riverroute/RtmMod.F90
bishtgautam pushed a commit that referenced this issue Jan 14, 2016
Corrects the timers for ALM and RTM

Fixes #289 #483

[BFB]

Conflicts:
	components/rtm/src/riverroute/RtmMod.F90
rljacob pushed a commit that referenced this issue May 6, 2021
jonbob pushed a commit that referenced this issue Jun 22, 2021
This PR is an accumulation of PRs into the ocean/coastal branch. We are
bringing them in at once for efficiency:
 #285, #289, #284, #295, #310, #311, #312, #335, #354, #356, #358, #359,
 #365, #371
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants