Changeset 12558


Ignore:
Timestamp:
06/26/12 11:25:38 (13 years ago)
Author:
utke
Message:

not sure what to do with the amatrix member ...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/objects/Numerics/Matrix.cpp

    r12520 r12558  
    5858        #endif
    5959        #ifdef _HAVE_ADOLC_
    60         this->amatrix=xNew<IssmDouble>;
     60        this->amatrix=xNew<IssmDouble>(M*N);
    6161        #endif
    6262}
     
    131131        /*Not sure about that one. Should we use the overloaded operator >>?*/
    132132        _printString_("ADOLC Matrix equivalent:" );
    133         for(i=0;i<M;i++){
    134                 for(j=0;j<N;j++){
    135                         _printString_(*(amatrix+N*i+j) << " ");
    136                 }
    137                 _printLine_("");
    138         }
     133//      for(i=0;i<M;i++){
     134//              for(j=0;j<N;j++){
     135//                      _printString_(*(amatrix+N*i+j) << " ");
     136//              }
     137//              _printLine_("");
     138//      }
    139139        #endif
    140140}
Note: See TracChangeset for help on using the changeset viewer.