Hi Timo,

Apparently the piece I was missing was “make clean” in the test directory. 
After that, compiling the executable with make does take into the account the 
changes in timemanager.hh.

Many thanks for your prompt answer!

Best regards,
Nikolai


From: Timo [mailto:[email protected]]
Sent: 01 November 2017 11:32
To: DuMuX User Forum <[email protected]>; Nikolai Andrianov 
<[email protected]>
Subject: Re: [DuMuX] DuMuX re-compilation

Hi Nikolai,

running dunecontrol _configures_ the project and builds the dune libraries. In 
order to _compile_ an executable you have to run make <name_of_executable>. 
Simply changing something in a header file like "timemanager.hh" just requires 
to compile the exeutable again using make. Not a reconfigure with CMake.

The only cases where you need to run dunecontrol again and delete the build 
folders is if you want to link a new library or if you updated a Dune library.

Best wishes,
Timo

Am 01.11.2017 um 10:54 schrieb Nikolai Andrianov 
<[email protected]<mailto:[email protected]>>:
Hello,

Please advise how can I re-compile DuMuX after I’ve changed some files in 
dumux-2.11.0/dumux/common (e.g. timemanager.hh).

Just running “dunecontrol --opts=optim.opts  all” followed by “dunecontrol 
--opts=optim.opts --only=dumux all” apparently does not take into account the 
changes I’ve made. So far I was simply deleting everything in the folders 
“build-cmake” and re-compiling using dunecontrol, but then the re-compilation 
takes ages.

Many thanks,
Nikolai


Nikolai Andrianov

Postdoc

Centre for Oil and Gas - DTU



Technical University of Denmark

<image001.gif>

The Danish Hydrocarbon Research and Technology Centre

Elektrovej

Building 375, room 140

2800 Kgs. Lyngby

Denmark

Mobile +45 42 72 45 16

[email protected]<mailto:[email protected]>

oilgas.dtu.dk<http://oilgas.dtu.dk/>


_______________________________________________
Dumux mailing list
[email protected]<mailto:[email protected]>
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux
_______________________________________________
Dumux mailing list
[email protected]
https://listserv.uni-stuttgart.de/mailman/listinfo/dumux

Reply via email to