Commits

Lisandro Dalcin committed 1eef25d

Fix error checking

  • Participants
  • Parent commits d1b0928

Comments (0)

Files changed (2)

File src/petigaelem.c

 {
   PetscFunctionBegin;
   PetscValidPointer(element,1);
-  if (nen)     PetscValidIntPointer(nen,3);
+  if (nen)     PetscValidIntPointer(nen,2);
   if (mapping) PetscValidPointer(mapping,3);
   if (nen)     *nen     = element->nen;
   if (mapping) *mapping = element->mapping;

File src/petigapoint.c

   PetscReal JW;
   PetscFunctionBegin;
   PetscValidPointer(point,1);
-  PetscValidScalarPointer(a,2);
-  PetscValidScalarPointer(A,3);
+  PetscValidScalarPointer(a,3);
+  PetscValidScalarPointer(A,4);
   if (PetscUnlikely(point->index < 0))
     SETERRQ(PETSC_COMM_SELF,PETSC_ERR_ARG_WRONGSTATE,"Must call during point loop");
   JW = point->detJac[0] * point->weight[0];