xref: /petsc/src/dm/interface/dmregall.c (revision 36e5648fbd04259d04227ec634129ab752ba19b3)
1264ace61SBarry Smith 
23c48a1e8SJed Brown #include <petscdm.h>     /*I  "petscdm.h"  I*/
377623264SMatthew G. Knepley #include <petscdmplex.h> /*I  "petscdmplex.h"  I*/
4af0996ceSBarry Smith #include <petsc/private/dmimpl.h>
5af0996ceSBarry Smith #include <petsc/private/dmpleximpl.h>
6af0996ceSBarry Smith #include <petsc/private/petscfeimpl.h>
7af0996ceSBarry Smith #include <petsc/private/petscfvimpl.h>
8af0996ceSBarry Smith #include <petsc/private/petscdsimpl.h>
98cc058d9SJed Brown PETSC_EXTERN PetscErrorCode DMCreate_DA(DM);
108cc058d9SJed Brown PETSC_EXTERN PetscErrorCode DMCreate_Composite(DM);
118cc058d9SJed Brown PETSC_EXTERN PetscErrorCode DMCreate_Sliced(DM);
128cc058d9SJed Brown PETSC_EXTERN PetscErrorCode DMCreate_Shell(DM);
138cc058d9SJed Brown PETSC_EXTERN PetscErrorCode DMCreate_Redundant(DM);
148cc058d9SJed Brown PETSC_EXTERN PetscErrorCode DMCreate_Plex(DM);
158cc058d9SJed Brown PETSC_EXTERN PetscErrorCode DMCreate_Patch(DM);
162fd35b1fSDave May PETSC_EXTERN PetscErrorCode DMCreate_Swarm(DM);
17edf5aa1bSVijay Mahadevan #if defined(PETSC_HAVE_MOAB)
181d72bce8STim Tautges PETSC_EXTERN PetscErrorCode DMCreate_Moab(DM);
19edf5aa1bSVijay Mahadevan #endif
20406e3badSSatish Balay PETSC_EXTERN PetscErrorCode DMCreate_Network(DM);
21ef51cf95SToby Isaac PETSC_EXTERN PetscErrorCode DMCreate_Forest(DM);
22b34044e4SToby Isaac #if defined(PETSC_HAVE_P4EST)
23b34044e4SToby Isaac PETSC_EXTERN PetscErrorCode DMCreate_p4est(DM);
24b34044e4SToby Isaac PETSC_EXTERN PetscErrorCode DMCreate_p8est(DM);
25b34044e4SToby Isaac #endif
26264ace61SBarry Smith 
27264ace61SBarry Smith /*@C
28264ace61SBarry Smith   DMRegisterAll - Registers all of the DM components in the DM package.
29264ace61SBarry Smith 
30264ace61SBarry Smith   Not Collective
31264ace61SBarry Smith 
32264ace61SBarry Smith   Input parameter:
33264ace61SBarry Smith . path - The dynamic library path
34264ace61SBarry Smith 
35264ace61SBarry Smith   Level: advanced
36264ace61SBarry Smith 
37264ace61SBarry Smith .keywords: DM, register, all
38607a6623SBarry Smith .seealso:  DMRegister(), DMRegisterDestroy()
39264ace61SBarry Smith @*/
40dd63322aSSatish Balay PetscErrorCode  DMRegisterAll(void)
41264ace61SBarry Smith {
42264ace61SBarry Smith   PetscErrorCode ierr;
43264ace61SBarry Smith 
44264ace61SBarry Smith   PetscFunctionBegin;
450f51fdf8SToby Isaac   if (DMRegisterAllCalled) PetscFunctionReturn(0);
46264ace61SBarry Smith   DMRegisterAllCalled = PETSC_TRUE;
478865f1eaSKarl Rupp 
48bdf89e91SBarry Smith   ierr = DMRegister(DMDA,         DMCreate_DA);CHKERRQ(ierr);
49bdf89e91SBarry Smith   ierr = DMRegister(DMCOMPOSITE,  DMCreate_Composite);CHKERRQ(ierr);
50bdf89e91SBarry Smith   ierr = DMRegister(DMSLICED,     DMCreate_Sliced);CHKERRQ(ierr);
51bdf89e91SBarry Smith   ierr = DMRegister(DMSHELL,      DMCreate_Shell);CHKERRQ(ierr);
52bdf89e91SBarry Smith   ierr = DMRegister(DMREDUNDANT,  DMCreate_Redundant);CHKERRQ(ierr);
53bdf89e91SBarry Smith   ierr = DMRegister(DMPLEX,       DMCreate_Plex);CHKERRQ(ierr);
54bdf89e91SBarry Smith   ierr = DMRegister(DMPATCH,      DMCreate_Patch);CHKERRQ(ierr);
552fd35b1fSDave May   ierr = DMRegister(DMSWARM,      DMCreate_Swarm);CHKERRQ(ierr);
561d72bce8STim Tautges #if defined(PETSC_HAVE_MOAB)
578a1af44dSJed Brown   ierr = DMRegister(DMMOAB,       DMCreate_Moab);CHKERRQ(ierr);
581d72bce8STim Tautges #endif
59b2930b41SShri Abhyankar   ierr = DMRegister(DMNETWORK,    DMCreate_Network);CHKERRQ(ierr);
60ef51cf95SToby Isaac   ierr = DMRegister(DMFOREST,     DMCreate_Forest);CHKERRQ(ierr);
61b34044e4SToby Isaac #if defined(PETSC_HAVE_P4EST)
62b34044e4SToby Isaac   ierr = DMRegister(DMP4EST,      DMCreate_p4est);CHKERRQ(ierr);
63b34044e4SToby Isaac   ierr = DMRegister(DMP8EST,      DMCreate_p8est);CHKERRQ(ierr);
64b34044e4SToby Isaac #endif
65264ace61SBarry Smith   PetscFunctionReturn(0);
66264ace61SBarry Smith }
6777623264SMatthew G. Knepley 
6877623264SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscPartitionerCreate_Chaco(PetscPartitioner);
6977623264SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscPartitionerCreate_ParMetis(PetscPartitioner);
70137cd93aSLisandro Dalcin PETSC_EXTERN PetscErrorCode PetscPartitionerCreate_PTScotch(PetscPartitioner);
7177623264SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscPartitionerCreate_Shell(PetscPartitioner);
72555a9cf8SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscPartitionerCreate_Simple(PetscPartitioner);
73dae52e14SToby Isaac PETSC_EXTERN PetscErrorCode PetscPartitionerCreate_Gather(PetscPartitioner);
74de68236aSVaclav Hapla PETSC_EXTERN PetscErrorCode PetscPartitionerCreate_MatPartitioning(PetscPartitioner);
7577623264SMatthew G. Knepley 
7677623264SMatthew G. Knepley /*@C
7777623264SMatthew G. Knepley   PetscPartitionerRegisterAll - Registers all of the PetscPartitioner components in the DM package.
7877623264SMatthew G. Knepley 
7977623264SMatthew G. Knepley   Not Collective
8077623264SMatthew G. Knepley 
8177623264SMatthew G. Knepley   Input parameter:
8277623264SMatthew G. Knepley . path - The dynamic library path
8377623264SMatthew G. Knepley 
8477623264SMatthew G. Knepley   Level: advanced
8577623264SMatthew G. Knepley 
8677623264SMatthew G. Knepley .keywords: PetscPartitioner, register, all
8777623264SMatthew G. Knepley .seealso:  PetscPartitionerRegister(), PetscPartitionerRegisterDestroy()
8877623264SMatthew G. Knepley @*/
89dd63322aSSatish Balay PetscErrorCode PetscPartitionerRegisterAll(void)
9077623264SMatthew G. Knepley {
9177623264SMatthew G. Knepley   PetscErrorCode ierr;
9277623264SMatthew G. Knepley 
9377623264SMatthew G. Knepley   PetscFunctionBegin;
940f51fdf8SToby Isaac   if (PetscPartitionerRegisterAllCalled) PetscFunctionReturn(0);
9577623264SMatthew G. Knepley   PetscPartitionerRegisterAllCalled = PETSC_TRUE;
9677623264SMatthew G. Knepley 
9777623264SMatthew G. Knepley   ierr = PetscPartitionerRegister(PETSCPARTITIONERCHACO,    PetscPartitionerCreate_Chaco);CHKERRQ(ierr);
9877623264SMatthew G. Knepley   ierr = PetscPartitionerRegister(PETSCPARTITIONERPARMETIS, PetscPartitionerCreate_ParMetis);CHKERRQ(ierr);
99137cd93aSLisandro Dalcin   ierr = PetscPartitionerRegister(PETSCPARTITIONERPTSCOTCH, PetscPartitionerCreate_PTScotch);CHKERRQ(ierr);
10077623264SMatthew G. Knepley   ierr = PetscPartitionerRegister(PETSCPARTITIONERSHELL,    PetscPartitionerCreate_Shell);CHKERRQ(ierr);
101555a9cf8SMatthew G. Knepley   ierr = PetscPartitionerRegister(PETSCPARTITIONERSIMPLE,   PetscPartitionerCreate_Simple);CHKERRQ(ierr);
102dae52e14SToby Isaac   ierr = PetscPartitionerRegister(PETSCPARTITIONERGATHER,   PetscPartitionerCreate_Gather);CHKERRQ(ierr);
103de68236aSVaclav Hapla   ierr = PetscPartitionerRegister(PETSCPARTITIONERMATPARTITIONING, PetscPartitionerCreate_MatPartitioning);CHKERRQ(ierr);
10477623264SMatthew G. Knepley   PetscFunctionReturn(0);
10577623264SMatthew G. Knepley }
10606759e06SMatthew G. Knepley #include <petscfe.h>     /*I  "petscfe.h"  I*/
107264ace61SBarry Smith 
10806759e06SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscSpaceCreate_Polynomial(PetscSpace);
109*36e5648fSToby Isaac PETSC_EXTERN PetscErrorCode PetscSpaceCreate_Tensor(PetscSpace);
1109c3cf19fSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscSpaceCreate_Point(PetscSpace);
1112f5fb066SToby Isaac PETSC_EXTERN PetscErrorCode PetscSpaceCreate_Subspace(PetscSpace);
11206759e06SMatthew G. Knepley 
11306759e06SMatthew G. Knepley /*@C
11406759e06SMatthew G. Knepley   PetscSpaceRegisterAll - Registers all of the PetscSpace components in the PetscFE package.
11506759e06SMatthew G. Knepley 
11606759e06SMatthew G. Knepley   Not Collective
11706759e06SMatthew G. Knepley 
11806759e06SMatthew G. Knepley   Input parameter:
11906759e06SMatthew G. Knepley . path - The dynamic library path
12006759e06SMatthew G. Knepley 
12106759e06SMatthew G. Knepley   Level: advanced
12206759e06SMatthew G. Knepley 
12306759e06SMatthew G. Knepley .keywords: PetscSpace, register, all
12406759e06SMatthew G. Knepley .seealso:  PetscSpaceRegister(), PetscSpaceRegisterDestroy()
12506759e06SMatthew G. Knepley @*/
126dd63322aSSatish Balay PetscErrorCode PetscSpaceRegisterAll(void)
12706759e06SMatthew G. Knepley {
12806759e06SMatthew G. Knepley   PetscErrorCode ierr;
12906759e06SMatthew G. Knepley 
13006759e06SMatthew G. Knepley   PetscFunctionBegin;
1310f51fdf8SToby Isaac   if (PetscSpaceRegisterAllCalled) PetscFunctionReturn(0);
13206759e06SMatthew G. Knepley   PetscSpaceRegisterAllCalled = PETSC_TRUE;
13306759e06SMatthew G. Knepley 
13406759e06SMatthew G. Knepley   ierr = PetscSpaceRegister(PETSCSPACEPOLYNOMIAL, PetscSpaceCreate_Polynomial);CHKERRQ(ierr);
135*36e5648fSToby Isaac   ierr = PetscSpaceRegister(PETSCSPACETENSOR,     PetscSpaceCreate_Tensor);CHKERRQ(ierr);
1369c3cf19fSMatthew G. Knepley   ierr = PetscSpaceRegister(PETSCSPACEPOINT,      PetscSpaceCreate_Point);CHKERRQ(ierr);
1372f5fb066SToby Isaac   ierr = PetscSpaceRegister(PETSCSPACESUBSPACE,   PetscSpaceCreate_Subspace);CHKERRQ(ierr);
13806759e06SMatthew G. Knepley   PetscFunctionReturn(0);
13906759e06SMatthew G. Knepley }
14006759e06SMatthew G. Knepley 
14106759e06SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscDualSpaceCreate_Lagrange(PetscDualSpace);
142c2765ee2SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscDualSpaceCreate_Simple(PetscDualSpace);
14306759e06SMatthew G. Knepley 
14406759e06SMatthew G. Knepley /*@C
14506759e06SMatthew G. Knepley   PetscDualSpaceRegisterAll - Registers all of the PetscDualSpace components in the PetscFE package.
14606759e06SMatthew G. Knepley 
14706759e06SMatthew G. Knepley   Not Collective
14806759e06SMatthew G. Knepley 
14906759e06SMatthew G. Knepley   Input parameter:
15006759e06SMatthew G. Knepley . path - The dynamic library path
15106759e06SMatthew G. Knepley 
15206759e06SMatthew G. Knepley   Level: advanced
15306759e06SMatthew G. Knepley 
15406759e06SMatthew G. Knepley .keywords: PetscDualSpace, register, all
15506759e06SMatthew G. Knepley .seealso:  PetscDualSpaceRegister(), PetscDualSpaceRegisterDestroy()
15606759e06SMatthew G. Knepley @*/
157dd63322aSSatish Balay PetscErrorCode PetscDualSpaceRegisterAll(void)
15806759e06SMatthew G. Knepley {
15906759e06SMatthew G. Knepley   PetscErrorCode ierr;
16006759e06SMatthew G. Knepley 
16106759e06SMatthew G. Knepley   PetscFunctionBegin;
1620f51fdf8SToby Isaac   if (PetscDualSpaceRegisterAllCalled) PetscFunctionReturn(0);
16306759e06SMatthew G. Knepley   PetscDualSpaceRegisterAllCalled = PETSC_TRUE;
16406759e06SMatthew G. Knepley 
16506759e06SMatthew G. Knepley   ierr = PetscDualSpaceRegister(PETSCDUALSPACELAGRANGE, PetscDualSpaceCreate_Lagrange);CHKERRQ(ierr);
166c2765ee2SMatthew G. Knepley   ierr = PetscDualSpaceRegister(PETSCDUALSPACESIMPLE,   PetscDualSpaceCreate_Simple);CHKERRQ(ierr);
16706759e06SMatthew G. Knepley   PetscFunctionReturn(0);
16806759e06SMatthew G. Knepley }
1690483ade4SMatthew G. Knepley 
1700483ade4SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFECreate_Basic(PetscFE);
171aaf1837cSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFECreate_Nonaffine(PetscFE);
172aaf1837cSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFECreate_Composite(PetscFE);
173497880caSRichard Tran Mills #if defined(PETSC_HAVE_OPENCL)
174133ee763SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFECreate_OpenCL(PetscFE);
175133ee763SMatthew G. Knepley #endif
1760483ade4SMatthew G. Knepley 
1770483ade4SMatthew G. Knepley /*@C
1780483ade4SMatthew G. Knepley   PetscFERegisterAll - Registers all of the PetscFE components in the PetscFE package.
1790483ade4SMatthew G. Knepley 
1800483ade4SMatthew G. Knepley   Not Collective
1810483ade4SMatthew G. Knepley 
1820483ade4SMatthew G. Knepley   Input parameter:
1830483ade4SMatthew G. Knepley . path - The dynamic library path
1840483ade4SMatthew G. Knepley 
1850483ade4SMatthew G. Knepley   Level: advanced
1860483ade4SMatthew G. Knepley 
1870483ade4SMatthew G. Knepley .keywords: PetscFE, register, all
1880483ade4SMatthew G. Knepley .seealso:  PetscFERegister(), PetscFERegisterDestroy()
1890483ade4SMatthew G. Knepley @*/
190dd63322aSSatish Balay PetscErrorCode PetscFERegisterAll(void)
1910483ade4SMatthew G. Knepley {
1920483ade4SMatthew G. Knepley   PetscErrorCode ierr;
1930483ade4SMatthew G. Knepley 
1940483ade4SMatthew G. Knepley   PetscFunctionBegin;
1950f51fdf8SToby Isaac   if (PetscFERegisterAllCalled) PetscFunctionReturn(0);
1960483ade4SMatthew G. Knepley   PetscFERegisterAllCalled = PETSC_TRUE;
1970483ade4SMatthew G. Knepley 
1980483ade4SMatthew G. Knepley   ierr = PetscFERegister(PETSCFEBASIC,     PetscFECreate_Basic);CHKERRQ(ierr);
199aaf1837cSMatthew G. Knepley   ierr = PetscFERegister(PETSCFECOMPOSITE, PetscFECreate_Composite);CHKERRQ(ierr);
200497880caSRichard Tran Mills #if defined(PETSC_HAVE_OPENCL)
201133ee763SMatthew G. Knepley   ierr = PetscFERegister(PETSCFEOPENCL, PetscFECreate_OpenCL);CHKERRQ(ierr);
202133ee763SMatthew G. Knepley #endif
2030483ade4SMatthew G. Knepley   PetscFunctionReturn(0);
2040483ade4SMatthew G. Knepley }
205f62f30faSMatthew G. Knepley #include <petscfv.h>     /*I  "petscfv.h"  I*/
206f62f30faSMatthew G. Knepley 
207ab2453f0SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_Sin(PetscLimiter);
2089347ee04SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_Zero(PetscLimiter);
2099347ee04SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_None(PetscLimiter);
2109347ee04SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_Minmod(PetscLimiter);
2119347ee04SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_VanLeer(PetscLimiter);
2129347ee04SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_VanAlbada(PetscLimiter);
2139347ee04SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_Superbee(PetscLimiter);
2149347ee04SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_MC(PetscLimiter);
215ab2453f0SMatthew G. Knepley 
216ab2453f0SMatthew G. Knepley /*@C
217ab2453f0SMatthew G. Knepley   PetscLimiterRegisterAll - Registers all of the PetscLimiter components in the PetscFV package.
218ab2453f0SMatthew G. Knepley 
219ab2453f0SMatthew G. Knepley   Not Collective
220ab2453f0SMatthew G. Knepley 
221ab2453f0SMatthew G. Knepley   Input parameter:
222ab2453f0SMatthew G. Knepley . path - The dynamic library path
223ab2453f0SMatthew G. Knepley 
224ab2453f0SMatthew G. Knepley   Level: advanced
225ab2453f0SMatthew G. Knepley 
226ab2453f0SMatthew G. Knepley .keywords: PetscLimiter, register, all
227ab2453f0SMatthew G. Knepley .seealso:  PetscLimiterRegister(), PetscLimiterRegisterDestroy()
228ab2453f0SMatthew G. Knepley @*/
229dd63322aSSatish Balay PetscErrorCode PetscLimiterRegisterAll(void)
230ab2453f0SMatthew G. Knepley {
231ab2453f0SMatthew G. Knepley   PetscErrorCode ierr;
232ab2453f0SMatthew G. Knepley 
233ab2453f0SMatthew G. Knepley   PetscFunctionBegin;
2340f51fdf8SToby Isaac   if (PetscLimiterRegisterAllCalled) PetscFunctionReturn(0);
235ab2453f0SMatthew G. Knepley   PetscLimiterRegisterAllCalled = PETSC_TRUE;
236ab2453f0SMatthew G. Knepley 
237ab2453f0SMatthew G. Knepley   ierr = PetscLimiterRegister(PETSCLIMITERSIN,       PetscLimiterCreate_Sin);CHKERRQ(ierr);
2389347ee04SMatthew G. Knepley   ierr = PetscLimiterRegister(PETSCLIMITERZERO,      PetscLimiterCreate_Zero);CHKERRQ(ierr);
2399347ee04SMatthew G. Knepley   ierr = PetscLimiterRegister(PETSCLIMITERNONE,      PetscLimiterCreate_None);CHKERRQ(ierr);
2409347ee04SMatthew G. Knepley   ierr = PetscLimiterRegister(PETSCLIMITERMINMOD,    PetscLimiterCreate_Minmod);CHKERRQ(ierr);
2419347ee04SMatthew G. Knepley   ierr = PetscLimiterRegister(PETSCLIMITERVANLEER,   PetscLimiterCreate_VanLeer);CHKERRQ(ierr);
2429347ee04SMatthew G. Knepley   ierr = PetscLimiterRegister(PETSCLIMITERVANALBADA, PetscLimiterCreate_VanAlbada);CHKERRQ(ierr);
2439347ee04SMatthew G. Knepley   ierr = PetscLimiterRegister(PETSCLIMITERSUPERBEE,  PetscLimiterCreate_Superbee);CHKERRQ(ierr);
2449347ee04SMatthew G. Knepley   ierr = PetscLimiterRegister(PETSCLIMITERMC,        PetscLimiterCreate_MC);CHKERRQ(ierr);
245ab2453f0SMatthew G. Knepley   PetscFunctionReturn(0);
246ab2453f0SMatthew G. Knepley }
247ab2453f0SMatthew G. Knepley 
248f62f30faSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFVCreate_Upwind(PetscFV);
2490545663fSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFVCreate_LeastSquares(PetscFV);
250f62f30faSMatthew G. Knepley 
251f62f30faSMatthew G. Knepley /*@C
2520545663fSMatthew G. Knepley   PetscFVRegisterAll - Registers all of the PetscFV components in the PetscFV package.
253f62f30faSMatthew G. Knepley 
254f62f30faSMatthew G. Knepley   Not Collective
255f62f30faSMatthew G. Knepley 
256f62f30faSMatthew G. Knepley   Input parameter:
257f62f30faSMatthew G. Knepley . path - The dynamic library path
258f62f30faSMatthew G. Knepley 
259f62f30faSMatthew G. Knepley   Level: advanced
260f62f30faSMatthew G. Knepley 
261f62f30faSMatthew G. Knepley .keywords: PetscFV, register, all
262f62f30faSMatthew G. Knepley .seealso:  PetscFVRegister(), PetscFVRegisterDestroy()
263f62f30faSMatthew G. Knepley @*/
264dd63322aSSatish Balay PetscErrorCode PetscFVRegisterAll(void)
265f62f30faSMatthew G. Knepley {
266f62f30faSMatthew G. Knepley   PetscErrorCode ierr;
267f62f30faSMatthew G. Knepley 
268f62f30faSMatthew G. Knepley   PetscFunctionBegin;
2690f51fdf8SToby Isaac   if (PetscFVRegisterAllCalled) PetscFunctionReturn(0);
270f62f30faSMatthew G. Knepley   PetscFVRegisterAllCalled = PETSC_TRUE;
271f62f30faSMatthew G. Knepley 
272f62f30faSMatthew G. Knepley   ierr = PetscFVRegister(PETSCFVUPWIND,       PetscFVCreate_Upwind);CHKERRQ(ierr);
2730545663fSMatthew G. Knepley   ierr = PetscFVRegister(PETSCFVLEASTSQUARES, PetscFVCreate_LeastSquares);CHKERRQ(ierr);
274f62f30faSMatthew G. Knepley   PetscFunctionReturn(0);
275f62f30faSMatthew G. Knepley }
2762764a2aaSMatthew G. Knepley #include <petscds.h>     /*I  "petscds.h"  I*/
277022a7a5cSMatthew G. Knepley 
2782764a2aaSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscDSCreate_Basic(PetscDS);
279022a7a5cSMatthew G. Knepley 
280022a7a5cSMatthew G. Knepley /*@C
2812764a2aaSMatthew G. Knepley   PetscDSRegisterAll - Registers all of the PetscDS components in the PetscDS package.
282022a7a5cSMatthew G. Knepley 
283022a7a5cSMatthew G. Knepley   Not Collective
284022a7a5cSMatthew G. Knepley 
285022a7a5cSMatthew G. Knepley   Input parameter:
286022a7a5cSMatthew G. Knepley . path - The dynamic library path
287022a7a5cSMatthew G. Knepley 
288022a7a5cSMatthew G. Knepley   Level: advanced
289022a7a5cSMatthew G. Knepley 
2902764a2aaSMatthew G. Knepley .keywords: PetscDS, register, all
2912764a2aaSMatthew G. Knepley .seealso:  PetscDSRegister(), PetscDSRegisterDestroy()
292022a7a5cSMatthew G. Knepley @*/
293dd63322aSSatish Balay PetscErrorCode PetscDSRegisterAll(void)
294022a7a5cSMatthew G. Knepley {
295022a7a5cSMatthew G. Knepley   PetscErrorCode ierr;
296022a7a5cSMatthew G. Knepley 
297022a7a5cSMatthew G. Knepley   PetscFunctionBegin;
2980f51fdf8SToby Isaac   if (PetscDSRegisterAllCalled) PetscFunctionReturn(0);
2992764a2aaSMatthew G. Knepley   PetscDSRegisterAllCalled = PETSC_TRUE;
300022a7a5cSMatthew G. Knepley 
3012764a2aaSMatthew G. Knepley   ierr = PetscDSRegister(PETSCDSBASIC, PetscDSCreate_Basic);CHKERRQ(ierr);
302022a7a5cSMatthew G. Knepley   PetscFunctionReturn(0);
303022a7a5cSMatthew G. Knepley }
304