Commits

Lisandro Dalcin  committed 5e737b2

Fix missing VecDestroy() in demo

  • Participants
  • Parent commits 5246ebc

Comments (0)

Files changed (1)

File demo/Neumann.c

   PetscScalar mean;
   ierr = VecDot(Q,x,&mean);CHKERRQ(ierr);
   ierr = VecShift(x,-mean);CHKERRQ(ierr);
+  ierr = VecDestroy(&Q);CHKERRQ(ierr);
 
   PetscScalar error;
   ierr = IGAComputeScalar(iga,x,1,&error,Error,NULL);CHKERRQ(ierr);