Hello Dumuxers,
I have a question concerning the property system. Is it possible to set a
property depending on the value of another property? I have something in mind
like this:
SET_PROP(MyProblem, MyProperty)
{
private:
enum { boolValue = GET_PROP_VALUE(TypeTag, MyBoolValue) };
public:
if(boolValue)
typedef Dumux::ClassA<TypeTag> type;
else
typedef Dumux:: ClassB <TypeTag> type;
};
Obviously the code has a wrong syntax.
Is there a syntax which could be used to do what I want or do I need to pass
the property value (boolValue ) to the Class and then use class specializations?
Best regards
Georg Futter
--------------------------
German Aerospace Center (DLR)
Institute of Engineering Thermodynamics | Computational Electrochemistry |
Pfaffenwaldring 38-40 | 70569 Stuttgart
Dipl.-Ing. Georg Futter | Ph.D. student
Telefon 0711/6862-8135 | [email protected]<mailto:[email protected]>
www.DLR.de<http://www.dlr.de/>
_______________________________________________
Dumux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux