On 5/10/12 7:05 PM, Roy Stogner wrote: > > On Thu, 10 May 2012, Boyce Griffith wrote: > >> Is it feasible to template over the return type in FEBase and then >> have the derived classes pick either scalar or vector versions? > > Hmm... yes, actually. We'd need some kind of traits classes to tell > the code that GradientOf<Number>::type is Gradient and > GradientOf<Gradient>::type is Tensor, but that would be doable. Not > sure if it'd be much of a simplification or not.
It certainly does not seem like a simplification, at least for the library code --- the only really compelling reason to do this, I think, is to avoid the virtual functions. -- Boyce ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Libmesh-devel mailing list Libmesh-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-devel