configure PETSC_ARCH=linux-gnu -with-cc=gcc -with-cxx=g++ -with-fc=gfortran -download-mpich Specify different PETSC_ARCH for each build. Install 2 variants of PETSc, one with gnu, the other with intel compilers. configure -with-cc=gcc -with-fc=gfortran -with-cxx=g++ -with-clanguage=cxx -download-fblaslapack -download-mpich -with-scalar-type=complex Possibly faster complex number performance on some systems): (add the option -with-fortran-kernels=generic to get configure -with-blas-lapack-dir=/usr/local/blaslapack -with-cc=/usr/local/mpich/bin/mpicc -with-mpi-f90=/usr/local/mpich/bin/mpif90 -with-mpiexec=/usr/local/mpich/bin/mpiexecīuild Complex version of PETSc configure -with-blas-lapack-dir=/usr/local/blaslapack -with-mpi-dir=/usr/local/mpich So that mpicc/mpif90 can be picked up from mpi-dir] [Note: Do not specify -with-cc -with-fc etc when using -with-mpi-dir. If BLAS, LAPACK, MPI are already installed in known user location use: Mpif90, mpiexec are available via PATH - configure does not require any additional options. If BLAS, LAPACK, MPI are already installed in default system/compiler locations and mpicc, configure -with-cc=gcc -with-cxx=0 -with-fc=0 -download-f2cblaslapack -download-mpich Same as above - but do not have a fortran compiler. LAPACK, MPICH if they are not already installed on the system): Locally for testing - for example one can update these files and run as:Īssuming BLAS, LAPACK, MPICH are not currently To install in system directories and for package managers.Įxamples are at config/examples/*.py.To extract the sources use: gunzip -c petsc-3.5.0.tar.gz | tar -xof.For most users we recommend installing PETSc as a regular/non-root user, perhaps in /home/username/soft.Please download the latest patched tarball.Do not have fortran compiler? check examples below. make problems? Just copy/paste make command printed by configure including PETSC_DIR and PETSC_ARCH options.If you get the message 'No such file or directory' try: python.configure -with-cc=gcc -with-cxx=g++ -with-fc=gfortran -download-fblaslapack -download-mpichĬheck here for MS Windows Installation Encounter problems? Invoke the following commands from the top level PETSc directory:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |