Commits

Lisandro Dalcin committed 6077ab7

Backward compatibility fix for petsc-3.3

Comments (0)

Files changed (1)

   ierr = PetscObjectComposeFunction((PetscObject)ts,"TSAlpha2SetParams_C",TSAlpha2SetParams_Alpha2);CHKERRQ(ierr);
   ierr = PetscObjectComposeFunction((PetscObject)ts,"TSAlpha2GetParams_C",TSAlpha2GetParams_Alpha2);CHKERRQ(ierr);
 
+#if PETSC_VERSION_(3,3,0) || PETSC_VERSION_(3,2,0)
   if (ts->exact_final_time == PETSC_DECIDE) ts->exact_final_time = PETSC_FALSE;
+#endif
 
   PetscFunctionReturn(0);
 }