Changeset 5835


Ignore:
Timestamp:
09/15/10 22:19:15 (15 years ago)
Author:
Eric.Larour
Message:

Fixed serious bug, not found by Valgrind. MPI_DOUBLE instead of MPI_INT
in MPI_Bcast call, and equivalents! Sa race!!!!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/modules/PenaltyConstraintsx/RiftConstraints.cpp

    r5420 r5835  
    135135        /*Is there just one found? that would mean we have frozen! : */
    136136        #ifdef _PARALLEL_
    137         MPI_Reduce (&found,&mpi_found,1,MPI_DOUBLE,MPI_MAX,0,MPI_COMM_WORLD );
    138         MPI_Bcast(&mpi_found,1,MPI_DOUBLE,0,MPI_COMM_WORLD);               
     137        MPI_Reduce (&found,&mpi_found,1,MPI_INT,MPI_MAX,0,MPI_COMM_WORLD );
     138        MPI_Bcast(&mpi_found,1,MPI_INT,0,MPI_COMM_WORLD);               
    139139        found=mpi_found;
    140140        #endif
     
    329329
    330330        #ifdef _PARALLEL_
    331         MPI_Reduce (&max_penetration,&mpi_max_penetration,1,MPI_DOUBLE,MPI_MAX,0,MPI_COMM_WORLD );
    332         MPI_Bcast(&mpi_max_penetration,1,MPI_DOUBLE,0,MPI_COMM_WORLD);               
     331        MPI_Reduce (&max_penetration,&mpi_max_penetration,1,MPI_INT,MPI_MAX,0,MPI_COMM_WORLD );
     332        MPI_Bcast(&mpi_max_penetration,1,MPI_INT,0,MPI_COMM_WORLD);               
    333333        max_penetration=mpi_max_penetration;
    334334        #endif
Note: See TracChangeset for help on using the changeset viewer.