Skip to content

Added the workspace check, all cpp files are created via CMake and an...

Allen Sanderson requested to merge ARSanderson/nektar:tidy/SS_MatrixFree into master

Highlight: Added the workspace check, all cpp files are created via CMake and an implementation file and a macro

  1. Each operator now has a workspace function which returns the size of the workspace(s) needed. This function allows other operators (Helmholtz) to obtain the maximum workspace size for all operators used.

Note the implementation is based on passing the shape type, there are operators for each dimension. Previously I used the workspace function as a way to check the preconditions. That is now commented out but could still be used.

  1. I created a macro for the instantiation of each operator and shape type. This makes it much easy for future maintenance.

  2. Because of the long compile times cpp files were being created for each operator and shape type. To reduce the code maintenance I created an implementation file, OperatorImp.cpp.in which via CMakeList.txt now creates these files automatically using the macro above.

Merge request reports