Commits

Lisandro Dalcin committed 90722d5

Fix test to work with petsc-dev

  • Participants
  • Parent commits 034141d

Comments (0)

Files changed (1)

File test/IGACreate.c

   ierr = DMIGAGetIGA(dm,&iga);CHKERRQ(ierr);
   ierr = DMIGASetIGA(dm,iga);CHKERRQ(ierr);
   ierr = DMCreateGlobalVector(dm,&x);CHKERRQ(ierr);
+  ierr = VecDestroy(&x);CHKERRQ(ierr);
   ierr = DMCreateGlobalVector(dm,&b);CHKERRQ(ierr);
+  ierr = VecDestroy(&b);CHKERRQ(ierr);
+#if PETSC_VERSION_LT(3,5,0)
   ierr = DMCreateMatrix(dm,NULL,&A);CHKERRQ(ierr);
-  ierr = VecDestroy(&x);CHKERRQ(ierr);
-  ierr = VecDestroy(&b);CHKERRQ(ierr);
+#else
+  ierr = DMCreateMatrix(dm,&A);CHKERRQ(ierr);
+#endif
   ierr = MatDestroy(&A);CHKERRQ(ierr);
   ierr = DMDestroy(&dm);CHKERRQ(ierr);