Commits

Lisandro Dalcin  committed eb562db

Add/Fix extern function prototype

  • Participants
  • Parent commits c467635

Comments (0)

Files changed (5)

File include/petiga.h

 #define IGA_FILE_CLASSID 1211299
 
 PETSC_EXTERN PetscErrorCode IGAInitializePackage(const char path[]);
+PETSC_EXTERN PetscErrorCode IGAFinalizePackage(void);
+PETSC_EXTERN PetscErrorCode IGARegisterAll(const char path[]);
 
 PETSC_EXTERN PetscErrorCode IGACreate(MPI_Comm comm,IGA *iga);
 PETSC_EXTERN PetscErrorCode IGADestroy(IGA *iga);
 PETSC_EXTERN PetscErrorCode IGAElementBuildQuadrature(IGAElement element);
 PETSC_EXTERN PetscErrorCode IGAElementBuildShapeFuns(IGAElement element);
 
+PETSC_EXTERN PetscErrorCode IGAElementGetParent(IGAElement element,IGA *parent);
 PETSC_EXTERN PetscErrorCode IGAElementGetIndex(IGAElement element,PetscInt *index);
 PETSC_EXTERN PetscErrorCode IGAElementGetCount(IGAElement element,PetscInt *count);
 

File src/petigasnes.c

   PetscFunctionReturn(0);
 }
 
+extern PetscErrorCode IGASNESFormFunction(SNES,Vec,Vec,void*);
+extern PetscErrorCode IGASNESFormJacobian(SNES,Vec,Mat*,Mat*,MatStructure*,void*);
+
 #undef  __FUNCT__
 #define __FUNCT__ "IGASNESFormFunction"
 PetscErrorCode IGASNESFormFunction(SNES snes,Vec U,Vec F,void *ctx)

File src/petigats.c

 #include "petiga.h"
 
-extern PetscErrorCode IGATSFormIFunction(TS,PetscReal,Vec,Vec,Vec,void*);
-extern PetscErrorCode IGATSFormIJacobian(TS,PetscReal,Vec,Vec,PetscReal,Mat*,Mat*,MatStructure*,void*);
-
 extern PetscLogEvent IGA_FormFunction;
 extern PetscLogEvent IGA_FormJacobian;
 
   PetscFunctionReturn(0);
 }
 
+extern PetscErrorCode IGATSFormIFunction(TS,PetscReal,Vec,Vec,Vec,void*);
+extern PetscErrorCode IGATSFormIJacobian(TS,PetscReal,Vec,Vec,PetscReal,Mat*,Mat*,MatStructure*,void*);
+
 #undef  __FUNCT__
 #define __FUNCT__ "IGATSFormIFunction"
 PetscErrorCode IGATSFormIFunction(TS ts,PetscReal t,Vec U,Vec V,Vec F,void *ctx)

File src/petigats2.c

 #include "petiga.h"
 #include "petscts2.h"
 
-extern PetscErrorCode IGATSFormIFunction(TS,PetscReal,Vec,Vec,Vec,void*);
-extern PetscErrorCode IGATSFormIJacobian(TS,PetscReal,Vec,Vec,PetscReal,Mat*,Mat*,MatStructure*,void*);
-
 extern PetscLogEvent IGA_FormFunction;
 extern PetscLogEvent IGA_FormJacobian;
 
   PetscFunctionReturn(0);
 }
 
+extern PetscErrorCode IGATSFormIFunction (TS,PetscReal,Vec,Vec,Vec,void*);
+extern PetscErrorCode IGATSFormIJacobian (TS,PetscReal,Vec,Vec,PetscReal,Mat*,Mat*,MatStructure*,void*);
+extern PetscErrorCode IGATSFormIFunction2(TS,PetscReal,Vec,Vec,Vec,Vec,void*);
+extern PetscErrorCode IGATSFormIJacobian2(TS,PetscReal,Vec,Vec,Vec,PetscReal,PetscReal,Mat*,Mat*,MatStructure*,void*);
+
 #undef  __FUNCT__
 #define __FUNCT__ "IGATSFormIFunction2"
 PetscErrorCode IGATSFormIFunction2(TS ts,PetscReal t,Vec U,Vec V,Vec A,Vec F,void *ctx)

File src/snesfdcolor.c

 
 #undef __FUNCT__
 #define __FUNCT__ "MatFDColoringSetOptionsPrefix"
-static PetscErrorCode
-MatFDColoringSetOptionsPrefix(MatFDColoring fdc, const char prefix[]) {
+static PetscErrorCode MatFDColoringSetOptionsPrefix(MatFDColoring fdc, const char prefix[])
+{
   PetscErrorCode ierr;
   PetscFunctionBegin;
   PetscValidHeaderSpecific(fdc,MAT_FDCOLORING_CLASSID,1);
   PetscFunctionReturn(0);
 }
 
+extern PetscErrorCode SNESSetFromOptions_FDColoring(SNES);
+
 #undef __FUNCT__
 #define __FUNCT__ "SNESSetFromOptions_FDColoring"
 PetscErrorCode SNESSetFromOptions_FDColoring(SNES snes)