[Trilinos-Users] HybridPlatform and ParameterList

Gregor.Matura at dlr.de Gregor.Matura at dlr.de
Wed Jul 9 06:23:50 MDT 2014


Hi all,

I am trying to write a code using Trilinos Tpetra::HybridPlatform and submit my own ParameterList to each node but could not figure out how to accomplish this. Help is very much appreciated.

Tpetra forces me to provide a class with a static run function templated on the (runtime-selected) argument Node. I cannot add a static variable for my ParameterList there because I do not know the Node type at compile time. Furthermore, since the run function has an immutable signature I cannot add my ParameterList there, too.
Thus I've tried the following: I've built a base class with a static protected variable for a ParameterList and a corresponding (static) setter. Now, the run class is derived from this base class so that I can use the setter (of the base class) at compile time and submit the derived node-templated class to HybridPlatform. This approach does compile, but the linker does not like this and the build fails.

Do you have an idea how I can conveniently pass my ParameterList to this run function?

Best regards,

Gregor Matura

--------------------------
Deutsches Zentrum für Luft- und Raumfahrt e.V. (DLR)
German Aerospace Center
Simulation and Software Technology | Linder Hoehe | 51147 Cologne | Germany

Gregor Matura
Telefophone +49-2203-601-3581 | Telefax +49-2203-601-3070 | gregor.matura at dlr.de<mailto:gregor.matura at dlr.de>
www.DLR.de/sc<http://www.dlr.de/sc>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://software.sandia.gov/pipermail/trilinos-users/attachments/20140709/4b52fbe7/attachment.html>


More information about the Trilinos-Users mailing list