Skip to content
Snippets Groups Projects
Commit 2f6bbcfb authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

output detailed multi-thread performance data only with "timer full"

parent 2686b7f8
No related branches found
No related tags found
No related merge requests found
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include "citeme.h" #include "citeme.h"
#include "memory.h" #include "memory.h"
#include "error.h" #include "error.h"
#include "timer.h"
#include "reaxc_types.h" #include "reaxc_types.h"
#include "reaxc_allocate.h" #include "reaxc_allocate.h"
...@@ -95,7 +96,7 @@ PairReaxCOMP::~PairReaxCOMP() ...@@ -95,7 +96,7 @@ PairReaxCOMP::~PairReaxCOMP()
MPI_Comm_rank(mpi_data->world,&myrank); MPI_Comm_rank(mpi_data->world,&myrank);
// Write screen output // Write screen output
if (myrank == 0 && screen) { if (timer->has_full() && myrank == 0 && screen) {
fprintf(screen,"\n\nWrite_Lists took %11.3lf seconds", ompTimingData[COMPUTEWLINDEX]); fprintf(screen,"\n\nWrite_Lists took %11.3lf seconds", ompTimingData[COMPUTEWLINDEX]);
fprintf(screen,"\n\nCompute_Forces took %11.3lf seconds:", ompTimingData[COMPUTEINDEX]); fprintf(screen,"\n\nCompute_Forces took %11.3lf seconds:", ompTimingData[COMPUTEINDEX]);
...@@ -121,7 +122,7 @@ PairReaxCOMP::~PairReaxCOMP() ...@@ -121,7 +122,7 @@ PairReaxCOMP::~PairReaxCOMP()
} }
// Write logfile output // Write logfile output
if (myrank == 0 && logfile) { if (timer->has_full() && myrank == 0 && logfile) {
fprintf(logfile,"\n\nWrite_Lists took %11.3lf seconds", ompTimingData[COMPUTEWLINDEX]); fprintf(logfile,"\n\nWrite_Lists took %11.3lf seconds", ompTimingData[COMPUTEWLINDEX]);
fprintf(logfile,"\n\nCompute_Forces took %11.3lf seconds:", ompTimingData[COMPUTEINDEX]); fprintf(logfile,"\n\nCompute_Forces took %11.3lf seconds:", ompTimingData[COMPUTEINDEX]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment