Commits

Lisandro Dalcin committed 7609b09

Add error checking in IGAProbeSetPoint

  • Participants
  • Parent commits a20974b

Comments (0)

Files changed (1)

src/petigaprobe.c

     if (PetscUnlikely(u[i] < U[a] || u[i] > U[b]))
       SETERRQ4(PETSC_COMM_SELF,PETSC_ERR_ARG_OUTOFRANGE,
                "Expecting %g <= u[%D]=%g <= %g",(double)U[a],i,(double)u[i],(double)U[b]);
-    /*PetscValidLogicalCollectiveReal(prb->iga,u[i],2);*/
+    if (prb->collective) PetscValidLogicalCollectiveReal(prb->iga,u[i],2);
   }
 #endif
   for (i=0; i<prb->dim; i++) prb->point[i] = u[i];