diff --git a/src/tensormatrix_mpi.cpp b/src/tensormatrix_mpi.cpp index 79ea3ddf9b04b079dffcfc621a1c819e2825f7ee..47ba29bbbcf4d66e4eda7b598798362717be228d 100644 --- a/src/tensormatrix_mpi.cpp +++ b/src/tensormatrix_mpi.cpp @@ -69,7 +69,7 @@ int main( int argc, char** argv ){ gi::ex Tseq = 0; double tv_start, tv_para, tv_seq; - int rank; + int rank, size; #ifdef TAUPROF TAU_INIT(&argc, &argv); @@ -210,8 +210,10 @@ int main( int argc, char** argv ){ std::cout << "Tseq=" << Tseq << ";" << std::endl; #endif std::cout.precision( 4 ); - std::cout << "Time: "; - std::cout << "parallel " << ( tv_para - tv_start ) / 1e6 << " "; + MPI_Comm_size( MPI_COMM_WORLD, &size ); + // std::cout << "Time: "; + //std::cout << "parallel " << ( tv_para - tv_start ) / 1e6 << " "; + std::cout << size << "\t" << tostart << "\t" << ( tv_para - tv_start ) / 1e6 << " "; #if DEBUG std::cout << "sequential " << ( tv_seq - tv_para ) / 1e6 << " "; /* this verification does not work, the manual one (copy-paste in ginsh) works */