CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

Makefile rebuilding everything in SU2.!!!

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By hlk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 3, 2014, 06:25
Default Makefile rebuilding everything in SU2.!!!
  #1
Senior Member
 
Vino
Join Date: Mar 2013
Posts: 130
Rep Power: 13
Vino is on a distinguished road
Hi,

When I modify something in SU2 source code and compiling it, it is rebuilding every *.o files, which is very time consuming. Is there any way to rebuild only those files which undergone modifications?

Thanks.!!!
Vino is offline   Reply With Quote

Old   September 7, 2014, 21:47
Default
  #2
hlk
Senior Member
 
Heather Kline
Join Date: Jun 2013
Posts: 309
Rep Power: 14
hlk is on a distinguished road
The make file should be doing that automatically, only recompiling what is necessary - since many parts of the code depend on each other it is possible that your modifications affect ".o" files whose source files have not been edited, but which depend on ones that have. (aka, if you edit a file code.hpp anything with #include "code.hpp" should be recompiled, otherwise the changes are not actually applied or something might break).

Since make tries to figure out which files need to be recompiled by looking at the timestamp that the file was modified there are other things that would cause unmodified files to be recompiled, for example if you have run "make clean", or if you have run a touch command on some files.
Vino and amitkamboj like this.
hlk is offline   Reply With Quote

Old   September 8, 2014, 12:27
Default
  #3
Senior Member
 
Vino
Join Date: Mar 2013
Posts: 130
Rep Power: 13
Vino is on a distinguished road
Thanks hlk,

I am modifying only "Numerics_direct_mean.cpp" file and recompiling it. When I recompile for the first time , it is rebuilding only the "Numerics_direct_mean.o" & SU2_CFD files. But when again modifying the "Numerics_direct_mean.cpp" file and recompiling it , it rebuilds everything in the second time. And next time , it rebuilds only "Numerics_direct_mean.o" file.

I don't know why it is happening like this. I like to know others facings any such problem . My OS is Ubuntu 13.10. Other OS may/may not have this same problem.
Vino is offline   Reply With Quote

Old   September 17, 2014, 05:42
Default
  #4
Senior Member
 
Vino
Join Date: Mar 2013
Posts: 130
Rep Power: 13
Vino is on a distinguished road
Its working fine with v.3.2.1.!!!

Thanks.!!!
Vino is offline   Reply With Quote

Reply


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
Pointwise-SU2 joint webinar (April 29th) and SU2 v3.1.0 new release fpalacios SU2 News & Announcements 1 April 30, 2014 03:40
Official release of SU2 V3.0 and SU2 Educational V1.0 fpalacios SU2 News & Announcements 2 January 22, 2014 06:28
SU2 suite has moved to GitHub! fpalacios SU2 News & Announcements 0 August 12, 2013 03:07
Welcome to the Stanford University Unstructured (SU2) forum! economon SU2 0 January 7, 2013 03:48
New SU2 Forum Opened at CFD Online pete Site News & Announcements 0 January 5, 2013 18:59


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