X-Git-Url: http://biod.pnpi.spb.ru/gitweb/?a=blobdiff_plain;f=src%2Fgromacs%2Fgmxlib%2Fnetwork.cpp;fp=src%2Fgromacs%2Fgmxlib%2Fnetwork.cpp;h=c089d78ef02e096706387bd91dea7053b39edd29;hb=87823c5ebe2ecab05a07cfdfd5165e53cb07c30d;hp=5ac06a00aeb7eb5b251b9dc024422acae8cc587b;hpb=4fb23a1438393a48312088b77f662c30ac7fbf68;p=alexxy%2Fgromacs.git diff --git a/src/gromacs/gmxlib/network.cpp b/src/gromacs/gmxlib/network.cpp index 5ac06a00ae..c089d78ef0 100644 --- a/src/gromacs/gmxlib/network.cpp +++ b/src/gromacs/gmxlib/network.cpp @@ -40,10 +40,10 @@ #include "config.h" -#include -#include -#include -#include +#include +#include +#include +#include #include "gromacs/legacyheaders/copyrite.h" #include "gromacs/legacyheaders/macros.h" @@ -155,12 +155,12 @@ void gmx_setup_nodecomm(FILE gmx_unused *fplog, t_commrec *cr) nc->bUse = FALSE; #ifndef GMX_THREAD_MPI #ifdef GMX_MPI - int n, rank, nodehash, ng, ni; + int n, rank; MPI_Comm_size(cr->mpi_comm_mygroup, &n); MPI_Comm_rank(cr->mpi_comm_mygroup, &rank); - nodehash = gmx_physicalnode_id_hash(); + int nodehash = gmx_physicalnode_id_hash(); if (debug) { @@ -182,6 +182,8 @@ void gmx_setup_nodecomm(FILE gmx_unused *fplog, t_commrec *cr) */ MPI_Comm_split(cr->mpi_comm_mygroup, nc->rank_intra, rank, &nc->comm_inter); /* Check if this really created two step communication */ + int ng, ni; + MPI_Comm_size(nc->comm_inter, &ng); MPI_Comm_size(nc->comm_intra, &ni); if (debug)