Changeset 12899


Ignore:
Timestamp:
08/03/12 17:18:15 (13 years ago)
Author:
Eric.Larour
Message:

BUG: forward declaration of Parameters.

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

Legend:

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

    r12832 r12899  
    1616class Node;
    1717class Matrix;
     18class Parameters;
    1819/*}}}*/
    1920
  • TabularUnified issm/trunk-jpl/src/c/classes/matrix/ElementVector.h

    r12832 r12899  
    1616class Node;
    1717class Vector;
     18class Parameters;
    1819/*}}}*/
    1920
  • TabularUnified issm/trunk-jpl/src/c/classes/matrix/Matrix.cpp

    r12860 r12899  
    2626Matrix::Matrix(){
    2727
    28         pmatrix=NULL;
     28        #ifdef _HAVE_PETSC_
     29        pmatrix=NULL;
     30        #endif
    2931        smatrix=NULL;
    3032
     
    3941Matrix::Matrix(int M,int N,int in_type){
    4042
    41         pmatrix=NULL;
     43        #ifdef _HAVE_PETSC_
     44        pmatrix=NULL;
     45        #endif
    4246        smatrix=NULL;
    4347        type=in_type;
     
    6064Matrix::Matrix(int M,int N,IssmDouble sparsity,int in_type){
    6165
    62         pmatrix=NULL;
     66        #ifdef _HAVE_PETSC_
     67        pmatrix=NULL;
     68        #endif
    6369        smatrix=NULL;
    6470        type=in_type;
     
    8086Matrix::Matrix(IssmDouble* serial_mat, int M,int N,IssmDouble sparsity,int in_type){
    8187
    82         pmatrix=NULL;
     88        #ifdef _HAVE_PETSC_
     89        pmatrix=NULL;
     90        #endif
    8391        smatrix=NULL;
    8492        type=in_type;
     
    101109Matrix::Matrix(int M,int N,int connectivity,int numberofdofspernode,int in_type){
    102110
    103         pmatrix=NULL;
     111        #ifdef _HAVE_PETSC_
     112        pmatrix=NULL;
     113        #endif
    104114        smatrix=NULL;
    105115        type=in_type;
  • TabularUnified issm/trunk-jpl/src/c/classes/matrix/Vector.cpp

    r12850 r12899  
    2525Vector::Vector(){
    2626
     27        #ifdef _HAVE_PETSC_
    2728        this->pvector=NULL;
     29        #endif
    2830        this->svector=NULL;
    2931       
     
    3840Vector::Vector(int M,bool fromlocalsize,int in_type){
    3941       
     42        #ifdef _HAVE_PETSC_
    4043        pvector=NULL;
     44        #endif
    4145        svector=NULL;
    4246        type=in_type;
     
    6064Vector::Vector(IssmDouble* serial_vec,int M,int in_type){
    6165
     66        #ifdef _HAVE_PETSC_
    6267        pvector=NULL;
     68        #endif
     69
    6370        svector=NULL;
    6471        type=in_type;
Note: See TracChangeset for help on using the changeset viewer.