Actual source code: dmregall.c

petsc-3.5.4 2015-05-23
Report Typos and Errors
  2: #include <petscdm.h>     /*I  "petscdm.h"  I*/
  3: PETSC_EXTERN PetscErrorCode DMCreate_DA(DM);
  4: PETSC_EXTERN PetscErrorCode DMCreate_Composite(DM);
  5: PETSC_EXTERN PetscErrorCode DMCreate_Sliced(DM);
  6: PETSC_EXTERN PetscErrorCode DMCreate_Shell(DM);
  7: PETSC_EXTERN PetscErrorCode DMCreate_Redundant(DM);
  8: PETSC_EXTERN PetscErrorCode DMCreate_Plex(DM);
  9: PETSC_EXTERN PetscErrorCode DMCreate_Patch(DM);
 10: #if defined(PETSC_HAVE_MOAB)
 11: PETSC_EXTERN PetscErrorCode DMCreate_Moab(DM);
 12: #endif
 13: PETSC_EXTERN PetscErrorCode DMCreate_Network(DM);

 17: /*@C
 18:   DMRegisterAll - Registers all of the DM components in the DM package.

 20:   Not Collective

 22:   Input parameter:
 23: . path - The dynamic library path

 25:   Level: advanced

 27: .keywords: DM, register, all
 28: .seealso:  DMRegister(), DMRegisterDestroy()
 29: @*/
 30: PetscErrorCode  DMRegisterAll()
 31: {

 35:   DMRegisterAllCalled = PETSC_TRUE;

 37:   DMRegister(DMDA,         DMCreate_DA);
 38:   DMRegister(DMCOMPOSITE,  DMCreate_Composite);
 39:   DMRegister(DMSLICED,     DMCreate_Sliced);
 40:   DMRegister(DMSHELL,      DMCreate_Shell);
 41:   DMRegister(DMREDUNDANT,  DMCreate_Redundant);
 42:   DMRegister(DMPLEX,       DMCreate_Plex);
 43:   DMRegister(DMPATCH,      DMCreate_Patch);
 44: #if defined(PETSC_HAVE_MOAB)
 45:   DMRegister(DMMOAB,       DMCreate_Moab);
 46: #endif
 47:   DMRegister(DMNETWORK,    DMCreate_Network);
 48:   return(0);
 49: }
 50: #include <petscfe.h>     /*I  "petscfe.h"  I*/

 52: PETSC_EXTERN PetscErrorCode PetscSpaceCreate_Polynomial(PetscSpace);
 53: PETSC_EXTERN PetscErrorCode PetscSpaceCreate_DG(PetscSpace);

 57: /*@C
 58:   PetscSpaceRegisterAll - Registers all of the PetscSpace components in the PetscFE package.

 60:   Not Collective

 62:   Input parameter:
 63: . path - The dynamic library path

 65:   Level: advanced

 67: .keywords: PetscSpace, register, all
 68: .seealso:  PetscSpaceRegister(), PetscSpaceRegisterDestroy()
 69: @*/
 70: PetscErrorCode PetscSpaceRegisterAll()
 71: {

 75:   PetscSpaceRegisterAllCalled = PETSC_TRUE;

 77:   PetscSpaceRegister(PETSCSPACEPOLYNOMIAL, PetscSpaceCreate_Polynomial);
 78:   PetscSpaceRegister(PETSCSPACEDG,         PetscSpaceCreate_DG);
 79:   return(0);
 80: }

 82: PETSC_EXTERN PetscErrorCode PetscDualSpaceCreate_Lagrange(PetscDualSpace);

 86: /*@C
 87:   PetscDualSpaceRegisterAll - Registers all of the PetscDualSpace components in the PetscFE package.

 89:   Not Collective

 91:   Input parameter:
 92: . path - The dynamic library path

 94:   Level: advanced

 96: .keywords: PetscDualSpace, register, all
 97: .seealso:  PetscDualSpaceRegister(), PetscDualSpaceRegisterDestroy()
 98: @*/
 99: PetscErrorCode PetscDualSpaceRegisterAll()
100: {

104:   PetscDualSpaceRegisterAllCalled = PETSC_TRUE;

106:   PetscDualSpaceRegister(PETSCDUALSPACELAGRANGE, PetscDualSpaceCreate_Lagrange);
107:   return(0);
108: }

110: PETSC_EXTERN PetscErrorCode PetscFECreate_Basic(PetscFE);
111: PETSC_EXTERN PetscErrorCode PetscFECreate_Nonaffine(PetscFE);
112: PETSC_EXTERN PetscErrorCode PetscFECreate_Composite(PetscFE);
113: #ifdef PETSC_HAVE_OPENCL
114: PETSC_EXTERN PetscErrorCode PetscFECreate_OpenCL(PetscFE);
115: #endif

119: /*@C
120:   PetscFERegisterAll - Registers all of the PetscFE components in the PetscFE package.

122:   Not Collective

124:   Input parameter:
125: . path - The dynamic library path

127:   Level: advanced

129: .keywords: PetscFE, register, all
130: .seealso:  PetscFERegister(), PetscFERegisterDestroy()
131: @*/
132: PetscErrorCode PetscFERegisterAll()
133: {

137:   PetscFERegisterAllCalled = PETSC_TRUE;

139:   PetscFERegister(PETSCFEBASIC,     PetscFECreate_Basic);
140:   PetscFERegister(PETSCFENONAFFINE, PetscFECreate_Nonaffine);
141:   PetscFERegister(PETSCFECOMPOSITE, PetscFECreate_Composite);
142: #ifdef PETSC_HAVE_OPENCL
143:   PetscFERegister(PETSCFEOPENCL, PetscFECreate_OpenCL);
144: #endif
145:   return(0);
146: }
147: #include <petscfv.h>     /*I  "petscfv.h"  I*/

149: PETSC_EXTERN PetscErrorCode PetscLimiterCreate_Sin(PetscLimiter);
150: PETSC_EXTERN PetscErrorCode PetscLimiterCreate_Zero(PetscLimiter);
151: PETSC_EXTERN PetscErrorCode PetscLimiterCreate_None(PetscLimiter);
152: PETSC_EXTERN PetscErrorCode PetscLimiterCreate_Minmod(PetscLimiter);
153: PETSC_EXTERN PetscErrorCode PetscLimiterCreate_VanLeer(PetscLimiter);
154: PETSC_EXTERN PetscErrorCode PetscLimiterCreate_VanAlbada(PetscLimiter);
155: PETSC_EXTERN PetscErrorCode PetscLimiterCreate_Superbee(PetscLimiter);
156: PETSC_EXTERN PetscErrorCode PetscLimiterCreate_MC(PetscLimiter);

160: /*@C
161:   PetscLimiterRegisterAll - Registers all of the PetscLimiter components in the PetscFV package.

163:   Not Collective

165:   Input parameter:
166: . path - The dynamic library path

168:   Level: advanced

170: .keywords: PetscLimiter, register, all
171: .seealso:  PetscLimiterRegister(), PetscLimiterRegisterDestroy()
172: @*/
173: PetscErrorCode PetscLimiterRegisterAll()
174: {

178:   PetscLimiterRegisterAllCalled = PETSC_TRUE;

180:   PetscLimiterRegister(PETSCLIMITERSIN,       PetscLimiterCreate_Sin);
181:   PetscLimiterRegister(PETSCLIMITERZERO,      PetscLimiterCreate_Zero);
182:   PetscLimiterRegister(PETSCLIMITERNONE,      PetscLimiterCreate_None);
183:   PetscLimiterRegister(PETSCLIMITERMINMOD,    PetscLimiterCreate_Minmod);
184:   PetscLimiterRegister(PETSCLIMITERVANLEER,   PetscLimiterCreate_VanLeer);
185:   PetscLimiterRegister(PETSCLIMITERVANALBADA, PetscLimiterCreate_VanAlbada);
186:   PetscLimiterRegister(PETSCLIMITERSUPERBEE,  PetscLimiterCreate_Superbee);
187:   PetscLimiterRegister(PETSCLIMITERMC,        PetscLimiterCreate_MC);
188:   return(0);
189: }

191: PETSC_EXTERN PetscErrorCode PetscFVCreate_Upwind(PetscFV);
192: PETSC_EXTERN PetscErrorCode PetscFVCreate_LeastSquares(PetscFV);

196: /*@C
197:   PetscFVRegisterAll - Registers all of the PetscFV components in the PetscFV package.

199:   Not Collective

201:   Input parameter:
202: . path - The dynamic library path

204:   Level: advanced

206: .keywords: PetscFV, register, all
207: .seealso:  PetscFVRegister(), PetscFVRegisterDestroy()
208: @*/
209: PetscErrorCode PetscFVRegisterAll()
210: {

214:   PetscFVRegisterAllCalled = PETSC_TRUE;

216:   PetscFVRegister(PETSCFVUPWIND,       PetscFVCreate_Upwind);
217:   PetscFVRegister(PETSCFVLEASTSQUARES, PetscFVCreate_LeastSquares);
218:   return(0);
219: }
220: #include <petscds.h>     /*I  "petscds.h"  I*/

222: PETSC_EXTERN PetscErrorCode PetscDSCreate_Basic(PetscDS);

226: /*@C
227:   PetscDSRegisterAll - Registers all of the PetscDS components in the PetscDS package.

229:   Not Collective

231:   Input parameter:
232: . path - The dynamic library path

234:   Level: advanced

236: .keywords: PetscDS, register, all
237: .seealso:  PetscDSRegister(), PetscDSRegisterDestroy()
238: @*/
239: PetscErrorCode PetscDSRegisterAll()
240: {

244:   PetscDSRegisterAllCalled = PETSC_TRUE;

246:   PetscDSRegister(PETSCDSBASIC, PetscDSCreate_Basic);
247:   return(0);
248: }