idaholab / moose

Multiphysics Object Oriented Simulation Environment
https://www.mooseframework.org
GNU Lesser General Public License v2.1
1.67k stars 1.03k forks source link

PETSc Partitioner cleanup #11848

Open permcody opened 6 years ago

permcody commented 6 years ago

Rationale

Using the new PETSc partitioners might fail, or won't print the correct information on the Console.

Description

There are a few things that need to be cleaned up so that the PETSc partitioners feel like they are a part of MOOSE. First off, if you run PETSc with the "existing" package, you're likely to see something like this:

[0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
[0]PETSC ERROR: Unknown type. Check for miss-spelling or missing package: http://www.mcs.anl.gov/petsc/documentation/installation.html#external
[0]PETSC ERROR: Unknown partitioning type ptscotch
[0]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.
[0]PETSC ERROR: Petsc Release Version 3.8.3, Dec, 09, 2017 
[0]PETSC ERROR: ../../../moose_test-devel on a arch-darwin-c-opt named thearchitect.inl.gov by permcj Thu Jul 12 14:51:43 2018
[0]PETSC ERROR: Configure options --prefix=/opt/moose/petsc-3.8.3/mpich-3.2_clang-5.0.1-opt --download-hypre=1 --with-ssl=0 --with-debugging=no --with-pic=1 --with-shared-libraries=1 --with-cc=mpicc --with-cxx=mpicxx --with-fc=mpif90 --download-fblaslapack=1 --download-metis=1 --download-parmetis=1 --download-superlu_dist=1 --download-mumps=1 --download-scalapack=1 -CC=mpicc -CXX=mpicxx -FC=mpif90 -F77=mpif77 -F90=mpif90 -CFLAGS="-fPIC -fopenmp" -CXXFLAGS="-fPIC -fopenmp" -FFLAGS="-fPIC -fopenmp" -FCFLAGS="-fPIC -fopenmp" -F90FLAGS="-fPIC -fopenmp" -F77FLAGS="-fPIC -fopenmp"
[0]PETSC ERROR: #1 MatPartitioningSetType() line 530 in /private/var/folders/hl/r7dqj_2d48s322zhyg_b05z00000gn/T/moose_package_build_temp/petsc-default-mpich-clang-opt/petsc-3.8.3/src/mat/partition/partition.c

===================================================================================
=   BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
=   PID 24096 RUNNING AT thearchitect.inl.gov
=   EXIT CODE: 6
=   CLEANING UP REMAINING PROCESSES
=   YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
===================================================================================
YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Abort trap: 6 (signal 6)
This typically refers to a problem with your application.
Please see the FAQ page for debugging suggestions

The partitioner name that prints out in the system information (ConsoleUtils) doesn't contain the names of any of these new partitioners.

Impact

Minor: New partitioners aren't required, useability

permcody commented 4 years ago

@fdkong - Maybe we fixed this? Not sure...