Changeset 4385
- Timestamp:
- 07/01/10 10:10:41 (15 years ago)
- Location:
- issm/trunk/src/c
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/c/modules/GetSolutionFromInputsx/GetSolutionFromInputsx.cpp
r4218 r4385 32 32 /*Get size of vector: */ 33 33 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)); 34 35 35 36 /*Initialize solution: */ -
issm/trunk/src/c/objects/Elements/Tria.cpp
r4382 r4385 5212 5212 5213 5213 /*Add value to global vector*/ 5214 printarray(&doflist[0],numdof); 5214 5215 VecSetValues(solution,numdof,doflist,(const double*)values,INSERT_VALUES); 5215 5216 -
issm/trunk/src/c/shared/Elements/elements.h
r4236 r4385 12 12 double Paterson(double temperature); 13 13 int GetVerticesCoordinates(double* xyz, Node** nodes, int numgrids); 14 inline void printarray(double* array,int lines,int cols ){14 inline void printarray(double* array,int lines,int cols=1){ 15 15 int i,j; 16 16 printf("\n"); … … 24 24 printf("\n"); 25 25 } 26 inline void printarray(int* array,int lines,int cols ){26 inline void printarray(int* array,int lines,int cols=1){ 27 27 int i,j; 28 28 printf("\n");
Note:
See TracChangeset
for help on using the changeset viewer.