Lyapunov parameters

This commit is contained in:
Ian Jauslin 2024-02-19 21:39:48 -05:00
parent 1c3f4b9f2f
commit ec98098709

View File

@ -795,6 +795,20 @@ int set_parameter(
return(-1);
}
}
else if (strcmp(lhs,"lyapunov_reset")==0){
ret=sscanf(rhs,"%lf",&(parameters->lyapunov_reset));
if(ret!=1){
fprintf(stderr, "error: parameter 'lyapunov_reset' should be a double\n got '%s'\n",rhs);
return(-1);
}
}
else if (strcmp(lhs,"D_epsilon")==0){
ret=sscanf(rhs,"%lf",&(parameters->D_epsilon));
if(ret!=1){
fprintf(stderr, "error: parameter 'D_epsilon' should be a double\n got '%s'\n",rhs);
return(-1);
}
}
else if (strcmp(lhs,"driving")==0){
if (strcmp(rhs,"zero")==0){
parameters->driving=DRIVING_ZERO;