petscviewerhdf5.h

static inline PetscErrorCode PetscViewerHDF5PathIsRelative(const char path[], 
PetscBool emptyIsRelative, PetscBool *rel)
{
  size_t len;

  PetscFunctionBegin;
  *rel = emptyIsRelative;
  PetscCall(PetscStrlen(path, &len));
  if (len) *rel = (PetscBool)(path[0] != '/');
  PetscFunctionReturn(PETSC_SUCCESS);
}

Reply via email to