Remove mode as argument of cvode. Return to previous approach of checking the type of argument mode and choose driver accordingly.