From: Renato P. <re...@gm...> - 2018-06-28 15:49:30
|
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 <jwp...@gm...> wrote: > > > On Wed, Jun 27, 2018 at 4:55 PM, Renato Poli <re...@gm...> 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 > |