Changeset 14668


Ignore:
Timestamp:
04/19/13 14:58:30 (12 years ago)
Author:
Eric.Larour
Message:

CHG: fixing segfault in initializitation of duplicate vectors

Location:
issm/trunk-jpl/src/c/classes/matrix
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/classes/matrix/Matrix.h

    r14656 r14668  
    265265                /*}}}*/
    266266                /*FUNCTION Duplicate{{{*/
    267                 Matrix* Duplicate(void){
    268 
    269                         Matrix* output=new Matrix();
     267                Matrix<doubletype>* Duplicate(void){
     268
     269                        Matrix<doubletype>* output=new Matrix<doubletype>();
    270270
    271271                        if(type==PetscMatType){
  • issm/trunk-jpl/src/c/classes/matrix/Vector.h

    r14656 r14668  
    225225                /*}}}*/
    226226                /*FUNCTION Duplicate{{{*/
    227                 Vector* Duplicate(void){_assert_(this);
    228 
    229                         Vector* output=NULL;
     227                Vector<doubletype>* Duplicate(void){_assert_(this);
     228
     229                        Vector<doubletype>* output=NULL;
    230230                               
    231                         output=new Vector();
     231                        output=new Vector<doubletype>();
    232232
    233233                        if(type==PetscVecType){
Note: See TracChangeset for help on using the changeset viewer.