Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Added profiling preprocessor flags and a bit of test code
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Mar 24, 2023
1 parent 622502d commit 36fa56c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,6 @@ ENDIF()

IF(BT STREQUAL "DEBUG")
ADD_DEFINITIONS(-DDEBUG)
ENDIF()

ELSEIF(BT STREQUAL "PROFILE")
ADD_DEFINITIONS(-DPROFILE)
ENDIF()
4 changes: 3 additions & 1 deletion src/swiftest/swiftest_kick.f90
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ module subroutine swiftest_kick_getacch_int_pl(self, param)
class(swiftest_parameters), intent(inout) :: param !! Current swiftest run configuration parameters
! Internals
logical, save :: lfirst = .true.

#ifdef PROFILE
type(walltimer), save :: timer
#endif

if (param%lflatten_interactions) then
if (param%lclose) then
Expand Down

0 comments on commit 36fa56c

Please sign in to comment.