Skip to content
Snippets Groups Projects
Commit 931e4e99 authored by Jonathan Lambrechts's avatar Jonathan Lambrechts
Browse files

dg : one more bug ... from my same commit again ...

parent cc1bb524
No related branches found
No related tags found
No related merge requests found
...@@ -490,7 +490,7 @@ class fullMatrix ...@@ -490,7 +490,7 @@ class fullMatrix
#endif #endif
; ;
void print(const std::string name = "") const void print(const std::string name = "", const char *format = "%12.5E ") const
{ {
printf("Printing matrix %s:\n", name.c_str()); printf("Printing matrix %s:\n", name.c_str());
int ni = size1(); int ni = size1();
...@@ -498,7 +498,7 @@ class fullMatrix ...@@ -498,7 +498,7 @@ class fullMatrix
for(int I = 0; I < ni; I++){ for(int I = 0; I < ni; I++){
printf(" "); printf(" ");
for(int J = 0; J < nj; J++){ for(int J = 0; J < nj; J++){
printf("%12.5E ", (*this)(I, J)); printf(format, (*this)(I, J));
} }
printf("\n"); printf("\n");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment