Commit 3b5dc2fd authored by Sebastian Eibl's avatar Sebastian Eibl

[BUGFIX] fixed broken SQL output

parent 34b71db9
Pipeline #15939 failed with stages
in 196 minutes and 54 seconds
......@@ -329,38 +329,34 @@ int main( int argc, char ** argv )
SNN(*ps, domain);
if (bBarrier) WALBERLA_MPI_BARRIER();
tp["SNN"].end();
// if( i % 100 == 0 )
// {
// WALBERLA_LOG_DEVEL_ON_ROOT( "Timestep " << i << " / " << simulationSteps );
// SNNBytesSent = SNN.getBytesSent();
// SNNBytesReceived = SNN.getBytesReceived();
// SNNSends = SNN.getNumberOfSends();
// SNNReceives = SNN.getNumberOfReceives();
// RPBytesSent = RP.getBytesSent();
// RPBytesReceived = RP.getBytesReceived();
// RPSends = RP.getNumberOfSends();
// RPReceives = RP.getNumberOfReceives();
// walberla::mpi::reduceInplace(SNNBytesSent, walberla::mpi::SUM);
// walberla::mpi::reduceInplace(SNNBytesReceived, walberla::mpi::SUM);
// walberla::mpi::reduceInplace(SNNSends, walberla::mpi::SUM);
// walberla::mpi::reduceInplace(SNNReceives, walberla::mpi::SUM);
// walberla::mpi::reduceInplace(RPBytesSent, walberla::mpi::SUM);
// walberla::mpi::reduceInplace(RPBytesReceived, walberla::mpi::SUM);
// walberla::mpi::reduceInplace(RPSends, walberla::mpi::SUM);
// walberla::mpi::reduceInplace(RPReceives, walberla::mpi::SUM);
// auto cC = walberla::mpi::reduce(contactsChecked, walberla::mpi::SUM);
// auto cD = walberla::mpi::reduce(contactsDetected, walberla::mpi::SUM);
// auto cT = walberla::mpi::reduce(contactsTreated, walberla::mpi::SUM);
// WALBERLA_LOG_DEVEL_ON_ROOT( "SNN bytes communicated: " << SNNBytesSent << " / " << SNNBytesReceived );
// WALBERLA_LOG_DEVEL_ON_ROOT( "SNN communication partners: " << SNNSends << " / " << SNNReceives );
// WALBERLA_LOG_DEVEL_ON_ROOT( "RP bytes communicated: " << RPBytesSent << " / " << RPBytesReceived );
// WALBERLA_LOG_DEVEL_ON_ROOT( "RP communication partners: " << RPSends << " / " << RPReceives );
// WALBERLA_LOG_DEVEL_ON_ROOT( "contacts checked/detected/treated: " << cC << " / " << cD << " / " << cT );
// }
}
timer.end();
SNNBytesSent = SNN.getBytesSent();
SNNBytesReceived = SNN.getBytesReceived();
SNNSends = SNN.getNumberOfSends();
SNNReceives = SNN.getNumberOfReceives();
RPBytesSent = RP.getBytesSent();
RPBytesReceived = RP.getBytesReceived();
RPSends = RP.getNumberOfSends();
RPReceives = RP.getNumberOfReceives();
walberla::mpi::reduceInplace(SNNBytesSent, walberla::mpi::SUM);
walberla::mpi::reduceInplace(SNNBytesReceived, walberla::mpi::SUM);
walberla::mpi::reduceInplace(SNNSends, walberla::mpi::SUM);
walberla::mpi::reduceInplace(SNNReceives, walberla::mpi::SUM);
walberla::mpi::reduceInplace(RPBytesSent, walberla::mpi::SUM);
walberla::mpi::reduceInplace(RPBytesReceived, walberla::mpi::SUM);
walberla::mpi::reduceInplace(RPSends, walberla::mpi::SUM);
walberla::mpi::reduceInplace(RPReceives, walberla::mpi::SUM);
auto cC = walberla::mpi::reduce(contactsChecked, walberla::mpi::SUM);
auto cD = walberla::mpi::reduce(contactsDetected, walberla::mpi::SUM);
auto cT = walberla::mpi::reduce(contactsTreated, walberla::mpi::SUM);
WALBERLA_LOG_DEVEL_ON_ROOT( "SNN bytes communicated: " << SNNBytesSent << " / " << SNNBytesReceived );
WALBERLA_LOG_DEVEL_ON_ROOT( "SNN communication partners: " << SNNSends << " / " << SNNReceives );
WALBERLA_LOG_DEVEL_ON_ROOT( "RP bytes communicated: " << RPBytesSent << " / " << RPBytesReceived );
WALBERLA_LOG_DEVEL_ON_ROOT( "RP communication partners: " << RPSends << " / " << RPReceives );
WALBERLA_LOG_DEVEL_ON_ROOT( "contacts checked/detected/treated: " << cC << " / " << cD << " / " << cT );
auto timer_reduced = walberla::timing::getReduced(timer, REDUCE_TOTAL, 0);
double PUpS = 0.0;
WALBERLA_ROOT_SECTION()
......
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