Changeset 28260


Ignore:
Timestamp:
05/07/24 10:53:53 (11 months ago)
Author:
Mathieu Morlighem
Message:

BUG: minor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/toolkits/issm/IssmMpiVec.h

    r28259 r28260  
    596596                        doubletype sum;
    597597
    598                         for(int i=0;i<this->m;i++) local_value+=this->vector[i];
     598                        for(int i=0;i<this->m;i++) local_sum+=this->vector[i];
    599599                        ISSM_MPI_Reduce(&local_sum, &sum, 1, ISSM_MPI_DOUBLE, ISSM_MPI_SUM, 0, IssmComm::GetComm());
    600600                        ISSM_MPI_Bcast(&sum,1,ISSM_MPI_DOUBLE,0,IssmComm::GetComm());
Note: See TracChangeset for help on using the changeset viewer.