Ignore:
Timestamp:
02/10/10 10:18:23 (15 years ago)
Author:
Eric.Larour
Message:

Test: testing mpi bug

Location:
issm/trunk/src/mex/Test
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/mex/Test/Test.cpp

    r1 r2994  
    77void mexFunction( int nlhs, mxArray* plhs[], int nrhs, const mxArray* prhs[]){
    88
    9         /*diverse: */
    10         int   noerr=1;
     9        MODULEBOOT();
     10        //MPI_Init(NULL,NULL);
     11        MODULEEND();
    1112
    12         /*Boot module: */
    13         MODULEBOOT();
    14 
    15         /*checks on arguments on the matlab side: */
    16         CheckNumMatlabArguments(nlhs,NLHS,nrhs,NRHS,__FUNCT__,&TestUsage);
    17 
    18         double* pr=mxGetPr(prhs[0]);
    19         int M=mxGetM(prhs[0]);
    20         int N=mxGetM(prhs[0]);
    21         mwIndex* ir=mxGetIr(prhs[0]);
    22         mwIndex* jc=mxGetJc(prhs[0]);
    23         int     nzmax=(int)mxGetNzmax(prhs[0]);
    24 
    25         int i;
    26         printf("nzmax %i\n",nzmax);
    27         printf("jc:\n");
    28         for(i=0;i<N+1;i++){
    29                 printf("%i\n",jc[i]);
    30         }
    31         printf("ir vale:\n");
    32         for(i=0;i<nzmax;i++){
    33                 printf("%i %g\n",ir[i],pr[i]);
    34         }       
    35 
    36 
    37         /*end module: */
    38         MODULEEND();
    3913}
    4014
Note: See TracChangeset for help on using the changeset viewer.