Changeset 12855


Ignore:
Timestamp:
08/01/12 15:34:35 (13 years ago)
Author:
Eric.Larour
Message:

BUG: fixed issue with segfault in SolverxPetsc.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/modules/Solverx/SolverxPetsc.cpp

    r12850 r12855  
    1717
    1818        PetscVec* uf=new PetscVec();
    19         SolverxPetsc(&uf->vector, Kff->matrix, pf->vector, uf0->vector, df->vector, parameters);
     19
     20        Vec uf0_vector = NULL;
     21        Vec df_vector  = NULL;
     22       
     23        if(uf0) uf0_vector = uf0->vector;
     24        if(df)  df_vector  = df->vector;
     25
     26        SolverxPetsc(&uf->vector, Kff->matrix, pf->vector, uf0_vector, df_vector, parameters);
     27
    2028        *puf=uf;
    2129
Note: See TracChangeset for help on using the changeset viewer.