Skip to content

Commit

Permalink
sync with PERMON/PETSc 3.19 (#21)
Browse files Browse the repository at this point in the history
* cleanup composed functions

* fix missing PetscCalls

* Change PetscFunctionReturn(0) to PetscFunctionReturn(PETSC_SUCCESS)

* Use Petsc[Strncpy,Strlcat,Memcpy] over Petsc[Strcpy,Strcat]
  • Loading branch information
jkruzik authored Apr 6, 2023
1 parent 0d4599a commit 7cac175
Show file tree
Hide file tree
Showing 9 changed files with 209 additions and 206 deletions.
8 changes: 4 additions & 4 deletions src/bin/permonsvmfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ PetscErrorCode GetFilenameExtension(const char *filename,char **extension)
PetscFunctionBegin;
PetscCall(PetscStrrchr(filename,'.',&extension_inner));
*extension = extension_inner;
PetscFunctionReturn(0);
PetscFunctionReturn(PETSC_SUCCESS);
}

#undef __FUNCT__
Expand Down Expand Up @@ -156,18 +156,18 @@ PetscErrorCode SVMRunBinaryClassification()
}

PetscCall(SVMDestroy(&svm));
PetscFunctionReturnI(0);
PetscFunctionReturnI(PETSC_SUCCESS);
}

#undef __FUNCT__
#define __FUNCT__ "main"
int main(int argc,char **argv)
{
PermonInitialize(&argc,&argv,(char *) 0,(char *) 0);

PetscFunctionBegin;
PetscCall(PermonInitialize(&argc,&argv,(char *) 0,(char *) 0));
comm = PETSC_COMM_WORLD;
PetscCall(SVMRunBinaryClassification());
PetscCall(PermonFinalize());
PetscFunctionReturn(0);
return 0;
}
Loading

0 comments on commit 7cac175

Please sign in to comment.