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:32] – admin | slepc [2016/11/28 12:55] (Version actuelle) – [Versions installées] admin | ||
|---|---|---|---|
| Ligne 15: | Ligne 15: | ||
| ====== Versions installées ====== | ====== Versions installées ====== | ||
| - | * 3.2-p3 dépend de OpenMPI et Petsc 3.2-p6 | + | * 3.7.3 dépend de PETSc 3.7.3 |
| Ligne 23: | Ligne 23: | ||
| < | < | ||
| - | $ module | + | $ module |
| </ | </ | ||
| + | |||
| + | |||
| + | ===== 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:// | ||
| + | |||
| + | |||
| + | |||
| + | |||