Commits

Lisandro Dalcin committed b4f9c43

Use the enum collective error check macro in IGASetBasisType()

  • Participants
  • Parent commits 71bc1e4

Comments (0)

Files changed (1)

File src/petiga.c

   PetscFunctionBegin;
   PetscValidHeaderSpecific(iga,IGA_CLASSID,1);
   PetscValidLogicalCollectiveInt(iga,i,2);
-  PetscValidLogicalCollectiveInt(iga,(PetscInt)type,3);
+  PetscValidLogicalCollectiveEnum(iga,type,3);
   ierr = IGAGetBasis(iga,i,&basis);CHKERRQ(ierr);
   if (basis->type == type) PetscFunctionReturn(0);
   ierr = IGABasisSetType(basis,type);CHKERRQ(ierr);