compiling a single application in OpenFOAM
Hi all,
I'm trying to build a light container with only a few basic OpenFOAM solvers : simpleFoam and cartesianMesh for instance. I understand there are heaps of dependencies here, and I'd like to keep only the bare requirements for these apps. I couldn't succeed so far, so I have a couple of questions : - Does it make sense, and will the generated image be that much lighter than the complete build ? - Is there an easy way to do that, some tool which would compile only the required libraries for each ? Thank you for your help ! |
Since the majority of OF is in libraries, could you not simply take the vanilla OF, make a copy, and then delete the libraries and any unused solvers and applications from the copy that you think that you might not need.
I would set up a "test suite" that you can run to check that the solvers that you are interested in work okay, and then start deleting a batch of libraries at a time, running the test suite to check that you didn't remove one that you needed. Be careful though - the suite would need to cover the full range of runtime selected models that you want to employ. As for the first question - does it make sense. In my mind, only if you are REALLY short on disk space, and want to keep the installation size down, otherwise I don't think that you get any substantial memory savings (although I confess I know almost nothing about containers, so I could be totally wrong there). |
All times are GMT -4. The time now is 03:19. |