⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.petsc

📁 cfd求解器使用与gmsh网格的求解
💻 PETSC
字号:
$Id: README.petsc,v 1.3 2006/02/25 08:02:58 geuzaine Exp $To compile PETSc >= 2.3 using complex arithmetic, on a singleprocessor machine:1) Install blas and lapack if they are not already installed. (Note:as of July 20 2005, the versions of blas and lapack shipped withCygwin are buggy and lead to various crashes. You should recompileblas and lapack by yourself if you experience any weird problems.) Youwill also need Python, as well as a C, C++ and a Fortran 77 compiler.2) uncompress the PETSc distriution and, in the top directory, run./config/configure.py --with-scalar-type=complex --with-mpi=0 --with-debugging=03) define PETSC_ARCH and PETSC_DIR in your shell environment4) run "make"To configure GetDP with PETSc support, run./configure --enable-petscin the top level GetDP directory. Then run "make clean" and "make". Ifyou don't want to define PETSC_ARCH or PETSC_DIR "permanently", youcan also configure GetDP with./configure --enable-petsc --with-petsc-arch=XXX --with-petsc-dir=/path/to/petscTo pass options to PETSc, you can either put them in the ~/.petscrcfile, or specify them on the command line. By default, GetDP specifies"reasonable" options to PETSc (GMRES iterative solver with ILU(k)preconditoner and RCMK renumbering ). To print the residual and choose a level of 10 for the fill-in ofILU(k), use:getdp -ksp_monitor -pc_ilu_levels 40To use a direct sparse LU solver instead of the iterative solver, use:getdp -ksp_type preonly -pc_type luCheck DofData/LinAlg_PETSC.c and the PETSc reference manual for a listof other available options.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -