On 10/12/19 6:50 AM, 王昆 wrote: > > At the first time step, the criteria only have two values, i.e., 0.0 and > 0.163. And only 6% cells have the larger value. No matter I set the > top_fraction to a value below or above 0.163 (bottom_fraction_of_cells > remains > zero), I can not obtain a finer grid (the result cell number is smaller the > orignial one). Although the cells with the larger criteria are finer than the > ones with smaller criteria, it is actually a result that grid coarsening > happens at cells with smaller criteria while the cells with larger criteria > do > not change. > How can I refine my grid in this case?
It's difficult for me to debug your problem from a distance. But I'd like to point out that the function you call, parallel::distributed::GridRefinement::refine_and_coarsen_fixed_number, takes as argument a *fraction of the cells*, not a value for the error indicator above which the cells should be refined. What happens if you set the top fraction to 1.0 and the bottom fraction 0.0? Best WB -- ------------------------------------------------------------------------ Wolfgang Bangerth email: [email protected] www: http://www.math.colostate.edu/~bangerth/ -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dealii/209d13f3-abfd-581d-41fb-a3775959f34e%40colostate.edu.
