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

This commit is contained in:
Axel Kohlmeyer
2017-06-09 15:11:40 -04:00
parent 2686b7f830
commit 2f6bbcfbbc

View File

@ -33,6 +33,7 @@
#include "citeme.h"
#include "memory.h"
#include "error.h"
#include "timer.h"
#include "reaxc_types.h"
#include "reaxc_allocate.h"
@ -95,7 +96,7 @@ PairReaxCOMP::~PairReaxCOMP()
MPI_Comm_rank(mpi_data->world,&myrank);
// 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\nCompute_Forces took %11.3lf seconds:", ompTimingData[COMPUTEINDEX]);
@ -121,7 +122,7 @@ PairReaxCOMP::~PairReaxCOMP()
}
// 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\nCompute_Forces took %11.3lf seconds:", ompTimingData[COMPUTEINDEX]);