Hi guys,
I am trying to compile parts of PhD code into a working module type git.
But the thing is some parts of it require special functions to be added into core OpenFOAM libraries. I did this when I was working for myself, but now it would become cumbersome. And making a duplicate library feels like too much extra work for little bits like an access feature.
A long time ago I came across the idea of code patches where existing files could be modified according to the patch file.
Are there any good resources on how to achieve this?
Let's say I have a set of libraries and the main solver as the main chunk.
Plus I have a sort of patch file which makes necessary additions to other files. This will allow me a safe way to introduce those changes without too much work for the user, and less chances of bugs.