Good evening everybody,
I could really use some generous advice.
Distributed code, PETSc wrappers, adaptive refinements.
We get to the point of refining:
Vector<float> error_indicators(this->triangulation->n_active_cells());
... some strategy to compute error_indicators ...
parallel::distributed::GridRefinement::refine_and_coarsen_fixed_fraction(
*this->triangulation,
error_indicators,
0.8,
0.02);
cout<<"Rank "<<this->this_mpi_process<<" starts refining and coarsening"<<std::endl;
until here all fine
this->triangulation->execute_coarsening_and_refinement();
But here it breaks... sometimes.
Let me explain my bewilderment:
It may go well for 6 refinement cycles and break at the 7th.
Does anybody have any hint at what I should investigate to figure out the problem?
Thanks in advance!
Best,
Matteo Malvestiti