Print lyapunov if it is the last step
This commit is contained in:
parent
50c09cf164
commit
89791be6d6
@ -137,7 +137,8 @@ int lyapunov(
|
|||||||
}
|
}
|
||||||
|
|
||||||
// QR decomposition
|
// QR decomposition
|
||||||
if((lyapunov_trigger==LYAPUNOV_TRIGGER_TIME && time>(n+1)*lyapunov_reset) || (lyapunov_trigger==LYAPUNOV_TRIGGER_SIZE && norm>lyapunov_reset)){
|
// Do it also if it is the last step
|
||||||
|
if((lyapunov_trigger==LYAPUNOV_TRIGGER_TIME && time>(n+1)*lyapunov_reset) || (lyapunov_trigger==LYAPUNOV_TRIGGER_SIZE && norm>lyapunov_reset) || time>=final_time){
|
||||||
n++;
|
n++;
|
||||||
|
|
||||||
// QR decomposition
|
// QR decomposition
|
||||||
|
Loading…
x
Reference in New Issue
Block a user