Changeset 23043
- Timestamp:
- 08/02/18 16:15:36 (7 years ago)
- Location:
- issm/trunk-jpl/src/c/shared/Elements
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/shared/Elements/PrintArrays.cpp
r15104 r23043 1 2 1 #include "./elements.h" 3 2 #include "../io/Print/Print.h" … … 13 12 _printf_("\n"); 14 13 } 14 #ifdef _HAVE_ADOLC_ 15 void printarray(IssmDouble* array,int lines,int cols){ 16 _printf_("\n"); 17 for(int i=0;i<lines;i++){ 18 _printf_(" [ "); 19 for(int j=0;j<cols;j++) _printf_( " " << setw(11) << setprecision (5) << array[i*cols+j]); 20 _printf_(" ]\n"); 21 } 22 _printf_("\n"); 23 } 24 #endif 15 25 void printsparsity(IssmPDouble* array,int lines,int cols){ 16 26 int count; -
issm/trunk-jpl/src/c/shared/Elements/elements.h
r22852 r23043 42 42 /*Print arrays*/ 43 43 void printarray(IssmPDouble* array,int lines,int cols=1); 44 #if _HAVE_ADOLC_ 45 void printarray(IssmDouble* array,int lines,int cols=1); 46 #endif 44 47 void printarray(int* array,int lines,int cols=1); 45 48 void printarray(bool* array,int lines,int cols=1);
Note:
See TracChangeset
for help on using the changeset viewer.