/*@C MatColoringRegisterAll - Registers all of the matrix Coloring routines in PETSc. Not Collective Level: developer Adding new methods: To add a new method to the registry. Copy this routine and modify it to incorporate a call to MatColoringRegister() for the new method, after the current list. .keywords: matrix, coloring, register, all .seealso: MatColoringRegister(), MatColoringRegisterDestroy() @*/ PetscErrorCode MatColoringRegisterAll(void) { PetscErrorCode ierr; PetscFunctionBegin; if (MatColoringRegisterAllCalled) PetscFunctionReturn(0); MatColoringRegisterAllCalled = PETSC_TRUE; ierr = MatColoringRegister(MATCOLORINGJP,MatColoringCreate_JP);CHKERRQ(ierr); ierr = MatColoringRegister(MATCOLORINGGREEDY,MatColoringCreate_Greedy);CHKERRQ(ierr); ierr = MatColoringRegister(MATCOLORINGPOWER,MatColoringCreate_Power);CHKERRQ(ierr); ierr = MatColoringRegister(MATCOLORINGNATURAL,MatColoringCreate_Natural);CHKERRQ(ierr); ierr = MatColoringRegister(MATCOLORINGSL,MatColoringCreate_SL);CHKERRQ(ierr); ierr = MatColoringRegister(MATCOLORINGID,MatColoringCreate_ID);CHKERRQ(ierr); ierr = MatColoringRegister(MATCOLORINGLF,MatColoringCreate_LF);CHKERRQ(ierr); PetscFunctionReturn(0); }
/*@C MatColoringRegisterAll - Registers all of the matrix Coloring routines in PETSc. Not Collective Level: developer Adding new methods: To add a new method to the registry. Copy this routine and modify it to incorporate a call to MatColoringRegister() for the new method, after the current list. .keywords: matrix, coloring, register, all .seealso: MatColoringRegister(), MatColoringRegisterDestroy() @*/ PetscErrorCode MatColoringRegisterAll(void) { PetscErrorCode ierr; PetscFunctionBegin; MatColoringRegisterAllCalled = PETSC_TRUE; ierr = MatColoringRegister(MATCOLORINGJP,MatColoringCreate_JP);CHKERRQ(ierr); ierr = MatColoringRegister(MATCOLORINGMIS,MatColoringCreate_MIS);CHKERRQ(ierr); ierr = MatColoringRegister(MATCOLORINGNATURAL,MatColoringCreate_Natural);CHKERRQ(ierr); ierr = MatColoringRegister(MATCOLORINGSL,MatColoringCreate_SL);CHKERRQ(ierr); ierr = MatColoringRegister(MATCOLORINGID,MatColoringCreate_ID);CHKERRQ(ierr); ierr = MatColoringRegister(MATCOLORINGLF,MatColoringCreate_LF);CHKERRQ(ierr); PetscFunctionReturn(0); }