Changeset 464


Ignore:
Timestamp:
05/18/09 09:33:19 (16 years ago)
Author:
Mathieu Morlighem
Message:

fixed some bad initializtions

Location:
issm/trunk/src/c
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/io/SerialFetchData.cpp

    r281 r464  
    2727        int      outdataset_size;
    2828
    29         double*  outmatrix;
    30         Mat      outpetscmatrix;
     29        double*  outmatrix=NULL;
     30        Mat      outpetscmatrix=NULL;
    3131        double*  outmatrix_workspace=NULL;;
    3232        int      outmatrix_rows,outmatrix_cols;
    3333        int      petsc;
    3434
    35         double*  outvector;
    36         Vec      outpetscvector;
     35        double*  outvector=NULL;
     36        Vec      outpetscvector=NULL;
    3737        double*  outvector_workspace=NULL;
    3838        int      outvector_rows;
  • issm/trunk/src/c/io/SerialWriteData.cpp

    r1 r464  
    3232
    3333        /*Matrix: */
    34         Mat        matrix;
     34        Mat        matrix=NULL;
    3535        MatType    type;
    3636       
    3737        /*Vector: */
    38         Vec        vector;
     38        Vec        vector=NULL;
    3939
    4040        /*Scalar: */
  • issm/trunk/src/c/parallel/CreateFemModel.cpp

    r448 r464  
    1313
    1414        /*Model output: */
    15         DataSet*            elements;
    16         DataSet*            nodes;
    17         DataSet*            constraints;
    18         DataSet*            loads;
    19         DataSet*            materials;
    20         DataSet*            parameters;
    21         Vec                 partition;
    22         Vec                 tpartition;
    23         Vec                 yg;
    24         Mat                 Rmg;
    25         Mat                 Gmn;
    26         NodeSets*           nodesets;
    27         Vec                 ys;
    28         Vec                 ys0;
     15        DataSet*            elements=NULL;
     16        DataSet*            nodes=NULL;
     17        DataSet*            constraints=NULL;
     18        DataSet*            loads=NULL;
     19        DataSet*            materials=NULL;
     20        DataSet*            parameters=NULL;
     21        Vec                 partition=NULL;
     22        Vec                 tpartition=NULL;
     23        Vec                 yg=NULL;
     24        Mat                 Rmg=NULL;
     25        Mat                 Gmn=NULL;
     26        NodeSets*           nodesets=NULL;
     27        Vec                 ys=NULL;
     28        Vec                 ys0=NULL;
    2929
    3030        /*intermediary: */
     
    9292        femmodel->ys=ys;
    9393        femmodel->ys0=ys0;
    94 
    95        
    9694}
  • issm/trunk/src/c/parallel/diagnostic_core_nonlinear.cpp

    r434 r464  
    3333        int numberofnodes;
    3434
    35         Vec dug;
     35        Vec dug=NULL;
    3636        double ndu,nduinf,nu;
    3737
  • issm/trunk/src/c/toolkits/petsc/patches/MatMultPatch.cpp

    r1 r464  
    2323
    2424        int m,n;
    25         Vec X_rel;
     25        Vec X_rel=NULL;
    2626
    2727        if (MatMultCompatible(A,X)){
Note: See TracChangeset for help on using the changeset viewer.