Lyapunov parameters
This commit is contained in:
		
							
								
								
									
										14
									
								
								src/main.c
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								src/main.c
									
									
									
									
									
								
							@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user