On Wed, Jun 27, 2018 at 4:55 PM, Renato Poli <rebp...@gmail.com> wrote:

> Nice. It is important to identify the source of that value (elem. number,
> for example).
> Is it safe to use the template parameter <T> as a custom class overriding
> the sorting operators?
>
> Something like:
>
> class MyClass {
>     double number_to_classify;
>     unsigned int elem_id;
>     operator< ( ... ) { ... number_to_classify ...}
> }
>

NumericVector is only for type Number (which corresponds to Real or
std::complex depending on how you have compiled libmesh), you can't use it
with generic type T.

-- 
John
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to