Fixed typo in logger

parent 4d4df408
...@@ -16,7 +16,7 @@ void logger(double t, int N, double *y) { ...@@ -16,7 +16,7 @@ void logger(double t, int N, double *y) {
if( N > 0 ) { if( N > 0 ) {
for( int i = 0; i < N - 1; i++ ) for( int i = 0; i < N - 1; i++ )
fprintf(logfile, ",%e", y[0]); fprintf(logfile, ",%e", y[0]);
fprintf(logfile, "%e\n", y[N-1]); fprintf(logfile, ",%e\n", y[N-1]);
} }
else else
fprintf(logfile, "\n"); fprintf(logfile, "\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment