Ignore:
Timestamp:
06/01/12 17:26:03 (13 years ago)
Author:
Mathieu Morlighem
Message:

merged trunk-jpl and trunk for revision 12326M

File:
1 edited

Legend:

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

    r10703 r12330  
    3737
    3838        /*Broadcast whether we found the element: */
     39        #ifdef _HAVE_MPI_
    3940        MPI_Allreduce ( &found,&sumfound,1,MPI_INT,MPI_SUM,MPI_COMM_WORLD);
    4041        if(!sumfound)_error_("%s%i%s","could not find material with id",index," to compute ElementResponse");
     42        #endif
    4143
    4244        /*Ok, we found the element, compute responseocity: */
     
    4648
    4749        /*Broadcast and plug into response: */
     50        #ifdef _HAVE_MPI_
    4851        MPI_Allreduce ( &cpu_found,&cpu_found,1,MPI_INT,MPI_MAX,MPI_COMM_WORLD);
    4952        MPI_Bcast(&response,1,MPI_DOUBLE,cpu_found,MPI_COMM_WORLD);
     53        #endif
    5054
    5155        *presponse=response;
Note: See TracChangeset for help on using the changeset viewer.