Changeset 4385


Ignore:
Timestamp:
07/01/10 10:10:41 (15 years ago)
Author:
Mathieu Morlighem
Message:

Added check in GetSolutionFromInputsx that gssize>0

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

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/c/modules/GetSolutionFromInputsx/GetSolutionFromInputsx.cpp

    r4218 r4385  
    3232        /*Get size of vector: */
    3333        gsize=nodes->NumberOfDofs(analysis_type);
     34        if (gsize==0) ISSMERROR("Allocating a Vec of size 0 as gsize=0 for analysis: %s",EnumAsString(analysis_type));
    3435       
    3536        /*Initialize solution: */
  • issm/trunk/src/c/objects/Elements/Tria.cpp

    r4382 r4385  
    52125212
    52135213        /*Add value to global vector*/
     5214        printarray(&doflist[0],numdof);
    52145215        VecSetValues(solution,numdof,doflist,(const double*)values,INSERT_VALUES);
    52155216
  • issm/trunk/src/c/shared/Elements/elements.h

    r4236 r4385  
    1212double Paterson(double temperature);
    1313int GetVerticesCoordinates(double* xyz,  Node** nodes, int numgrids);
    14 inline void printarray(double* array,int lines,int cols){
     14inline void printarray(double* array,int lines,int cols=1){
    1515        int i,j;
    1616        printf("\n");
     
    2424        printf("\n");
    2525}
    26 inline void printarray(int* array,int lines,int cols){
     26inline void printarray(int* array,int lines,int cols=1){
    2727        int i,j;
    2828        printf("\n");
Note: See TracChangeset for help on using the changeset viewer.