Setting callback in forms
Hi,
having written my first lines of code for a form that uses a material parameter (p2_epsilonvar*
) I must admit, that IMHO having to pass the callback functions already in the constructor makes this a little bit unflexible. Basically I had to duplicate the comparison function in HytegVsFenicsFormTest, since I need to call a different constructor for those forms than for the other ones.
Additionally the 3D variants of the form (index 2 for test or trial function) only expect to receive a single callback function, while the other ones require two (one for 2D, one for 3D), which adds another difficulty for generalised coding.
I'd like to discuss the pros and cons of following the same approach we use for the blending map, which is to set it after construction. Also it would IMHO be nice to only need to set on callback. Should we generate separate forms for 2D and 3D to solve this?
Cheers
Marcus