diff -pruN illuminator-0.10.0.orig/chts.c illuminator-0.10.0/chts.c --- illuminator-0.10.0.orig/chts.c 2006-01-30 06:53:58.000000000 +0200 +++ illuminator-0.10.0/chts.c 2007-01-18 21:50:09.000000000 +0200 @@ -428,7 +428,15 @@ int FormInitialCondition (AppCtx *user, if (user->random) { DPRINTF ("Setting initial condition as random numbers\n",0); +/* API change introduced by PETSc 2.3.2 */ +#if ((PETSC_VERSION_MAJOR > 2) || \ + (PETSC_VERSION_MAJOR == 2 && PETSC_VERSION_MINOR > 3) || \ + (PETSC_VERSION_MAJOR == 2 && PETSC_VERSION_MINOR == 3 && PETSC_VERSION_SUBMINOR >= 2)) + ierr = PetscRandomCreate (user->comm, &rand); + ierr = PetscRandomSetType (rand, PETSCRAND48); +#else ierr = PetscRandomCreate (user->comm, RANDOM_DEFAULT, &rand); +#endif CHKERRQ (ierr); ierr = PetscRandomSetInterval (rand, 0.35, 0.65); CHKERRQ (ierr); ierr = VecSetRandom (X, rand); CHKERRQ (ierr); diff -pruN illuminator-0.10.0.orig/debian/changelog illuminator-0.10.0/debian/changelog --- illuminator-0.10.0.orig/debian/changelog 2007-01-19 00:05:05.000000000 +0200 +++ illuminator-0.10.0/debian/changelog 2007-01-18 21:56:23.000000000 +0200 @@ -1,3 +1,9 @@ +illuminator (0.10.0-2ubuntu1) feisty; urgency=low + + * Fix FTBFS with petsc-dev 2.3.2. + + -- Matti Lindell Thu, 18 Jan 2007 21:51:27 +0200 + illuminator (0.10.0-2) unstable; urgency=low * Important packaging fixes, including libffm-dev build-dep on alpha,