Changeset 14873


Ignore:
Timestamp:
05/03/13 15:50:51 (12 years ago)
Author:
Eric.Larour
Message:

CHG: switched to non symmetric + checks on 0 sized memory allocation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/toolkits/mumps/MpiDenseMumpsSolve.cpp

    r14864 r14873  
    6161        id.job          = JOB_INIT;
    6262        id.par          = 1; 
    63         id.sym          = 1;
     63        id.sym          = 0;
    6464        id.comm_fortran = MPI_Comm_c2f(comm);
    6565        dmumps_c(&id);
     
    9292        id.nz_loc=local_nnz;
    9393
     94
    9495        /*Allocate: */
    95         irn_loc=xNew<int>(local_nnz);
    96         jcn_loc=xNew<int>(local_nnz);
    97         a_loc=xNew<IssmDouble>(local_nnz);
    98 
     96        if(local_nnz){
     97                irn_loc=xNew<int>(local_nnz);
     98                jcn_loc=xNew<int>(local_nnz);
     99                a_loc=xNew<IssmDouble>(local_nnz);
     100        }
     101       
    99102        /*Populate the triplets: */
    100103        GetOwnershipBoundariesFromRange(&lower_row,&upper_row,Kff_m,comm);
Note: See TracChangeset for help on using the changeset viewer.