|
[Sponsors] |
July 31, 2014, 09:27 |
long time compiling (1h)- research shortcut
|
#1 |
New Member
Pierre D.
Join Date: Dec 2011
Posts: 5
Rep Power: 14 |
Dear all,
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 ! Ternox |
|
August 5, 2014, 15:25 |
|
#2 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
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, 05:13 |
|
#3 |
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22 |
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 |
|
Tags |
compilation, resolution, system of equations |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
AMI speed performance | danny123 | OpenFOAM | 21 | October 24, 2020 05:13 |
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 08:47 |
pisoFoam with k-epsilon turb blows up - Some questions | Heroic | OpenFOAM Running, Solving & CFD | 26 | December 17, 2012 04:34 |
Modeling in micron scale using icoFoam | m9819348 | OpenFOAM Running, Solving & CFD | 7 | October 27, 2007 01:36 |