Should I copy-paste code from NumericVector to build mine? Any suggestion? Another alternative is to sync the solution vector to all processors so that everybody can do the same calculation. Seems a little inefficient, but is simple-and-easy.
rgds, Renato On Wed, Jun 27, 2018 at 8:21 PM, John Peterson <jwpeter...@gmail.com> wrote: > > > 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