METIS partition error

12 views
Skip to first unread message

yuesu jin

unread,
Jul 27, 2020, 12:37:27 AM7/27/20
to deal.II User Group
Dear all, 
  I am running step-17 by mpirun, it returns the error message below:
******************************************
----------------------------------------------------
Exception on processing:

--------------------------------------------------------
An error occurred in line <69> of file </home/yjin6/Deal.II/dealii-9.2.0/source/lac/sparsity_tools.cc> in function
    void dealii::SparsityTools::{anonymous}::partition_metis(const dealii::SparsityPattern&, const std::vector<unsigned int>&, unsigned int, std::vector<unsigned int>&)
The violated condition was:
    false
Additional information:
    The function you called requires METIS, but you did not configure deal.II with METIS.

--------------------------------------------------------
This message does't appear when I use a single node to run it.  Does the sparsity tools  automatically overload to partition_metis under parallel case?  
Thank you!
Best regards
--
Yuesu Jin,
Ph.D student,
University of Houston,
College of Natural Sciences and Mathematics,
Department of Earth and Atmospheric Sciences,
Houston, Texas 77204-5008


David Wells

unread,
Jul 27, 2020, 9:48:03 AM7/27/20
to deal.II User Group
Hi Yuesu,

Essentially, yes. If you look at the code for partition_triangulation you will find

// check for an easy return
if (n_partitions == 1)
  {
    for (const auto &cell : triangulation.active_cell_iterators())
      cell->set_subdomain_id(0);
    return;
  }


Hence step-17 only tries to use metis (and, if metis is not available, aborts) if there are multiple partitions for the mesh.

Best,
David


--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/CA%2B25a%3DJ2Rzk9yL0Zt%2Boq_U-MV4hWcwNJGvj-4tjjjRAqABs81Q%40mail.gmail.com.

yuesu jin

unread,
Jul 27, 2020, 1:41:30 PM7/27/20
to deal.II User Group
Dear David,
 Thank you! It solved the problem.
Best wishes,
Yuesu

Reply all
Reply to author
Forward
0 new messages