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); 8306759e06SMatthew G. Knepley 8406759e06SMatthew G. Knepley #undef __FUNCT__ 8506759e06SMatthew G. Knepley #define __FUNCT__ "PetscDualSpaceRegisterAll" 8606759e06SMatthew G. Knepley /*@C 8706759e06SMatthew G. Knepley PetscDualSpaceRegisterAll - Registers all of the PetscDualSpace components in the PetscFE package. 8806759e06SMatthew G. Knepley 8906759e06SMatthew G. Knepley Not Collective 9006759e06SMatthew G. Knepley 9106759e06SMatthew G. Knepley Input parameter: 9206759e06SMatthew G. Knepley . path - The dynamic library path 9306759e06SMatthew G. Knepley 9406759e06SMatthew G. Knepley Level: advanced 9506759e06SMatthew G. Knepley 9606759e06SMatthew G. Knepley .keywords: PetscDualSpace, register, all 9706759e06SMatthew G. Knepley .seealso: PetscDualSpaceRegister(), PetscDualSpaceRegisterDestroy() 9806759e06SMatthew G. Knepley @*/ 9906759e06SMatthew G. Knepley PetscErrorCode PetscDualSpaceRegisterAll() 10006759e06SMatthew G. Knepley { 10106759e06SMatthew G. Knepley PetscErrorCode ierr; 10206759e06SMatthew G. Knepley 10306759e06SMatthew G. Knepley PetscFunctionBegin; 10406759e06SMatthew G. Knepley PetscDualSpaceRegisterAllCalled = PETSC_TRUE; 10506759e06SMatthew G. Knepley 10606759e06SMatthew G. Knepley ierr = PetscDualSpaceRegister(PETSCDUALSPACELAGRANGE, PetscDualSpaceCreate_Lagrange);CHKERRQ(ierr); 10706759e06SMatthew G. Knepley PetscFunctionReturn(0); 10806759e06SMatthew G. Knepley } 1090483ade4SMatthew G. Knepley 1100483ade4SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFECreate_Basic(PetscFE); 111aaf1837cSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFECreate_Nonaffine(PetscFE); 112aaf1837cSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFECreate_Composite(PetscFE); 113133ee763SMatthew G. Knepley #ifdef PETSC_HAVE_OPENCL 114133ee763SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFECreate_OpenCL(PetscFE); 115133ee763SMatthew G. Knepley #endif 1160483ade4SMatthew G. Knepley 1170483ade4SMatthew G. Knepley #undef __FUNCT__ 1180483ade4SMatthew G. Knepley #define __FUNCT__ "PetscFERegisterAll" 1190483ade4SMatthew G. Knepley /*@C 1200483ade4SMatthew G. Knepley PetscFERegisterAll - Registers all of the PetscFE components in the PetscFE package. 1210483ade4SMatthew G. Knepley 1220483ade4SMatthew G. Knepley Not Collective 1230483ade4SMatthew G. Knepley 1240483ade4SMatthew G. Knepley Input parameter: 1250483ade4SMatthew G. Knepley . path - The dynamic library path 1260483ade4SMatthew G. Knepley 1270483ade4SMatthew G. Knepley Level: advanced 1280483ade4SMatthew G. Knepley 1290483ade4SMatthew G. Knepley .keywords: PetscFE, register, all 1300483ade4SMatthew G. Knepley .seealso: PetscFERegister(), PetscFERegisterDestroy() 1310483ade4SMatthew G. Knepley @*/ 1320483ade4SMatthew G. Knepley PetscErrorCode PetscFERegisterAll() 1330483ade4SMatthew G. Knepley { 1340483ade4SMatthew G. Knepley PetscErrorCode ierr; 1350483ade4SMatthew G. Knepley 1360483ade4SMatthew G. Knepley PetscFunctionBegin; 1370483ade4SMatthew G. Knepley PetscFERegisterAllCalled = PETSC_TRUE; 1380483ade4SMatthew G. Knepley 1390483ade4SMatthew G. Knepley ierr = PetscFERegister(PETSCFEBASIC, PetscFECreate_Basic);CHKERRQ(ierr); 140aaf1837cSMatthew G. Knepley ierr = PetscFERegister(PETSCFENONAFFINE, PetscFECreate_Nonaffine);CHKERRQ(ierr); 141aaf1837cSMatthew G. Knepley ierr = PetscFERegister(PETSCFECOMPOSITE, PetscFECreate_Composite);CHKERRQ(ierr); 142133ee763SMatthew G. Knepley #ifdef PETSC_HAVE_OPENCL 143133ee763SMatthew G. Knepley ierr = PetscFERegister(PETSCFEOPENCL, PetscFECreate_OpenCL);CHKERRQ(ierr); 144133ee763SMatthew G. Knepley #endif 1450483ade4SMatthew G. Knepley PetscFunctionReturn(0); 1460483ade4SMatthew G. Knepley } 147f62f30faSMatthew G. Knepley #include <petscfv.h> /*I "petscfv.h" I*/ 148f62f30faSMatthew G. Knepley 149ab2453f0SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_Sin(PetscLimiter); 150*9347ee04SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_Zero(PetscLimiter); 151*9347ee04SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_None(PetscLimiter); 152*9347ee04SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_Minmod(PetscLimiter); 153*9347ee04SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_VanLeer(PetscLimiter); 154*9347ee04SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_VanAlbada(PetscLimiter); 155*9347ee04SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_Superbee(PetscLimiter); 156*9347ee04SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_MC(PetscLimiter); 157ab2453f0SMatthew G. Knepley 158ab2453f0SMatthew G. Knepley #undef __FUNCT__ 159ab2453f0SMatthew G. Knepley #define __FUNCT__ "PetscLimiterRegisterAll" 160ab2453f0SMatthew G. Knepley /*@C 161ab2453f0SMatthew G. Knepley PetscLimiterRegisterAll - Registers all of the PetscLimiter components in the PetscFV package. 162ab2453f0SMatthew G. Knepley 163ab2453f0SMatthew G. Knepley Not Collective 164ab2453f0SMatthew G. Knepley 165ab2453f0SMatthew G. Knepley Input parameter: 166ab2453f0SMatthew G. Knepley . path - The dynamic library path 167ab2453f0SMatthew G. Knepley 168ab2453f0SMatthew G. Knepley Level: advanced 169ab2453f0SMatthew G. Knepley 170ab2453f0SMatthew G. Knepley .keywords: PetscLimiter, register, all 171ab2453f0SMatthew G. Knepley .seealso: PetscLimiterRegister(), PetscLimiterRegisterDestroy() 172ab2453f0SMatthew G. Knepley @*/ 173ab2453f0SMatthew G. Knepley PetscErrorCode PetscLimiterRegisterAll() 174ab2453f0SMatthew G. Knepley { 175ab2453f0SMatthew G. Knepley PetscErrorCode ierr; 176ab2453f0SMatthew G. Knepley 177ab2453f0SMatthew G. Knepley PetscFunctionBegin; 178ab2453f0SMatthew G. Knepley PetscLimiterRegisterAllCalled = PETSC_TRUE; 179ab2453f0SMatthew G. Knepley 180ab2453f0SMatthew G. Knepley ierr = PetscLimiterRegister(PETSCLIMITERSIN, PetscLimiterCreate_Sin);CHKERRQ(ierr); 181*9347ee04SMatthew G. Knepley ierr = PetscLimiterRegister(PETSCLIMITERZERO, PetscLimiterCreate_Zero);CHKERRQ(ierr); 182*9347ee04SMatthew G. Knepley ierr = PetscLimiterRegister(PETSCLIMITERNONE, PetscLimiterCreate_None);CHKERRQ(ierr); 183*9347ee04SMatthew G. Knepley ierr = PetscLimiterRegister(PETSCLIMITERMINMOD, PetscLimiterCreate_Minmod);CHKERRQ(ierr); 184*9347ee04SMatthew G. Knepley ierr = PetscLimiterRegister(PETSCLIMITERVANLEER, PetscLimiterCreate_VanLeer);CHKERRQ(ierr); 185*9347ee04SMatthew G. Knepley ierr = PetscLimiterRegister(PETSCLIMITERVANALBADA, PetscLimiterCreate_VanAlbada);CHKERRQ(ierr); 186*9347ee04SMatthew G. Knepley ierr = PetscLimiterRegister(PETSCLIMITERSUPERBEE, PetscLimiterCreate_Superbee);CHKERRQ(ierr); 187*9347ee04SMatthew G. Knepley ierr = PetscLimiterRegister(PETSCLIMITERMC, PetscLimiterCreate_MC);CHKERRQ(ierr); 188ab2453f0SMatthew G. Knepley PetscFunctionReturn(0); 189ab2453f0SMatthew G. Knepley } 190ab2453f0SMatthew G. Knepley 191f62f30faSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFVCreate_Upwind(PetscFV); 1920545663fSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFVCreate_LeastSquares(PetscFV); 193f62f30faSMatthew G. Knepley 194f62f30faSMatthew G. Knepley #undef __FUNCT__ 195f62f30faSMatthew G. Knepley #define __FUNCT__ "PetscFVRegisterAll" 196f62f30faSMatthew G. Knepley /*@C 1970545663fSMatthew G. Knepley PetscFVRegisterAll - Registers all of the PetscFV components in the PetscFV package. 198f62f30faSMatthew G. Knepley 199f62f30faSMatthew G. Knepley Not Collective 200f62f30faSMatthew G. Knepley 201f62f30faSMatthew G. Knepley Input parameter: 202f62f30faSMatthew G. Knepley . path - The dynamic library path 203f62f30faSMatthew G. Knepley 204f62f30faSMatthew G. Knepley Level: advanced 205f62f30faSMatthew G. Knepley 206f62f30faSMatthew G. Knepley .keywords: PetscFV, register, all 207f62f30faSMatthew G. Knepley .seealso: PetscFVRegister(), PetscFVRegisterDestroy() 208f62f30faSMatthew G. Knepley @*/ 209f62f30faSMatthew G. Knepley PetscErrorCode PetscFVRegisterAll() 210f62f30faSMatthew G. Knepley { 211f62f30faSMatthew G. Knepley PetscErrorCode ierr; 212f62f30faSMatthew G. Knepley 213f62f30faSMatthew G. Knepley PetscFunctionBegin; 214f62f30faSMatthew G. Knepley PetscFVRegisterAllCalled = PETSC_TRUE; 215f62f30faSMatthew G. Knepley 216f62f30faSMatthew G. Knepley ierr = PetscFVRegister(PETSCFVUPWIND, PetscFVCreate_Upwind);CHKERRQ(ierr); 2170545663fSMatthew G. Knepley ierr = PetscFVRegister(PETSCFVLEASTSQUARES, PetscFVCreate_LeastSquares);CHKERRQ(ierr); 218f62f30faSMatthew G. Knepley PetscFunctionReturn(0); 219f62f30faSMatthew G. Knepley } 2202764a2aaSMatthew G. Knepley #include <petscds.h> /*I "petscds.h" I*/ 221022a7a5cSMatthew G. Knepley 2222764a2aaSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscDSCreate_Basic(PetscDS); 223022a7a5cSMatthew G. Knepley 224022a7a5cSMatthew G. Knepley #undef __FUNCT__ 2252764a2aaSMatthew G. Knepley #define __FUNCT__ "PetscDSRegisterAll" 226022a7a5cSMatthew G. Knepley /*@C 2272764a2aaSMatthew G. Knepley PetscDSRegisterAll - Registers all of the PetscDS components in the PetscDS package. 228022a7a5cSMatthew G. Knepley 229022a7a5cSMatthew G. Knepley Not Collective 230022a7a5cSMatthew G. Knepley 231022a7a5cSMatthew G. Knepley Input parameter: 232022a7a5cSMatthew G. Knepley . path - The dynamic library path 233022a7a5cSMatthew G. Knepley 234022a7a5cSMatthew G. Knepley Level: advanced 235022a7a5cSMatthew G. Knepley 2362764a2aaSMatthew G. Knepley .keywords: PetscDS, register, all 2372764a2aaSMatthew G. Knepley .seealso: PetscDSRegister(), PetscDSRegisterDestroy() 238022a7a5cSMatthew G. Knepley @*/ 2392764a2aaSMatthew G. Knepley PetscErrorCode PetscDSRegisterAll() 240022a7a5cSMatthew G. Knepley { 241022a7a5cSMatthew G. Knepley PetscErrorCode ierr; 242022a7a5cSMatthew G. Knepley 243022a7a5cSMatthew G. Knepley PetscFunctionBegin; 2442764a2aaSMatthew G. Knepley PetscDSRegisterAllCalled = PETSC_TRUE; 245022a7a5cSMatthew G. Knepley 2462764a2aaSMatthew G. Knepley ierr = PetscDSRegister(PETSCDSBASIC, PetscDSCreate_Basic);CHKERRQ(ierr); 247022a7a5cSMatthew G. Knepley PetscFunctionReturn(0); 248022a7a5cSMatthew G. Knepley } 249