| Revision: | 892 | 
| Committed: | Mon Dec 22 21:27:04 2003 UTC (21 years, 10 months ago) by chuckv | 
| File size: | 408 byte(s) | 
| Log Message: | Fixes to profile code. | 
| # | User | Rev | Content | 
|---|---|---|---|
| 1 | mmeineke | 891 | subroutine getTimes(forceTime,commTime) | 
| 2 | use do_Forces | ||
| 3 | chuckv | 892 | use definitions, ONLY: dp | 
| 4 | mmeineke | 891 | #ifdef IS_MPI | 
| 5 | use mpiSimulation | ||
| 6 | #endif | ||
| 7 | implicit none | ||
| 8 | |||
| 9 | chuckv | 892 | real(kind=dp) :: forceTime | 
| 10 | real(kind=dp) :: commTime | ||
| 11 | |||
| 12 | forceTime = 0.0 | ||
| 13 | commTime = 0.0 | ||
| 14 | mmeineke | 891 | #ifdef PROFILE | 
| 15 | forceTime = getForceTime() | ||
| 16 | |||
| 17 | #ifdef IS_MPI | ||
| 18 | commTime = getCommTime() | ||
| 19 | #endif | ||
| 20 | #endif | ||
| 21 | |||
| 22 | end subroutine getTimes |