10 Returns the real mesh size plus the level used
12 Peano uses three-partitioning. That is, it will neve be able to match
13 given refinement instructions exactly. All it can do is to approximate
16 This routine is a copy of exaparty.api.Project.real_mesh_size(), but I didn't
17 want to have dependencies between the two packages, i.e. exaparty and
18 the load balancing. Therefore, copying seems to be appropriate.
20 Return a tuple of mesh size and mesh levels
25 while h > prescribed_h:
34 Determine after which step to split
36 This routine is given the level of a mesh and then determines how many
37 mesh construction sweeps Peano will need to get to this level. Usually,
38 people use this information to determine when to issue split instructions.
39 The routine is typically used with the second argument returned by
40 real_mesh_size_and_level().
42 The calculation is close to trivial: As Peano realises a strict
43 flag-then-refine paradigm, it needs two mesh traversals to add a completely
44 new mesh level to a spacetree grid. The first one flags all the fine grid
45 cells, the second one then does the actual refinement.
47 When we have just completed the very last refinement, we have to wait for
48 one more step to ensure that all the stats are
real_mesh_size_and_level(prescribed_h, domain_size)
Returns the real mesh size plus the level used.
compute_regular_mesh_construction_grid_construction_sweeps(level)
Determine after which step to split.