Changeset 12109


Ignore:
Timestamp:
04/23/12 14:57:09 (13 years ago)
Author:
Mathieu Morlighem
Message:

Fixed bug introduced while stripping MPI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/Container/Nodes.cpp

    r12108 r12109  
    123123                }
    124124        }
    125         #ifdef _HAVE_MPI_
    126         MPI_Allreduce ( (void*)truedofs,(void*)alltruedofs,numnodes*maxdofspernode,MPI_INT,MPI_MAX,MPI_COMM_WORLD);
     125
     126        #ifdef _HAVE_MPI_
     127        MPI_Allreduce((void*)truedofs,(void*)alltruedofs,numnodes*maxdofspernode,MPI_INT,MPI_MAX,MPI_COMM_WORLD);
    127128        #else
    128129        for(i=0;i<numnodes*maxdofspernode;i++)alltruedofs[i]=truedofs[i];
     
    153154        int  numnodes;
    154155
    155 
    156156        /*Figure out number of nodes for this analysis: */
    157157        numnodes=this->NumberOfNodes(analysis_type);
     
    219219        #ifdef _HAVE_MPI_
    220220        MPI_Allreduce ( (void*)&max,(void*)&allmax,1,MPI_INT,MPI_MAX,MPI_COMM_WORLD);
     221        max=allmax;
    221222        #endif
    222223
Note: See TracChangeset for help on using the changeset viewer.