Change operator interface to use templates if not vectorized.
This became an issue while realizing the merge requests terraneo/hyteg-form-generator!53.
The idea of this comment will be realized.
Idea: Template the files, if no vectorization was chosen, if a vectorization is chosen, then create a separate file for the vectorization that contains the type name.
EDIT 12.02.2024: If we realize this idea, we have to realize it right now, before the people start working with the generated operators. If we add a templateization afterward, the interfaces are not compatible anymore, since all operators would become template classes. Also, it is confusing if some operators, i.e. the non-vectorized ones, are templated and the others are not, since they have to be used differently.
TODO:
-
Change create_file parameter's default value to false and only create new file if vectorization is set.
Edited by Michael Zikeli