1264ace61SBarry Smith 23c48a1e8SJed Brown #include <petscdm.h> /*I "petscdm.h" I*/ 38cc058d9SJed Brown PETSC_EXTERN PetscErrorCode DMCreate_DA(DM); 48cc058d9SJed Brown PETSC_EXTERN PetscErrorCode DMCreate_Composite(DM); 58cc058d9SJed Brown PETSC_EXTERN PetscErrorCode DMCreate_Sliced(DM); 68cc058d9SJed Brown PETSC_EXTERN PetscErrorCode DMCreate_Shell(DM); 78cc058d9SJed Brown PETSC_EXTERN PetscErrorCode DMCreate_Redundant(DM); 88cc058d9SJed Brown PETSC_EXTERN PetscErrorCode DMCreate_Plex(DM); 98cc058d9SJed Brown PETSC_EXTERN PetscErrorCode DMCreate_Patch(DM); 10edf5aa1bSVijay Mahadevan #if defined(PETSC_HAVE_MOAB) 111d72bce8STim Tautges PETSC_EXTERN PetscErrorCode DMCreate_Moab(DM); 12edf5aa1bSVijay Mahadevan #endif 13406e3badSSatish Balay PETSC_EXTERN PetscErrorCode DMCreate_Network(DM); 14264ace61SBarry Smith 15264ace61SBarry Smith #undef __FUNCT__ 16264ace61SBarry Smith #define __FUNCT__ "DMRegisterAll" 17264ace61SBarry Smith /*@C 18264ace61SBarry Smith DMRegisterAll - Registers all of the DM components in the DM package. 19264ace61SBarry Smith 20264ace61SBarry Smith Not Collective 21264ace61SBarry Smith 22264ace61SBarry Smith Input parameter: 23264ace61SBarry Smith . path - The dynamic library path 24264ace61SBarry Smith 25264ace61SBarry Smith Level: advanced 26264ace61SBarry Smith 27264ace61SBarry Smith .keywords: DM, register, all 28607a6623SBarry Smith .seealso: DMRegister(), DMRegisterDestroy() 29264ace61SBarry Smith @*/ 30607a6623SBarry Smith PetscErrorCode DMRegisterAll() 31264ace61SBarry Smith { 32264ace61SBarry Smith PetscErrorCode ierr; 33264ace61SBarry Smith 34264ace61SBarry Smith PetscFunctionBegin; 35264ace61SBarry Smith DMRegisterAllCalled = PETSC_TRUE; 368865f1eaSKarl Rupp 37bdf89e91SBarry Smith ierr = DMRegister(DMDA, DMCreate_DA);CHKERRQ(ierr); 38bdf89e91SBarry Smith ierr = DMRegister(DMCOMPOSITE, DMCreate_Composite);CHKERRQ(ierr); 39bdf89e91SBarry Smith ierr = DMRegister(DMSLICED, DMCreate_Sliced);CHKERRQ(ierr); 40bdf89e91SBarry Smith ierr = DMRegister(DMSHELL, DMCreate_Shell);CHKERRQ(ierr); 41bdf89e91SBarry Smith ierr = DMRegister(DMREDUNDANT, DMCreate_Redundant);CHKERRQ(ierr); 42bdf89e91SBarry Smith ierr = DMRegister(DMPLEX, DMCreate_Plex);CHKERRQ(ierr); 43bdf89e91SBarry Smith ierr = DMRegister(DMPATCH, DMCreate_Patch);CHKERRQ(ierr); 441d72bce8STim Tautges #if defined(PETSC_HAVE_MOAB) 458a1af44dSJed Brown ierr = DMRegister(DMMOAB, DMCreate_Moab);CHKERRQ(ierr); 461d72bce8STim Tautges #endif 47b2930b41SShri Abhyankar ierr = DMRegister(DMNETWORK, DMCreate_Network);CHKERRQ(ierr); 48264ace61SBarry Smith PetscFunctionReturn(0); 49264ace61SBarry Smith } 5006759e06SMatthew G. Knepley #include <petscfe.h> /*I "petscfe.h" I*/ 51264ace61SBarry Smith 5206759e06SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscSpaceCreate_Polynomial(PetscSpace); 532bdb15eaSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscSpaceCreate_DG(PetscSpace); 5406759e06SMatthew G. Knepley 5506759e06SMatthew G. Knepley #undef __FUNCT__ 5606759e06SMatthew G. Knepley #define __FUNCT__ "PetscSpaceRegisterAll" 5706759e06SMatthew G. Knepley /*@C 5806759e06SMatthew G. Knepley PetscSpaceRegisterAll - Registers all of the PetscSpace components in the PetscFE package. 5906759e06SMatthew G. Knepley 6006759e06SMatthew G. Knepley Not Collective 6106759e06SMatthew G. Knepley 6206759e06SMatthew G. Knepley Input parameter: 6306759e06SMatthew G. Knepley . path - The dynamic library path 6406759e06SMatthew G. Knepley 6506759e06SMatthew G. Knepley Level: advanced 6606759e06SMatthew G. Knepley 6706759e06SMatthew G. Knepley .keywords: PetscSpace, register, all 6806759e06SMatthew G. Knepley .seealso: PetscSpaceRegister(), PetscSpaceRegisterDestroy() 6906759e06SMatthew G. Knepley @*/ 7006759e06SMatthew G. Knepley PetscErrorCode PetscSpaceRegisterAll() 7106759e06SMatthew G. Knepley { 7206759e06SMatthew G. Knepley PetscErrorCode ierr; 7306759e06SMatthew G. Knepley 7406759e06SMatthew G. Knepley PetscFunctionBegin; 7506759e06SMatthew G. Knepley PetscSpaceRegisterAllCalled = PETSC_TRUE; 7606759e06SMatthew G. Knepley 7706759e06SMatthew G. Knepley ierr = PetscSpaceRegister(PETSCSPACEPOLYNOMIAL, PetscSpaceCreate_Polynomial);CHKERRQ(ierr); 782bdb15eaSMatthew G. Knepley ierr = PetscSpaceRegister(PETSCSPACEDG, PetscSpaceCreate_DG);CHKERRQ(ierr); 7906759e06SMatthew G. Knepley PetscFunctionReturn(0); 8006759e06SMatthew G. Knepley } 8106759e06SMatthew G. Knepley 8206759e06SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscDualSpaceCreate_Lagrange(PetscDualSpace); 83*c2765ee2SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscDualSpaceCreate_Simple(PetscDualSpace); 8406759e06SMatthew G. Knepley 8506759e06SMatthew G. Knepley #undef __FUNCT__ 8606759e06SMatthew G. Knepley #define __FUNCT__ "PetscDualSpaceRegisterAll" 8706759e06SMatthew G. Knepley /*@C 8806759e06SMatthew G. Knepley PetscDualSpaceRegisterAll - Registers all of the PetscDualSpace components in the PetscFE package. 8906759e06SMatthew G. Knepley 9006759e06SMatthew G. Knepley Not Collective 9106759e06SMatthew G. Knepley 9206759e06SMatthew G. Knepley Input parameter: 9306759e06SMatthew G. Knepley . path - The dynamic library path 9406759e06SMatthew G. Knepley 9506759e06SMatthew G. Knepley Level: advanced 9606759e06SMatthew G. Knepley 9706759e06SMatthew G. Knepley .keywords: PetscDualSpace, register, all 9806759e06SMatthew G. Knepley .seealso: PetscDualSpaceRegister(), PetscDualSpaceRegisterDestroy() 9906759e06SMatthew G. Knepley @*/ 10006759e06SMatthew G. Knepley PetscErrorCode PetscDualSpaceRegisterAll() 10106759e06SMatthew G. Knepley { 10206759e06SMatthew G. Knepley PetscErrorCode ierr; 10306759e06SMatthew G. Knepley 10406759e06SMatthew G. Knepley PetscFunctionBegin; 10506759e06SMatthew G. Knepley PetscDualSpaceRegisterAllCalled = PETSC_TRUE; 10606759e06SMatthew G. Knepley 10706759e06SMatthew G. Knepley ierr = PetscDualSpaceRegister(PETSCDUALSPACELAGRANGE, PetscDualSpaceCreate_Lagrange);CHKERRQ(ierr); 108*c2765ee2SMatthew G. Knepley ierr = PetscDualSpaceRegister(PETSCDUALSPACESIMPLE, PetscDualSpaceCreate_Simple);CHKERRQ(ierr); 10906759e06SMatthew G. Knepley PetscFunctionReturn(0); 11006759e06SMatthew G. Knepley } 1110483ade4SMatthew G. Knepley 1120483ade4SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFECreate_Basic(PetscFE); 113aaf1837cSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFECreate_Nonaffine(PetscFE); 114aaf1837cSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFECreate_Composite(PetscFE); 115133ee763SMatthew G. Knepley #ifdef PETSC_HAVE_OPENCL 116133ee763SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFECreate_OpenCL(PetscFE); 117133ee763SMatthew G. Knepley #endif 1180483ade4SMatthew G. Knepley 1190483ade4SMatthew G. Knepley #undef __FUNCT__ 1200483ade4SMatthew G. Knepley #define __FUNCT__ "PetscFERegisterAll" 1210483ade4SMatthew G. Knepley /*@C 1220483ade4SMatthew G. Knepley PetscFERegisterAll - Registers all of the PetscFE components in the PetscFE package. 1230483ade4SMatthew G. Knepley 1240483ade4SMatthew G. Knepley Not Collective 1250483ade4SMatthew G. Knepley 1260483ade4SMatthew G. Knepley Input parameter: 1270483ade4SMatthew G. Knepley . path - The dynamic library path 1280483ade4SMatthew G. Knepley 1290483ade4SMatthew G. Knepley Level: advanced 1300483ade4SMatthew G. Knepley 1310483ade4SMatthew G. Knepley .keywords: PetscFE, register, all 1320483ade4SMatthew G. Knepley .seealso: PetscFERegister(), PetscFERegisterDestroy() 1330483ade4SMatthew G. Knepley @*/ 1340483ade4SMatthew G. Knepley PetscErrorCode PetscFERegisterAll() 1350483ade4SMatthew G. Knepley { 1360483ade4SMatthew G. Knepley PetscErrorCode ierr; 1370483ade4SMatthew G. Knepley 1380483ade4SMatthew G. Knepley PetscFunctionBegin; 1390483ade4SMatthew G. Knepley PetscFERegisterAllCalled = PETSC_TRUE; 1400483ade4SMatthew G. Knepley 1410483ade4SMatthew G. Knepley ierr = PetscFERegister(PETSCFEBASIC, PetscFECreate_Basic);CHKERRQ(ierr); 142aaf1837cSMatthew G. Knepley ierr = PetscFERegister(PETSCFENONAFFINE, PetscFECreate_Nonaffine);CHKERRQ(ierr); 143aaf1837cSMatthew G. Knepley ierr = PetscFERegister(PETSCFECOMPOSITE, PetscFECreate_Composite);CHKERRQ(ierr); 144133ee763SMatthew G. Knepley #ifdef PETSC_HAVE_OPENCL 145133ee763SMatthew G. Knepley ierr = PetscFERegister(PETSCFEOPENCL, PetscFECreate_OpenCL);CHKERRQ(ierr); 146133ee763SMatthew G. Knepley #endif 1470483ade4SMatthew G. Knepley PetscFunctionReturn(0); 1480483ade4SMatthew G. Knepley } 149f62f30faSMatthew G. Knepley #include <petscfv.h> /*I "petscfv.h" I*/ 150f62f30faSMatthew G. Knepley 151ab2453f0SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_Sin(PetscLimiter); 1529347ee04SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_Zero(PetscLimiter); 1539347ee04SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_None(PetscLimiter); 1549347ee04SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_Minmod(PetscLimiter); 1559347ee04SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_VanLeer(PetscLimiter); 1569347ee04SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_VanAlbada(PetscLimiter); 1579347ee04SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_Superbee(PetscLimiter); 1589347ee04SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_MC(PetscLimiter); 159ab2453f0SMatthew G. Knepley 160ab2453f0SMatthew G. Knepley #undef __FUNCT__ 161ab2453f0SMatthew G. Knepley #define __FUNCT__ "PetscLimiterRegisterAll" 162ab2453f0SMatthew G. Knepley /*@C 163ab2453f0SMatthew G. Knepley PetscLimiterRegisterAll - Registers all of the PetscLimiter components in the PetscFV package. 164ab2453f0SMatthew G. Knepley 165ab2453f0SMatthew G. Knepley Not Collective 166ab2453f0SMatthew G. Knepley 167ab2453f0SMatthew G. Knepley Input parameter: 168ab2453f0SMatthew G. Knepley . path - The dynamic library path 169ab2453f0SMatthew G. Knepley 170ab2453f0SMatthew G. Knepley Level: advanced 171ab2453f0SMatthew G. Knepley 172ab2453f0SMatthew G. Knepley .keywords: PetscLimiter, register, all 173ab2453f0SMatthew G. Knepley .seealso: PetscLimiterRegister(), PetscLimiterRegisterDestroy() 174ab2453f0SMatthew G. Knepley @*/ 175ab2453f0SMatthew G. Knepley PetscErrorCode PetscLimiterRegisterAll() 176ab2453f0SMatthew G. Knepley { 177ab2453f0SMatthew G. Knepley PetscErrorCode ierr; 178ab2453f0SMatthew G. Knepley 179ab2453f0SMatthew G. Knepley PetscFunctionBegin; 180ab2453f0SMatthew G. Knepley PetscLimiterRegisterAllCalled = PETSC_TRUE; 181ab2453f0SMatthew G. Knepley 182ab2453f0SMatthew G. Knepley ierr = PetscLimiterRegister(PETSCLIMITERSIN, PetscLimiterCreate_Sin);CHKERRQ(ierr); 1839347ee04SMatthew G. Knepley ierr = PetscLimiterRegister(PETSCLIMITERZERO, PetscLimiterCreate_Zero);CHKERRQ(ierr); 1849347ee04SMatthew G. Knepley ierr = PetscLimiterRegister(PETSCLIMITERNONE, PetscLimiterCreate_None);CHKERRQ(ierr); 1859347ee04SMatthew G. Knepley ierr = PetscLimiterRegister(PETSCLIMITERMINMOD, PetscLimiterCreate_Minmod);CHKERRQ(ierr); 1869347ee04SMatthew G. Knepley ierr = PetscLimiterRegister(PETSCLIMITERVANLEER, PetscLimiterCreate_VanLeer);CHKERRQ(ierr); 1879347ee04SMatthew G. Knepley ierr = PetscLimiterRegister(PETSCLIMITERVANALBADA, PetscLimiterCreate_VanAlbada);CHKERRQ(ierr); 1889347ee04SMatthew G. Knepley ierr = PetscLimiterRegister(PETSCLIMITERSUPERBEE, PetscLimiterCreate_Superbee);CHKERRQ(ierr); 1899347ee04SMatthew G. Knepley ierr = PetscLimiterRegister(PETSCLIMITERMC, PetscLimiterCreate_MC);CHKERRQ(ierr); 190ab2453f0SMatthew G. Knepley PetscFunctionReturn(0); 191ab2453f0SMatthew G. Knepley } 192ab2453f0SMatthew G. Knepley 193f62f30faSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFVCreate_Upwind(PetscFV); 1940545663fSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFVCreate_LeastSquares(PetscFV); 195f62f30faSMatthew G. Knepley 196f62f30faSMatthew G. Knepley #undef __FUNCT__ 197f62f30faSMatthew G. Knepley #define __FUNCT__ "PetscFVRegisterAll" 198f62f30faSMatthew G. Knepley /*@C 1990545663fSMatthew G. Knepley PetscFVRegisterAll - Registers all of the PetscFV components in the PetscFV package. 200f62f30faSMatthew G. Knepley 201f62f30faSMatthew G. Knepley Not Collective 202f62f30faSMatthew G. Knepley 203f62f30faSMatthew G. Knepley Input parameter: 204f62f30faSMatthew G. Knepley . path - The dynamic library path 205f62f30faSMatthew G. Knepley 206f62f30faSMatthew G. Knepley Level: advanced 207f62f30faSMatthew G. Knepley 208f62f30faSMatthew G. Knepley .keywords: PetscFV, register, all 209f62f30faSMatthew G. Knepley .seealso: PetscFVRegister(), PetscFVRegisterDestroy() 210f62f30faSMatthew G. Knepley @*/ 211f62f30faSMatthew G. Knepley PetscErrorCode PetscFVRegisterAll() 212f62f30faSMatthew G. Knepley { 213f62f30faSMatthew G. Knepley PetscErrorCode ierr; 214f62f30faSMatthew G. Knepley 215f62f30faSMatthew G. Knepley PetscFunctionBegin; 216f62f30faSMatthew G. Knepley PetscFVRegisterAllCalled = PETSC_TRUE; 217f62f30faSMatthew G. Knepley 218f62f30faSMatthew G. Knepley ierr = PetscFVRegister(PETSCFVUPWIND, PetscFVCreate_Upwind);CHKERRQ(ierr); 2190545663fSMatthew G. Knepley ierr = PetscFVRegister(PETSCFVLEASTSQUARES, PetscFVCreate_LeastSquares);CHKERRQ(ierr); 220f62f30faSMatthew G. Knepley PetscFunctionReturn(0); 221f62f30faSMatthew G. Knepley } 2222764a2aaSMatthew G. Knepley #include <petscds.h> /*I "petscds.h" I*/ 223022a7a5cSMatthew G. Knepley 2242764a2aaSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscDSCreate_Basic(PetscDS); 225022a7a5cSMatthew G. Knepley 226022a7a5cSMatthew G. Knepley #undef __FUNCT__ 2272764a2aaSMatthew G. Knepley #define __FUNCT__ "PetscDSRegisterAll" 228022a7a5cSMatthew G. Knepley /*@C 2292764a2aaSMatthew G. Knepley PetscDSRegisterAll - Registers all of the PetscDS components in the PetscDS package. 230022a7a5cSMatthew G. Knepley 231022a7a5cSMatthew G. Knepley Not Collective 232022a7a5cSMatthew G. Knepley 233022a7a5cSMatthew G. Knepley Input parameter: 234022a7a5cSMatthew G. Knepley . path - The dynamic library path 235022a7a5cSMatthew G. Knepley 236022a7a5cSMatthew G. Knepley Level: advanced 237022a7a5cSMatthew G. Knepley 2382764a2aaSMatthew G. Knepley .keywords: PetscDS, register, all 2392764a2aaSMatthew G. Knepley .seealso: PetscDSRegister(), PetscDSRegisterDestroy() 240022a7a5cSMatthew G. Knepley @*/ 2412764a2aaSMatthew G. Knepley PetscErrorCode PetscDSRegisterAll() 242022a7a5cSMatthew G. Knepley { 243022a7a5cSMatthew G. Knepley PetscErrorCode ierr; 244022a7a5cSMatthew G. Knepley 245022a7a5cSMatthew G. Knepley PetscFunctionBegin; 2462764a2aaSMatthew G. Knepley PetscDSRegisterAllCalled = PETSC_TRUE; 247022a7a5cSMatthew G. Knepley 2482764a2aaSMatthew G. Knepley ierr = PetscDSRegister(PETSCDSBASIC, PetscDSCreate_Basic);CHKERRQ(ierr); 249022a7a5cSMatthew G. Knepley PetscFunctionReturn(0); 250022a7a5cSMatthew G. Knepley } 251