Changeset 15251


Ignore:
Timestamp:
06/13/13 09:16:56 (12 years ago)
Author:
Mathieu Morlighem
Message:

CHG: minor, need to reduce and broadcast counter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/FemModel.cpp

    r15250 r15251  
    16311631        }
    16321632        xDelete<IssmDouble>(serial_active);
     1633        #ifdef _HAVE_MPI_
     1634        int sum_counter;
     1635        MPI_Reduce(&counter,&sum_counter,1,MPI_INT,MPI_SUM,0,IssmComm::GetComm() );
     1636        MPI_Bcast(&sum_counter,1,MPI_INT,0,IssmComm::GetComm());               
     1637        counter=sum_counter;
     1638        #endif
    16331639        if(VerboseSolution()) _printf0_("   Number of active nodes in EPL layer: "<< counter <<"\n");
    16341640
Note: See TracChangeset for help on using the changeset viewer.