Changeset 5870


Ignore:
Timestamp:
09/17/10 15:34:14 (15 years ago)
Author:
jschierm
Message:

Fix MaxAbsVxx to return MPI_MAX across cluster (and fix comments).

File:
1 edited

Legend:

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

    r5414 r5870  
    1919        for(i=0;i<elements->Size();i++){
    2020                Element* element=(Element*)elements->GetObjectByOffset(i);
    21                 element->MaxAbsVx(&element_maxabsvx,process_units); //go pick up the minimum velocity in the inputs
     21                element->MaxAbsVx(&element_maxabsvx,process_units); //go pick up the maximum velocity in the inputs
    2222       
    2323                if(i==0)maxabsvx=element_maxabsvx; //initialize maxabsvx
     
    3232
    3333        #ifdef _PARALLEL_
    34         /*Figure out minimum across the cluster: */
    35         MPI_Reduce (&maxabsvx,&node_maxabsvx,1,MPI_DOUBLE,MPI_MIN,0,MPI_COMM_WORLD );
     34        /*Figure out maximum across the cluster: */
     35        MPI_Reduce (&maxabsvx,&node_maxabsvx,1,MPI_DOUBLE,MPI_MAX,0,MPI_COMM_WORLD );
    3636        MPI_Bcast(&node_maxabsvx,1,MPI_DOUBLE,0,MPI_COMM_WORLD);   
    3737        maxabsvx=node_maxabsvx;
Note: See TracChangeset for help on using the changeset viewer.