Revision: | 891 |
Committed: | Fri Dec 19 20:36:35 2003 UTC (21 years, 4 months ago) by mmeineke |
File size: | 384 byte(s) |
Log Message: | More profiling fixes. |
# | User | Rev | Content |
---|---|---|---|
1 | mmeineke | 891 | subroutine getTimes(forceTime,commTime) |
2 | use do_Forces | ||
3 | #ifdef IS_MPI | ||
4 | use mpiSimulation | ||
5 | #endif | ||
6 | implicit none | ||
7 | |||
8 | real :: forceTime | ||
9 | real :: commTime | ||
10 | #ifdef PROFILE | ||
11 | forceTime = getForceTime() | ||
12 | |||
13 | #ifdef IS_MPI | ||
14 | commTime = getCommTime() | ||
15 | #else | ||
16 | commTime = 0.0 | ||
17 | #endif | ||
18 | |||
19 | #else | ||
20 | forceTime = 0.0 | ||
21 | commTime = 0.0 | ||
22 | #endif | ||
23 | |||
24 | end subroutine getTimes |