Ignore:
Timestamp:
12/13/17 15:12:08 (4 years ago)
Author:
yushan
Message:

unify type : MPI_Request

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XIOS/dev/branch_openmp/extern/src_ep_dev/ep_type.cpp

    r1373 r1374  
    6767  } 
    6868   
    69   MPI_Request::MPI_Request(int* request) 
     69  MPI_Request::MPI_Request(void* request) 
    7070  { 
    71     //mpi_request = request; 
    72     mpi_request = new int; 
    73     *mpi_request = *request; 
    74   } 
    75    
    76 //  MPI_Request::MPI_Request(void* request) 
    77 //  { 
    78 //    //mpi_request = request; 
    79 //    mpi_request = new int; 
    80 //    static_cast< ::MPI_Request>(*mpi_request) = *(static_cast< ::MPI_Request*>(request); 
    81 //  } 
    82    
    83   MPI_Request::MPI_Request() 
    84   { 
    85     //mpi_request = request; 
    86     mpi_request = new int; 
    87     //*(static_cast< ::MPI_Request*>(mpi_request)) = *(static_cast< ::MPI_Request*>(request)); 
     71    mpi_request = new ::MPI_Request; 
     72    *(static_cast< ::MPI_Request*>(mpi_request)) = *static_cast< ::MPI_Request*>(request); 
    8873  } 
    8974   
Note: See TracChangeset for help on using the changeset viewer.