Commit b995161d authored by Gaurav Kukreja's avatar Gaurav Kukreja

Removed Debug Prints

Signed-off-by: 's avatarGaurav Kukreja <gmkukreja@gmail.com>
parent 4bcb6a60
......@@ -430,8 +430,6 @@ SWE_WavePropagationBlock::computeNumericalFluxes_innerBlock ()
for (i = 2; i < nx; i++) {
j;
//std::cout << __FILE__ << ": " << __LINE__ << endl;
#if WAVE_PROPAGATION_SOLVER==4 and defined VECTORIZE
// Vectorization is currently only possible for the FWaveVec solver
// Vectorize the inner loop
......@@ -492,8 +490,6 @@ SWE_WavePropagationBlock::computeNumericalFluxes_innerBlock ()
//assert (j = ny + 2);
}
std::cout << __FILE__ << ": " << __LINE__ << endl;
// vvvvv GKUKREJA : Fusing the loops for horizontal and vertical edges, adding this one extra iteration to avoid if looping.
{
......@@ -511,8 +507,6 @@ SWE_WavePropagationBlock::computeNumericalFluxes_innerBlock ()
for (j = 2; j < end_ny_1_1; ++j) {
float maxEdgeSpeed;
std::cout << __FILE__ << ": " << __LINE__ << endl;
wavePropagationSolver.computeNetUpdates (
h[i - 1][j], h[i][j],
hu[i - 1][j], hu[i][j],
......@@ -522,8 +516,6 @@ SWE_WavePropagationBlock::computeNumericalFluxes_innerBlock ()
maxEdgeSpeed
);
std::cout << __FILE__ << ": " << __LINE__ << endl;
#ifdef LOOP_OPENMP
//update the thread-local maximum wave speed
l_maxWaveSpeed = std::max (l_maxWaveSpeed, maxEdgeSpeed);
......@@ -570,8 +562,6 @@ SWE_WavePropagationBlock::computeNumericalFluxes_innerBlock ()
time_needed += clock() - time_begin;
#endif
#endif
std::cout << __FILE__ << ": " << __LINE__ << endl;
}
/**
......@@ -598,8 +588,6 @@ SWE_WavePropagationBlock::computeNumericalFluxes_borders ()
const int end_ny_1_1 = ny + 1;
const int end_ny_1_2 = ny + 2;
std::cout << __FILE__ << ": " << __LINE__ << endl;
#ifdef LOOP_OPENMP
#pragma omp parallel
#endif
......@@ -770,8 +758,6 @@ SWE_WavePropagationBlock::computeNumericalFluxes_borders ()
maxEdgeSpeed
);
std::cout << __FILE__ << ": " << __LINE__ << endl;
wavePropagationSolver.computeNetUpdates (
h[i][end_ny_1_2 - 2], h[i][end_ny_1_2 - 1],
hv[i][end_ny_1_2 - 2], hv[i][end_ny_1_2 - 1],
......@@ -781,8 +767,6 @@ SWE_WavePropagationBlock::computeNumericalFluxes_borders ()
maxEdgeSpeed
);
std::cout << __FILE__ << ": " << __LINE__ << endl;
#ifdef LOOP_OPENMP
//update the thread-local maximum wave speed
l_maxWaveSpeed = std::max (l_maxWaveSpeed, maxEdgeSpeed);
......@@ -827,8 +811,6 @@ SWE_WavePropagationBlock::computeNumericalFluxes_borders ()
time_needed += clock() - time_begin;
#endif
#endif
std::cout << __FILE__ << ": " << __LINE__ << endl;
}
/**
......
......@@ -394,8 +394,6 @@ int main( int argc, char** argv ) {
l_topNeighborRank, l_topInflow, l_topOutflow,
l_mpiRow );
std::cout << "Exchanged Ghost Layers Initially\n";
// Init fancy progressbar
tools::ProgressBar progressBar(l_endSimulation, l_mpiRank);
......@@ -473,18 +471,12 @@ int main( int argc, char** argv ) {
// compute numerical flux for inner edge
l_wavePropgationBlock.computeNumericalFluxes_innerBlock(); // Only Inner Block
std::cout << __FILE__ << ": " << __LINE__ << endl;
// checking if the borders have been exchanged
MPI_Wait(l_request, &status);
std::cout << __FILE__ << ": " << __LINE__ << endl;
// compute numerical flux for the blocks
l_wavePropgationBlock.computeNumericalFluxes_borders(); // Only Borders
std::cout << __FILE__ << ": " << __LINE__ << endl;
//! maximum allowed time step width within a block.
float l_maxTimeStepWidth = l_wavePropgationBlock.getMaxTimestep();
......
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