viennagrid / viennagrid-dev

Developer repository for ViennaGrid. Visit http://viennagrid.sourceforge.net/ for the latest releases.
MIT License
15 stars 7 forks source link

Refinement: First template parameter necessary? #34

Closed karlrupp closed 10 years ago

karlrupp commented 10 years ago

viennagrid::refine( mesh_in, mesh_refined, edge_refinement_tag_field );

Why does one need to pass CellType explicitly?

FlorianRudolf commented 10 years ago

Because why restricting it to cell types? You can use cell_refine which does not require the element type template parameter

karlrupp commented 10 years ago

Why would anybody not use cell refinement? The resulting mesh would be terribly inconsistent.

FlorianRudolf commented 10 years ago

One might want to have a triangle hull in a 3D tetrahedron domain which should be refined and then further processed (e.g. create tetrahedrons)

karlrupp commented 10 years ago

Agreed, good catch. Users should use cell_refine() then.