corrected logical error in cvode template