CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

long time compiling (1h)- research shortcut

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   July 31, 2014, 08:27
Default long time compiling (1h)- research shortcut
New Member
Pierre D.
Join Date: Dec 2011
Posts: 5
Rep Power: 7
Ternox is on a distinguished road
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 is offline   Reply With Quote

Old   August 5, 2014, 14:25
Senior Member
mturcios777's Avatar
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 734
Rep Power: 21
mturcios777 will become famous soon enough
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.
mturcios777 is offline   Reply With Quote

Old   August 6, 2014, 04:13
Senior Member
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 436
Rep Power: 15
marupio is on a distinguished road
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
marupio is offline   Reply With Quote


compilation, resolution, system of equations

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
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

All times are GMT -4. The time now is 14:15.