Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| slepc [2012/01/18 18:29] – admin | slepc [2016/11/28 12:55] (Version actuelle) – [Versions installées] admin | ||
|---|---|---|---|
| Ligne 12: | Ligne 12: | ||
| source : http:// | 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:// | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||
| + | |||