Changeset 22591


Ignore:
Timestamp:
03/21/18 10:16:53 (7 years ago)
Author:
erobo
Message:

CHG: allow adolc to use mumpssolver

File:
1 edited

Legend:

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

    r21615 r22591  
    250250                        for(i=0;i<num_procs;i++){
    251251                                ISSM_MPI_Scatterv( row_indices_forcpu, sendcnts, displs, ISSM_MPI_INT, row_indices_fromcpu[i], numvalues_fromcpu[i], ISSM_MPI_INT, i, comm);
    252                                 ISSM_MPI_Scatterv( values_forcpu, sendcnts, displs, ISSM_MPI_DOUBLE, values_fromcpu[i], numvalues_fromcpu[i], ISSM_MPI_DOUBLE, i, comm);
     252                                ISSM_MPI_Scatterv( values_forcpu, sendcnts, displs, TypeToMPIType<doubletype>(), values_fromcpu[i], numvalues_fromcpu[i], TypeToMPIType<doubletype>(), i, comm);
    253253                                ISSM_MPI_Scatterv( modes_forcpu, sendcnts, displs, ISSM_MPI_INT, modes_fromcpu[i], numvalues_fromcpu[i], ISSM_MPI_INT, i, comm);
    254254                        }
     
    401401                        comm=IssmComm::GetComm();
    402402                        num_procs=IssmComm::GetSize();
     403
    403404
    404405                        /*Allocate: */
     
    424425
    425426                        /*All gather:*/
    426                         ISSM_MPI_Allgatherv(this->vector, this->m, ISSM_MPI_DOUBLE, buffer, recvcounts, displs, ISSM_MPI_DOUBLE,comm);
    427 
     427                        ISSM_MPI_Allgatherv(this->vector, this->m, TypeToMPIType<doubletype>(), buffer, recvcounts, displs, TypeToMPIType<doubletype>(),comm);
    428428                        /*free ressources: */
    429429                        xDelete<int>(recvcounts);
Note: See TracChangeset for help on using the changeset viewer.