|July 31, 2014, 08:27||
long time compiling (1h)- research shortcut
Join Date: Dec 2011
Posts: 5Rep Power: 6
I am by now modifying the way equations are solved in OF221. To be precise, it is the method of solving the equation system with another method.
My problem is that it takes at least ONE hour to compile... and after, when I check the resolution, if I have done a mistake, it will take another hour to copile again.
Is there a shortcut so that I could recompile a part only or a way to be quicker ?
Thank you by advance and have a nice month of august !
|August 5, 2014, 14:25||
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 727Rep Power: 20
If you have a multicore machine, you can compile in parallel. You need to set the WM_NCOMPPROCs variable to the number of processors you want to use to compile. Other than that, if you are compiling the entire source tree (which seems like you need to if you are changing the solution method to something completely new) there is no shortcut as far as I know I'm afraid.
|August 6, 2014, 04:13||
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 435Rep Power: 14
Another thing you can do is create a separate library with your custom solver algorithm. That way you don't have to compile all of OpenFOAM, just the bits you're working with.
Follow me on twitter @DavidGaden
|compilation, resolution, system of equations|
|Thread||Thread Starter||Forum||Replies||Last Post|
|pimpleFoam: turbulence->correct(); is not executed when using residualControl||hfs||OpenFOAM Running, Solving & CFD||3||October 29, 2013 09:35|
|dynamic Mesh is faster than MRF????||sharonyue||OpenFOAM Running, Solving & CFD||14||August 26, 2013 07:47|
|pisoFoam with k-epsilon turb blows up - Some questions||Heroic||OpenFOAM Running, Solving & CFD||26||December 17, 2012 04:34|
|AMI speed performance||danny123||OpenFOAM||19||October 24, 2012 07:44|
|Modeling in micron scale using icoFoam||m9819348||OpenFOAM Running, Solving & CFD||7||October 27, 2007 00:36|