Re: [deal.II] METIS partition error

2020-07-27 Thread yuesu jin
Dear David,
 Thank you! It solved the problem.
Best wishes,
Yuesu

On Mon, Jul 27, 2020 at 8:48 AM David Wells  wrote:

> 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
>
>
> On Mon, Jul 27, 2020 at 12:37 AM yuesu jin  wrote:
>
>> 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
>>  in function
>> void dealii::SparsityTools::{anonymous}::partition_metis(const
>> dealii::SparsityPattern&, const std::vector&, unsigned int,
>> std::vector&)
>> 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
>> 346-404-2062
>>
>> --
>> 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+unsubscr...@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
>> 
>> .
>>
> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/dealii/CABrTbYRvtqh6T%3DbixPYJBA9i7d9QQeKAXaeq4ENEeqKD1k2ESw%40mail.gmail.com
> 
> .
>


-- 
Yuesu Jin,
Ph.D student,
University of Houston,
College of Natural Sciences and Mathematics,
Department of Earth and Atmospheric Sciences,
Houston, Texas 77204-5008
346-404-2062

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CA%2B25a%3DLB8LLCVnPgDnYNDnm-Cp%3DT%3DV2Tr-DSgJNw__%2BQ7Ugfig%40mail.gmail.com.


Re: [deal.II] METIS partition error

2020-07-27 Thread David Wells
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


On Mon, Jul 27, 2020 at 12:37 AM yuesu jin  wrote:

> 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
>  in function
> void dealii::SparsityTools::{anonymous}::partition_metis(const
> dealii::SparsityPattern&, const std::vector&, unsigned int,
> std::vector&)
> 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
> 346-404-2062
>
> --
> 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+unsubscr...@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
> 
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dealii/CABrTbYRvtqh6T%3DbixPYJBA9i7d9QQeKAXaeq4ENEeqKD1k2ESw%40mail.gmail.com.


[deal.II] METIS partition error

2020-07-26 Thread yuesu jin
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
 in function
void dealii::SparsityTools::{anonymous}::partition_metis(const
dealii::SparsityPattern&, const std::vector&, unsigned int,
std::vector&)
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
346-404-2062

-- 
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+unsubscr...@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.