Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| slepc [2012/01/18 18:25] – créée admin | slepc [2016/11/28 12:55] (Version actuelle) – [Versions installées] admin | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== SLEPc ====== | ====== SLEPc ====== | ||
| - | **SLEPc** is a software | + | |
| + | SLEPc, the Scalable Library for Eigenvalue Problem computations, | ||
| + | |||
| + | The emphasis of the software is on methods and techniques appropriate for problems in which the associated matrices are sparse, for example, those arising after the discretization of partial differential equations. Therefore, most of the methods offered by the library are projection methods or other methods | ||
| + | |||
| + | SLEPc is a general library in the sense that it covers standard and generalized eigenvalue problems, both Hermitian and non-Hermitian, | ||
| + | SLEPc solvers | ||
| + | |||
| + | SLEPc is built on top of PETSc the Portable, Extensible Toolkit for Scientific computation. It can be considered an extension of PETSc providing all the functionality necessary | ||
| + | |||
| + | source : http:// | ||
| + | |||
| + | ====== Versions installées ====== | ||
| + | |||
| + | * 3.7.3 dépend de PETSc 3.7.3 | ||
| + | |||
| + | |||
| + | ====== Utilisation ====== | ||
| + | |||
| + | Il faut charger le modules nécessaires : | ||
| + | |||
| + | < | ||
| + | $ module numlib/ | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== Compilation ===== | ||
| + | |||
| + | Prenons un exemple simple ' | ||
| + | |||
| + | <file C hello.c> | ||
| + | static char help[] = " | ||
| + | |||
| + | #include " | ||
| + | |||
| + | #undef __FUNCT__ | ||
| + | #define __FUNCT__ " | ||
| + | int main( int argc, char **argv ) | ||
| + | { | ||
| + | int ierr; | ||
| + | |||
| + | SlepcInitialize(& | ||
| + | |||
| + | ierr = PetscPrintf(PETSC_COMM_WORLD, | ||
| + | |||
| + | CHKERRQ(ierr); | ||
| + | |||
| + | ierr = SlepcFinalize(); | ||
| + | |||
| + | CHKERRQ(ierr); | ||
| + | |||
| + | return 0; | ||
| + | } | ||
| + | |||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | Pour compiler on utilise le makefile générique suivant : | ||
| + | |||
| + | <file c Makefile> | ||
| + | hello: hello.o chkopts | ||
| + | -${CLINKER} -o hello hello.o ${SLEPC_LIB} | ||
| + | ${RM} hello.o | ||
| + | |||
| + | include ${SLEPC_DIR}/ | ||
| + | |||
| + | </ | ||
| + | |||
| + | <code > | ||
| + | make hello | ||
| + | </ | ||
| + | ===== Documentation ===== | ||
| + | |||
| + | Documentation en local : $SLEPC_DIR/ | ||
| + | |||
| + | [[ http:// | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||