Added validation of cvode flags