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); 101d72bce8STim Tautges PETSC_EXTERN PetscErrorCode DMCreate_Moab(DM); 11*b2930b41SShri Abhyankar PETSC_EXTERN PetscErrorCode DMCreate_Network(DM); 12264ace61SBarry Smith 13264ace61SBarry Smith #undef __FUNCT__ 14264ace61SBarry Smith #define __FUNCT__ "DMRegisterAll" 15264ace61SBarry Smith /*@C 16264ace61SBarry Smith DMRegisterAll - Registers all of the DM components in the DM package. 17264ace61SBarry Smith 18264ace61SBarry Smith Not Collective 19264ace61SBarry Smith 20264ace61SBarry Smith Input parameter: 21264ace61SBarry Smith . path - The dynamic library path 22264ace61SBarry Smith 23264ace61SBarry Smith Level: advanced 24264ace61SBarry Smith 25264ace61SBarry Smith .keywords: DM, register, all 26607a6623SBarry Smith .seealso: DMRegister(), DMRegisterDestroy() 27264ace61SBarry Smith @*/ 28607a6623SBarry Smith PetscErrorCode DMRegisterAll() 29264ace61SBarry Smith { 30264ace61SBarry Smith PetscErrorCode ierr; 31264ace61SBarry Smith 32264ace61SBarry Smith PetscFunctionBegin; 33264ace61SBarry Smith DMRegisterAllCalled = PETSC_TRUE; 348865f1eaSKarl Rupp 35bdf89e91SBarry Smith ierr = DMRegister(DMDA, DMCreate_DA);CHKERRQ(ierr); 36bdf89e91SBarry Smith ierr = DMRegister(DMCOMPOSITE, DMCreate_Composite);CHKERRQ(ierr); 37bdf89e91SBarry Smith ierr = DMRegister(DMSLICED, DMCreate_Sliced);CHKERRQ(ierr); 38bdf89e91SBarry Smith ierr = DMRegister(DMSHELL, DMCreate_Shell);CHKERRQ(ierr); 39bdf89e91SBarry Smith ierr = DMRegister(DMREDUNDANT, DMCreate_Redundant);CHKERRQ(ierr); 40bdf89e91SBarry Smith ierr = DMRegister(DMPLEX, DMCreate_Plex);CHKERRQ(ierr); 41bdf89e91SBarry Smith ierr = DMRegister(DMPATCH, DMCreate_Patch);CHKERRQ(ierr); 421d72bce8STim Tautges #if defined(PETSC_HAVE_MOAB) 438a1af44dSJed Brown ierr = DMRegister(DMMOAB, DMCreate_Moab);CHKERRQ(ierr); 441d72bce8STim Tautges #endif 45*b2930b41SShri Abhyankar ierr = DMRegister(DMNETWORK, DMCreate_Network);CHKERRQ(ierr); 46264ace61SBarry Smith PetscFunctionReturn(0); 47264ace61SBarry Smith } 4806759e06SMatthew G. Knepley #include <petscfe.h> /*I "petscfe.h" I*/ 49264ace61SBarry Smith 5006759e06SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscSpaceCreate_Polynomial(PetscSpace); 512bdb15eaSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscSpaceCreate_DG(PetscSpace); 5206759e06SMatthew G. Knepley 5306759e06SMatthew G. Knepley #undef __FUNCT__ 5406759e06SMatthew G. Knepley #define __FUNCT__ "PetscSpaceRegisterAll" 5506759e06SMatthew G. Knepley /*@C 5606759e06SMatthew G. Knepley PetscSpaceRegisterAll - Registers all of the PetscSpace components in the PetscFE package. 5706759e06SMatthew G. Knepley 5806759e06SMatthew G. Knepley Not Collective 5906759e06SMatthew G. Knepley 6006759e06SMatthew G. Knepley Input parameter: 6106759e06SMatthew G. Knepley . path - The dynamic library path 6206759e06SMatthew G. Knepley 6306759e06SMatthew G. Knepley Level: advanced 6406759e06SMatthew G. Knepley 6506759e06SMatthew G. Knepley .keywords: PetscSpace, register, all 6606759e06SMatthew G. Knepley .seealso: PetscSpaceRegister(), PetscSpaceRegisterDestroy() 6706759e06SMatthew G. Knepley @*/ 6806759e06SMatthew G. Knepley PetscErrorCode PetscSpaceRegisterAll() 6906759e06SMatthew G. Knepley { 7006759e06SMatthew G. Knepley PetscErrorCode ierr; 7106759e06SMatthew G. Knepley 7206759e06SMatthew G. Knepley PetscFunctionBegin; 7306759e06SMatthew G. Knepley PetscSpaceRegisterAllCalled = PETSC_TRUE; 7406759e06SMatthew G. Knepley 7506759e06SMatthew G. Knepley ierr = PetscSpaceRegister(PETSCSPACEPOLYNOMIAL, PetscSpaceCreate_Polynomial);CHKERRQ(ierr); 762bdb15eaSMatthew G. Knepley ierr = PetscSpaceRegister(PETSCSPACEDG, PetscSpaceCreate_DG);CHKERRQ(ierr); 7706759e06SMatthew G. Knepley PetscFunctionReturn(0); 7806759e06SMatthew G. Knepley } 7906759e06SMatthew G. Knepley 8006759e06SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscDualSpaceCreate_Lagrange(PetscDualSpace); 8106759e06SMatthew G. Knepley 8206759e06SMatthew G. Knepley #undef __FUNCT__ 8306759e06SMatthew G. Knepley #define __FUNCT__ "PetscDualSpaceRegisterAll" 8406759e06SMatthew G. Knepley /*@C 8506759e06SMatthew G. Knepley PetscDualSpaceRegisterAll - Registers all of the PetscDualSpace components in the PetscFE package. 8606759e06SMatthew G. Knepley 8706759e06SMatthew G. Knepley Not Collective 8806759e06SMatthew G. Knepley 8906759e06SMatthew G. Knepley Input parameter: 9006759e06SMatthew G. Knepley . path - The dynamic library path 9106759e06SMatthew G. Knepley 9206759e06SMatthew G. Knepley Level: advanced 9306759e06SMatthew G. Knepley 9406759e06SMatthew G. Knepley .keywords: PetscDualSpace, register, all 9506759e06SMatthew G. Knepley .seealso: PetscDualSpaceRegister(), PetscDualSpaceRegisterDestroy() 9606759e06SMatthew G. Knepley @*/ 9706759e06SMatthew G. Knepley PetscErrorCode PetscDualSpaceRegisterAll() 9806759e06SMatthew G. Knepley { 9906759e06SMatthew G. Knepley PetscErrorCode ierr; 10006759e06SMatthew G. Knepley 10106759e06SMatthew G. Knepley PetscFunctionBegin; 10206759e06SMatthew G. Knepley PetscDualSpaceRegisterAllCalled = PETSC_TRUE; 10306759e06SMatthew G. Knepley 10406759e06SMatthew G. Knepley ierr = PetscDualSpaceRegister(PETSCDUALSPACELAGRANGE, PetscDualSpaceCreate_Lagrange);CHKERRQ(ierr); 10506759e06SMatthew G. Knepley PetscFunctionReturn(0); 10606759e06SMatthew G. Knepley } 1070483ade4SMatthew G. Knepley 1080483ade4SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFECreate_Basic(PetscFE); 109aaf1837cSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFECreate_Nonaffine(PetscFE); 110aaf1837cSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFECreate_Composite(PetscFE); 111133ee763SMatthew G. Knepley #ifdef PETSC_HAVE_OPENCL 112133ee763SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFECreate_OpenCL(PetscFE); 113133ee763SMatthew G. Knepley #endif 1140483ade4SMatthew G. Knepley 1150483ade4SMatthew G. Knepley #undef __FUNCT__ 1160483ade4SMatthew G. Knepley #define __FUNCT__ "PetscFERegisterAll" 1170483ade4SMatthew G. Knepley /*@C 1180483ade4SMatthew G. Knepley PetscFERegisterAll - Registers all of the PetscFE components in the PetscFE package. 1190483ade4SMatthew G. Knepley 1200483ade4SMatthew G. Knepley Not Collective 1210483ade4SMatthew G. Knepley 1220483ade4SMatthew G. Knepley Input parameter: 1230483ade4SMatthew G. Knepley . path - The dynamic library path 1240483ade4SMatthew G. Knepley 1250483ade4SMatthew G. Knepley Level: advanced 1260483ade4SMatthew G. Knepley 1270483ade4SMatthew G. Knepley .keywords: PetscFE, register, all 1280483ade4SMatthew G. Knepley .seealso: PetscFERegister(), PetscFERegisterDestroy() 1290483ade4SMatthew G. Knepley @*/ 1300483ade4SMatthew G. Knepley PetscErrorCode PetscFERegisterAll() 1310483ade4SMatthew G. Knepley { 1320483ade4SMatthew G. Knepley PetscErrorCode ierr; 1330483ade4SMatthew G. Knepley 1340483ade4SMatthew G. Knepley PetscFunctionBegin; 1350483ade4SMatthew G. Knepley PetscFERegisterAllCalled = PETSC_TRUE; 1360483ade4SMatthew G. Knepley 1370483ade4SMatthew G. Knepley ierr = PetscFERegister(PETSCFEBASIC, PetscFECreate_Basic);CHKERRQ(ierr); 138aaf1837cSMatthew G. Knepley ierr = PetscFERegister(PETSCFENONAFFINE, PetscFECreate_Nonaffine);CHKERRQ(ierr); 139aaf1837cSMatthew G. Knepley ierr = PetscFERegister(PETSCFECOMPOSITE, PetscFECreate_Composite);CHKERRQ(ierr); 140133ee763SMatthew G. Knepley #ifdef PETSC_HAVE_OPENCL 141133ee763SMatthew G. Knepley ierr = PetscFERegister(PETSCFEOPENCL, PetscFECreate_OpenCL);CHKERRQ(ierr); 142133ee763SMatthew G. Knepley #endif 1430483ade4SMatthew G. Knepley PetscFunctionReturn(0); 1440483ade4SMatthew G. Knepley } 145f62f30faSMatthew G. Knepley #include <petscfv.h> /*I "petscfv.h" I*/ 146f62f30faSMatthew G. Knepley 147ab2453f0SMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscLimiterCreate_Sin(PetscLimiter); 148ab2453f0SMatthew G. Knepley 149ab2453f0SMatthew G. Knepley #undef __FUNCT__ 150ab2453f0SMatthew G. Knepley #define __FUNCT__ "PetscLimiterRegisterAll" 151ab2453f0SMatthew G. Knepley /*@C 152ab2453f0SMatthew G. Knepley PetscLimiterRegisterAll - Registers all of the PetscLimiter components in the PetscFV package. 153ab2453f0SMatthew G. Knepley 154ab2453f0SMatthew G. Knepley Not Collective 155ab2453f0SMatthew G. Knepley 156ab2453f0SMatthew G. Knepley Input parameter: 157ab2453f0SMatthew G. Knepley . path - The dynamic library path 158ab2453f0SMatthew G. Knepley 159ab2453f0SMatthew G. Knepley Level: advanced 160ab2453f0SMatthew G. Knepley 161ab2453f0SMatthew G. Knepley .keywords: PetscLimiter, register, all 162ab2453f0SMatthew G. Knepley .seealso: PetscLimiterRegister(), PetscLimiterRegisterDestroy() 163ab2453f0SMatthew G. Knepley @*/ 164ab2453f0SMatthew G. Knepley PetscErrorCode PetscLimiterRegisterAll() 165ab2453f0SMatthew G. Knepley { 166ab2453f0SMatthew G. Knepley PetscErrorCode ierr; 167ab2453f0SMatthew G. Knepley 168ab2453f0SMatthew G. Knepley PetscFunctionBegin; 169ab2453f0SMatthew G. Knepley PetscLimiterRegisterAllCalled = PETSC_TRUE; 170ab2453f0SMatthew G. Knepley 171ab2453f0SMatthew G. Knepley ierr = PetscLimiterRegister(PETSCLIMITERSIN, PetscLimiterCreate_Sin);CHKERRQ(ierr); 172ab2453f0SMatthew G. Knepley PetscFunctionReturn(0); 173ab2453f0SMatthew G. Knepley } 174ab2453f0SMatthew G. Knepley 175f62f30faSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFVCreate_Upwind(PetscFV); 1760545663fSMatthew G. Knepley PETSC_EXTERN PetscErrorCode PetscFVCreate_LeastSquares(PetscFV); 177f62f30faSMatthew G. Knepley 178f62f30faSMatthew G. Knepley #undef __FUNCT__ 179f62f30faSMatthew G. Knepley #define __FUNCT__ "PetscFVRegisterAll" 180f62f30faSMatthew G. Knepley /*@C 1810545663fSMatthew G. Knepley PetscFVRegisterAll - Registers all of the PetscFV components in the PetscFV package. 182f62f30faSMatthew G. Knepley 183f62f30faSMatthew G. Knepley Not Collective 184f62f30faSMatthew G. Knepley 185f62f30faSMatthew G. Knepley Input parameter: 186f62f30faSMatthew G. Knepley . path - The dynamic library path 187f62f30faSMatthew G. Knepley 188f62f30faSMatthew G. Knepley Level: advanced 189f62f30faSMatthew G. Knepley 190f62f30faSMatthew G. Knepley .keywords: PetscFV, register, all 191f62f30faSMatthew G. Knepley .seealso: PetscFVRegister(), PetscFVRegisterDestroy() 192f62f30faSMatthew G. Knepley @*/ 193f62f30faSMatthew G. Knepley PetscErrorCode PetscFVRegisterAll() 194f62f30faSMatthew G. Knepley { 195f62f30faSMatthew G. Knepley PetscErrorCode ierr; 196f62f30faSMatthew G. Knepley 197f62f30faSMatthew G. Knepley PetscFunctionBegin; 198f62f30faSMatthew G. Knepley PetscFVRegisterAllCalled = PETSC_TRUE; 199f62f30faSMatthew G. Knepley 200f62f30faSMatthew G. Knepley ierr = PetscFVRegister(PETSCFVUPWIND, PetscFVCreate_Upwind);CHKERRQ(ierr); 2010545663fSMatthew G. Knepley ierr = PetscFVRegister(PETSCFVLEASTSQUARES, PetscFVCreate_LeastSquares);CHKERRQ(ierr); 202f62f30faSMatthew G. Knepley PetscFunctionReturn(0); 203f62f30faSMatthew G. Knepley } 204