Print index of lyapunov exponent

This commit is contained in:
2026-04-14 11:49:54 -04:00
parent 35352a6460
commit e60942428e
2 changed files with 2 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ The available commands are
* `lyapunov`: to compute the Lyapunov exponents. This command prints
```
time instantaneous_lyapunov lyapunov
time index instantaneous_lyapunov lyapunov
```
where `instantaneous_lyapunov` is computed from the tangent flow only between
the given time and the previous one.

View File

@@ -162,7 +162,7 @@ int lyapunov(
// print
for(i=0; i<MATSIZE; i++){
printf("% .15e % .15e % .15e\n",time, lyapunov[i], lyapunov_avg[i]);
printf("% .15e %3d % .15e % .15e\n",time, i, lyapunov[i], lyapunov_avg[i]);
}
printf("\n");
fprintf(stderr,"% .15e\n",time);