Commits

Lisandro Dalcin  committed 0c6896e

Update Poisson FMM example

  • Participants
  • Parent commits fd78903

Comments (0)

Files changed (1)

File fmm/Poisson3D.c

     ierr = IGAAxisSetDegree(axis,p[i]);CHKERRQ(ierr);
     ierr = IGAAxisInitUniform(axis,N[i],0.0,1.0,C[i]);CHKERRQ(ierr);
   }
-  IGABoundary bnd;
   PetscInt dir,side;
   PetscScalar value = 0.0;
   for (dir=0; dir<dim; dir++) {
     for (side=0; side<2; side++) {
-      ierr = IGAGetBoundary(iga,dir,side,&bnd);CHKERRQ(ierr);
-      ierr = IGABoundarySetValue(bnd,0,value);CHKERRQ(ierr);
+      ierr = IGASetBoundaryValue(iga,dir,side,0,value);CHKERRQ(ierr);
     }
   }
 
   ierr = IGACreateMat(iga,&A);CHKERRQ(ierr);
   ierr = IGACreateVec(iga,&x);CHKERRQ(ierr);
   ierr = IGACreateVec(iga,&b);CHKERRQ(ierr);
-  ierr = IGASetUserSystem(iga,System,PETSC_NULL);CHKERRQ(ierr);
+  ierr = IGASetFormSystem(iga,System,PETSC_NULL);CHKERRQ(ierr);
   ierr = IGAComputeSystem(iga,A,b);CHKERRQ(ierr);
   
   KSP ksp;