Commit f3277b9a authored by Alexandru Dura's avatar Alexandru Dura

Disable noisy debug printouts

parent e29a8b84
......@@ -269,8 +269,8 @@ int main(int argc, char **argv) {
MPI_Wait(&gatherNorm, MPI_STATUS_IGNORE);
if (rank == 0) {
double resNorm = std::sqrt(gatherResNorm2);
// printf("Norm of the residual: %f\n", std::sqrt(gatherResNorm2));
printf("%d,%d,%f,%f,%f,%f,%f\n", nsize, nOMPThreads, globalTimer.read(),
printf("%d,%d,%d,%f,%f,%f,%f,%f\n", config.maxiter, nsize, nOMPThreads, globalTimer.read(),
mainIterTime, calcTime, haloExchangeTime, resNorm);
}
......
......@@ -16,7 +16,7 @@ diffusion-debug : Main.cpp $(CPP_SOURCE_FILES) $(HEADER_FILES)
$(CXX) $(MPIFLAGS) $(CXX_FLAGS) -O0 -g -Wall Main.cpp $(CPP_SOURCE_FILES) $(MPI_LD_FLAGS) -o $@
diffusion : Main.cpp $(CPP_SOURCE_FILES) $(HEADER_FILES)
$(CXX) $(MPIFLAGS) $(CXX_FLAGS) -O3 Main.cpp $(CPP_SOURCE_FILES) $(MPI_LD_FLAGS) -o $@
$(CXX) -DNDEBUG $(MPIFLAGS) $(CXX_FLAGS) -O3 Main.cpp $(CPP_SOURCE_FILES) $(MPI_LD_FLAGS) -o $@
test : Test.cpp $(CPP_SOURCE_FILES) $(HEADER_FILES)
$(CXX) -g -O0 Test.cpp $(CPP_SOURCE_FILES) -o $@
......
......@@ -19,7 +19,9 @@ void read_param(const char *paramFile, int* pxdim, int* pydim, double* pcx, doub
fprintf(stderr, "unable to read xdim and ydim from diffusion.in\n");
exit(1);
}
#ifndef NDEBUG
printf("Read xdim=%d ydim=%d\n", *pxdim, *pydim);
#endif
// read cx and cy
nb_read = fscanf(fp, "%lf %lf \n", pcx, pcy);
......@@ -28,7 +30,9 @@ void read_param(const char *paramFile, int* pxdim, int* pydim, double* pcx, doub
fprintf(stderr, "unable to read cx and cy from diffusion.in\n");
exit(1);
}
#ifndef NDEBUG
printf("Read cx=%lf cy=%lf\n", *pcx, *pcy);
#endif
// read iteration count
nb_read = fscanf(fp, "%d \n", pmaxiter);
......@@ -37,7 +41,9 @@ void read_param(const char *paramFile, int* pxdim, int* pydim, double* pcx, doub
fprintf(stderr, "unable to read number of iterations from diffusion.in\n");
exit(1);
}
#ifndef NDEBUG
printf("Read maxiter=%d\n", *pmaxiter);
#endif
fclose(fp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment