CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   How can I extend simpleFunctionObjects module (https://www.cfd-online.com/Forums/openfoam/60720-how-can-i-extend-simplefunctionobjects-module.html)

alesch December 23, 2008 14:47

Hi: I'd like to extend the
 
Hi:

I'd like to extend the class patchAverageFunction, which is part of the contributed module simpleFunctionObjects.

As a first, and easy, step I've created a new folder, with a .H and a .C file inside.

How should I modify the build files so my new class gets built as well?

I've added my source to Make/files, but when running wmake libso, it complains about missing dependencies for my source file.

wmake does not want to build this .dep file, that I've seen in the other classes.

Thanks in advance, and Merry Christmas!

alesch December 29, 2008 08:17

After a night's sleep I found
 
After a night's sleep I found the solution, :-)

I added the line with my .C file at the end of the build list rather than on top.

That solved it!


All times are GMT -4. The time now is 21:03.