|
[Sponsors] |
September 3, 2014, 06:25 |
Makefile rebuilding everything in SU2.!!!
|
#1 |
Senior Member
Vino
Join Date: Mar 2013
Posts: 130
Rep Power: 13 |
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.!!! |
|
September 7, 2014, 21:47 |
|
#2 |
Senior Member
Heather Kline
Join Date: Jun 2013
Posts: 309
Rep Power: 14 |
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. |
|
September 8, 2014, 12:27 |
|
#3 |
Senior Member
Vino
Join Date: Mar 2013
Posts: 130
Rep Power: 13 |
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. |
|
September 17, 2014, 05:42 |
|
#4 |
Senior Member
Vino
Join Date: Mar 2013
Posts: 130
Rep Power: 13 |
Its working fine with v.3.2.1.!!!
Thanks.!!! |
|
|
|
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 |