Fix lyapunov

This commit is contained in:
Ian Jauslin 2024-02-19 22:05:30 -05:00
parent ec98098709
commit bf8e4b728e

View File

@ -88,7 +88,7 @@ int lyapunov(
int i;
// init average
for (i=0; i<MATSIZE; i++){
lyapunov_avg=0;
lyapunov_avg[i]=0;
}
// save times at which Lyapunov exponents are computed
@ -133,6 +133,7 @@ int lyapunov(
}
// print
fprintf(stderr,"% .15e\n",time);
for(i=0; i<MATSIZE; i++){
printf("% .15e % .15e % .15e\n",time, lyapunov[i], lyapunov_avg[i]);
}