Skip to content

Commit

Permalink
Adding performance timer to CommunicationTranspose for tracking commu…
Browse files Browse the repository at this point in the history
…nication between nodes.

--HG--
branch : week-of-code
  • Loading branch information
Cameron Hummels committed Apr 10, 2013
1 parent 91c42a8 commit d8321fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/enzo/CommunicationTranspose.C
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include "mpi.h"
#endif /* USE_MPI */

#include "EnzoTiming.h"
#include <stdio.h>
#include "ErrorExceptions.h"
#include "macros_and_parameters.h"
Expand Down Expand Up @@ -73,6 +74,7 @@ int CommunicationTranspose(region *FromRegion, int NumberOfFromRegions,
region *ToRegion, int NumberOfToRegions,
int TransposeOrder)
{
TIMER_START("CommunicationTranspose");
int retval;
switch (UnigridTranspose) {
case 0:
Expand All @@ -93,6 +95,7 @@ int CommunicationTranspose(region *FromRegion, int NumberOfFromRegions,
default:
ENZO_VFAIL("Invalid value for UnigridTranspose = %d", UnigridTranspose);
} // ENDSWITCH
TIMER_STOP("CommunicationTranspose");
return retval;
}

Expand Down

0 comments on commit d8321fc

Please sign in to comment.