CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

long time compiling (1h)- research shortcut

Register Blogs Community New Posts Updated Threads Search

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

Old   August 5, 2014, 15:25
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
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, 05:13
Default
  #3
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 437
Rep Power: 22
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

Reply

Tags
compilation, resolution, system of equations


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 Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 05:09.