[petsc-users] PETSc with MUMPS

Barry Smith bsmith at petsc.dev
Wed Dec 9 20:34:44 CST 2020


> So I think the installation is complete. However, when I run my dealii codes, I still received the same error message
>> Additional information: 
>     Your PETSc installation does not include a copy of the MUMPS package necessary for this solver. You will need to configure PETSc so that it includes MUMPS, recompile it, and then re-configure and recompile deal.II as well.
>
   Did you totally reinstall deal.ii after you built this PETSc?  That is delete all the deal.ii directories and install it again fresh?   My guess is that deal.ii cmake may be using some cached information and not properly rebuilding using the latest installed PETSc.

   Barry


> On Dec 9, 2020, at 3:59 PM, Luo Chenyi <cheluo at ethz.ch> wrote:
> 
> Hi Satish,
> 
> many thanks for this detailed cooking recipe (very practical for a beginner)!
> 
> Now I receive the following message
> 
>luochengyi at macbook-pro-2 petsc % make PETSC_DIR=/Users/luochengyi/Downloads/petsc PETSC_ARCH=arch-darwin-c-debug check
> Running check examples to verify correct installation
> Using PETSC_DIR=/Users/luochengyi/Downloads/petsc and PETSC_ARCH=arch-darwin-c-debug
> C/C++ example src/snes/tutorials/ex19 run successfully with 1 MPI process
> C/C++ example src/snes/tutorials/ex19 run successfully with 2 MPI processes
> C/C++ example src/snes/tutorials/ex19 run successfully with mumps
> Fortran example src/snes/tutorials/ex5f run successfully with 1 MPI process
> Completed test examples
>> 
> So I think the installation is complete. However, when I run my dealii codes, I still received the same error message
>> Additional information: 
>     Your PETSc installation does not include a copy of the MUMPS package necessary for this solver. You will need to configure PETSc so that it includes MUMPS, recompile it, and then re-configure and recompile deal.II as well.
>> 
> I think I’ve already configure the PETSc including MUMPS and recompiled it.
> 
> I also use cmake to link the necessary libraries. Is there anything else I need to do?
> 
> Best,
> Chenyi
> 
>> On Dec 9, 2020, at 10:35 PM, Satish Balay <balay at mcs.anl.gov <mailto:balay at mcs.anl.gov>> wrote:
>> 
>> On Wed, 9 Dec 2020, Satish Balay via petsc-users wrote:
>> 
>>> Its best to reinstall brew (packages) and retry.
>> 
>> And here is one way to do this:
>> 
>> 1. Make list of pkgs to reinstall
>> 
>> brew leaves > reinstall.lst
>> 
>> 2. delete all installed brew packages.
>> 
>> brew cleanup
>> brew list > delete.lst
>> brew remove `cat delete.lst`
>> 
>> 3. Now reinstall all required packages
>> brew update
>> brew install `cat reinstall.lst`
>> 
>> 
>> Satish
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20201209/e58f1c40/attachment.html>


More information about the petsc-users mailing list