viennagrid / viennagrid-dev

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

Simplify mesh type retrieval from segmentation #41

Closed karlrupp closed 10 years ago

karlrupp commented 10 years ago

Right now one has to write

viennagrid::result_of::segmentation_mesh_type<SegmentationT>::type

to obtain the mesh type from a segmentation. However, it would be nice to reuse the existing mesh-metafunction for this:

viennagrid::result_of::mesh<SegmentationT>::type

or at least to error out when using mesh<> on a segmentation. Currently this interprets the segmentation as a config and tries to create a new mesh type, which is misleading.