Hi Alex,

like Thomas said you have to checkout the right dumux version for the course by 
typing “git checkout dumux-course-2018” (it’s a git tag) in the dumux 
repository. That’s the version that the course was created on.
Alternatively you can use the install script that is located in the 
dumux-course repository which checks out the right version.

Also, I noticed that your Dune setup looks quite big. That might be intended 
and you need all those modules, I don’t know. So just for your information: for 
using dumux or the dumux-course, you don’t need dune-function, dune-grid-glue, 
dune-multidomaingrid, dune-python, dune-typetree.
You might need dune-subgrid for some exercises in the dumux course.

Good luck, hope that helps
Timo 

> On 6. Aug 2018, at 22:38, ALEXANDRE DE LIMA <[email protected]> wrote:
> 
> Dear Thomas and colleagues,
> 
> First, Thank you Thomas for the hint. Now, I am facing new issues :/
> Now, I am having some issues for compiling Dumux-course.
> 
> I have already compiled the multidomain module using the master branch from 
> the Dumux repository. I have tested it in the directory ( 
> build-cmake/test/multidomain) and it was running successfully. But, now I 
> have issues for compiling Dumux-Course. 
> In my first tentative, I was using the attached opts file with  dune-control 
> command. And it was not successful. 
> 
> After, I have changed my optim.opts file for the cmake.opts of the 
> dumux-course repository [ 
> https://git.iws.uni-stuttgart.de/dumux-repositories/dumux-course/blob/master/scripts/install.sh
>  
> <https://git.iws.uni-stuttgart.de/dumux-repositories/dumux-course/blob/master/scripts/install.sh>].
>  Apparently, the compilation was ok, but I still have some issues. 
> 
> Could you help me on that, please?
> 
> 
> At the end of the installation using cmake.opts, I have this message :
> 
> -- Configuring done 
> -- Generating done 
> -- Build files have been written to: 
> /usr/src/dumux/dumux3.0/dune-grid-glue/build-cmake 
> --- calling make for dune-grid-glue --- 
> build directory: build-cmake 
> cmake --build . --  
> [ 50%] Built target dunegridglue 
> [100%] Built target contactmerge 
> --- dune-grid-glue done --- 
> --- done ---
> 
> Checking the modules installed, I have all folders:
> 
> drwxr-xr-x 10 root root 4096 Aug  6 16:47 dumux 
> drwxr-xr-x  9 root root 4096 Aug  6 16:33 dumux-course 
> drwxr-xr-x 13 root root 4096 Aug  6 16:47 dune-alugrid 
> drwxr-xr-x 10 root root 4096 Aug  6 16:47 dune-common 
> drwxr-xr-x 10 root root 4096 Aug  6 16:47 dune-foamgrid 
> drwxr-xr-x  8 root root 4096 Aug  6 16:47 dune-functions 
> drwxr-xr-x  7 root root 4096 Aug  6 16:47 dune-geometry 
> drwxr-xr-x  9 root root 4096 Aug  6 16:47 dune-grid 
> drwxr-xr-x  7 root root 4096 Aug  6 16:47 dune-grid-glue 
> drwxr-xr-x  8 root root 4096 Aug  6 16:47 dune-istl 
> drwxr-xr-x  6 root root 4096 Aug  6 16:47 dune-localfunctions 
> drwxr-xr-x  7 root root 4096 Aug  6 16:47 dune-multidomaingrid 
> drwxr-xr-x 14 root root 4096 Aug  6 16:47 dune-python 
> drwxr-xr-x  8 root root 4096 Aug  6 16:47 dune-typetree 
> drwxr-xr-x 16 root root 4096 Aug  6 16:47 dune-uggrid 
> 
> But when I tried to run the basic-exercise or other, I have this message :
> 
> 
> alima@lts01[/usr/src/dumux/dumux3.0/dumux-course/build-cmake/exercises/exercise-basic]
>  $ sudo make exercise_basic_2p exercise_basic_2p2c
> [ 50%] Building CXX object 
> exercises/exercise-basic/CMakeFiles/exercise_basic_2p.dir/exercise_basic_2p.cc.o
> /usr/src/dumux/dumux3.0/dumux-course/exercises/exercise-basic/exercise_basic_2p.cc
>  <http://exercise_basic_2p.cc/>: In function 'int main(int, char**)':
> /usr/src/dumux/dumux3.0/dumux-course/exercises/exercise-basic/exercise_basic_2p.cc:111
>  <http://exercise_basic_2p.cc:111/>:28: error: wrong number of template 
> arguments (1, should be 2)
>      VtkOutputModule<TypeTag> vtkWriter(*problem, *fvGridGeometry, 
> *gridVariables, x, problem->name());
>                             ^
> In file included from 
> /usr/src/dumux/dumux3.0/dumux-course/exercises/exercise-basic/exercise_basic_2p.cc:46
>  <http://exercise_basic_2p.cc:46/>:0:
> /usr/src/dumux/dumux3.0/dumux/dumux/io/vtkoutputmodule.hh:66:7: note: 
> provided for 'template<class GridVariables, class SolutionVector> class 
> Dumux::VtkOutputModule'
>  class VtkOutputModule
>        ^~~~~~~~~~~~~~~
> /usr/src/dumux/dumux3.0/dumux-course/exercises/exercise-basic/exercise_basic_2p.cc:111
>  <http://exercise_basic_2p.cc:111/>:101: error: expression list treated as 
> compound expression in initializer [-fpermissive]
>      VtkOutputModule<TypeTag> vtkWriter(*problem, *fvGridGeometry, 
> *gridVariables, x, problem->name());
>                                                                               
>                        ^
> /usr/src/dumux/dumux3.0/dumux-course/exercises/exercise-basic/exercise_basic_2p.cc:111
>  <http://exercise_basic_2p.cc:111/>:101: warning: right operand of comma 
> operator has no effect [-Wunused-value]
> /usr/src/dumux/dumux3.0/dumux-course/exercises/exercise-basic/exercise_basic_2p.cc:111
>  <http://exercise_basic_2p.cc:111/>:101: error: cannot convert 
> 'std::__cxx11::string {aka std::__cxx11::basic_string<char>}' to 'int' in 
> initialization
> /usr/src/dumux/dumux3.0/dumux-course/exercises/exercise-basic/exercise_basic_2p.cc:157
>  <http://exercise_basic_2p.cc:157/>:19: error: request for member 'write' in 
> 'vtkWriter', which is of non-class type 'int'
>          vtkWriter.write(timeLoop->time());
>                    ^~~~~
> In file included from 
> /usr/src/dumux/dumux3.0/dumux/dumux/porousmediumflow/2p/model.hh:77:0,
>                  from 
> /usr/src/dumux/dumux3.0/dumux-course/exercises/exercise-basic/injection2pproblem.hh:29,
>                  from 
> /usr/src/dumux/dumux3.0/dumux-course/exercises/exercise-basic/exercise_basic_2p.cc:50
>  <http://exercise_basic_2p.cc:50/>:
> /usr/src/dumux/dumux3.0/dumux/dumux/porousmediumflow/2p/vtkoutputfields.hh: 
> In instantiation of 'static void 
> Dumux::TwoPVtkOutputFields::init(VtkOutputModule&) [with VtkOutputModule = 
> int]':
> /usr/src/dumux/dumux3.0/dumux-course/exercises/exercise-basic/exercise_basic_2p.cc:112
>  <http://exercise_basic_2p.cc:112/>:36:   required from here
> /usr/src/dumux/dumux3.0/dumux/dumux/porousmediumflow/2p/vtkoutputfields.hh:39:74:
>  error: 'int' is not a class, struct, or union type
>          using VolumeVariables = typename VtkOutputModule::VolumeVariables;
>                                                                           ^
> /usr/src/dumux/dumux3.0/dumux/dumux/porousmediumflow/2p/vtkoutputfields.hh:42:13:
>  error: request for member 'addVolumeVariable' in 'vtk', which is of 
> non-class type 'int'
>          vtk.addVolumeVariable([](const VolumeVariables& v){ return 
> v.porosity(); }, "porosity");
>          ~~~~^~~~~~~~~~~~~~~~~
> /usr/src/dumux/dumux3.0/dumux/dumux/porousmediumflow/2p/vtkoutputfields.hh:43:13:
>  error: request for member 'addVolumeVariable' in 'vtk', which is of 
> non-class type 'int'
>          vtk.addVolumeVariable([](const VolumeVariables& v){ return 
> v.capillaryPressure(); }, "pc");
>          ~~~~^~~~~~~~~~~~~~~~~
> /usr/src/dumux/dumux3.0/dumux/dumux/porousmediumflow/2p/vtkoutputfields.hh:45:13:
>  error: request for member 'addVolumeVariable' in 'vtk', which is of 
> non-class type 'int'
>          vtk.addVolumeVariable([](const VolumeVariables& v){ return 
> v.saturation(FS::phase0Idx); }, "S_w");
>          ~~~~^~~~~~~~~~~~~~~~~
> /usr/src/dumux/dumux3.0/dumux/dumux/porousmediumflow/2p/vtkoutputfields.hh:46:13:
>  error: request for member 'addVolumeVariable' in 'vtk', which is of 
> non-class type 'int'
>          vtk.addVolumeVariable([](const VolumeVariables& v){ return 
> v.pressure(FS::phase0Idx); }, "p_w");
>          ~~~~^~~~~~~~~~~~~~~~~
> /usr/src/dumux/dumux3.0/dumux/dumux/porousmediumflow/2p/vtkoutputfields.hh:47:13:
>  error: request for member 'addVolumeVariable' in 'vtk', which is of 
> non-class type 'int'
>          vtk.addVolumeVariable([](const VolumeVariables& v){ return 
> v.density(FS::phase0Idx); }, "rho_w");
>          ~~~~^~~~~~~~~~~~~~~~~
> /usr/src/dumux/dumux3.0/dumux/dumux/porousmediumflow/2p/vtkoutputfields.hh:48:13:
>  error: request for member 'addVolumeVariable' in 'vtk', which is of 
> non-class type 'int'
>          vtk.addVolumeVariable([](const VolumeVariables& v){ return 
> v.mobility(FS::phase0Idx); }, "mob_w");
>          ~~~~^~~~~~~~~~~~~~~~~
> /usr/src/dumux/dumux3.0/dumux/dumux/porousmediumflow/2p/vtkoutputfields.hh:50:13:
>  error: request for member 'addVolumeVariable' in 'vtk', which is of 
> non-class type 'int'
>          vtk.addVolumeVariable([](const VolumeVariables& v){ return 
> v.saturation(FS::phase1Idx); }, "S_n");
>          ~~~~^~~~~~~~~~~~~~~~~
> /usr/src/dumux/dumux3.0/dumux/dumux/porousmediumflow/2p/vtkoutputfields.hh:51:13:
>  error: request for member 'addVolumeVariable' in 'vtk', which is of 
> non-class type 'int'
>          vtk.addVolumeVariable([](const VolumeVariables& v){ return 
> v.pressure(FS::phase1Idx); }, "p_n");
>          ~~~~^~~~~~~~~~~~~~~~~
> /usr/src/dumux/dumux3.0/dumux/dumux/porousmediumflow/2p/vtkoutputfields.hh:52:13:
>  error: request for member 'addVolumeVariable' in 'vtk', which is of 
> non-class type 'int'
>          vtk.addVolumeVariable([](const VolumeVariables& v){ return 
> v.density(FS::phase1Idx); }, "rho_n");
>          ~~~~^~~~~~~~~~~~~~~~~
> /usr/src/dumux/dumux3.0/dumux/dumux/porousmediumflow/2p/vtkoutputfields.hh:53:13:
>  error: request for member 'addVolumeVariable' in 'vtk', which is of 
> non-class type 'int'
>          vtk.addVolumeVariable([](const VolumeVariables& v){ return 
> v.mobility(FS::phase1Idx); }, "mob_n");
>          ~~~~^~~~~~~~~~~~~~~~~
> exercises/exercise-basic/CMakeFiles/exercise_basic_2p.dir/build.make:62: 
> recipe for target 
> 'exercises/exercise-basic/CMakeFiles/exercise_basic_2p.dir/exercise_basic_2p.cc.o'
>  failed
> make[3]: *** 
> [exercises/exercise-basic/CMakeFiles/exercise_basic_2p.dir/exercise_basic_2p.cc.o]
>  Error 1
> CMakeFiles/Makefile2:1597: recipe for target 
> 'exercises/exercise-basic/CMakeFiles/exercise_basic_2p.dir/all' failed
> make[2]: *** [exercises/exercise-basic/CMakeFiles/exercise_basic_2p.dir/all] 
> Error 2
> CMakeFiles/Makefile2:1604: recipe for target 
> 'exercises/exercise-basic/CMakeFiles/exercise_basic_2p.dir/rule' failed
> make[1]: *** [exercises/exercise-basic/CMakeFiles/exercise_basic_2p.dir/rule] 
> Error 2
> Makefile:207: recipe for target 
> 'exercises/exercise-basic/CMakeFiles/exercise_basic_2p.dir/rule' failed
> make: *** [exercises/exercise-basic/CMakeFiles/exercise_basic_2p.dir/rule] 
> Error 2
> 
> Do you know what we are doing wrong? 
> 
> Thank you in advance.
> Alex
> 
> 
> 
> 
> 2018-08-04 15:13 GMT-03:00 Fetzer, Thomas <[email protected] 
> <mailto:[email protected]>>:
> Dear Alex,
> 
> 
> In the current 'master' of dumux there is no example for coupling a turbulent 
> free flow (rans) to a porous medium (darcy) model. If youswitch to the tag 
> 'dumux-course-2018' in dumux and if you checkout the dumux-course repository 
> (https://git.iws.uni-stuttgart.de/dumux-repositories/dumux-course 
> <https://git.iws.uni-stuttgart.de/dumux-repositories/dumux-course>), then 
> you'll find an exercise (together with the solution) for creating a 
> rans-darcy model.
> 
> 
> 
> Kind regards,
> 
> Thomas
> 
> Von: Dumux <[email protected] 
> <mailto:[email protected]>> im Auftrag von Timo Koch 
> <[email protected] <mailto:[email protected]>>
> Gesendet: Mittwoch, 1. August 2018 20:05:49
> An: DuMuX User Forum
> Cc: Daniel Lopes de Carvalho; [email protected] 
> <mailto:[email protected]>
> Betreff: Re: [DuMuX] Issues for installing/using dune-multidomain features
>  
> 
> 
> 
> 
> Viele Grüße,
> Timo
> Am 01.08.2018 um 19:56 schrieb ALEXANDRE DE LIMA <[email protected] 
> <mailto:[email protected]>>:
> 
>> Hello Dumuxers :)
>> 
>> I am new at Dumux community and I am interested in Dumux with its 
>> multidomain features.
>> 
>> So, I have my first question concerning how to enable/install 
>> dune-multidomain. 
>> 
>> We have already compiled the dune-multidomain-grid, now we have a directory 
>> called dune-multidomaingrid, but we still have this message when we tried to 
>> run multidomain test. Please, see attached the error message or the messages 
>> below: 
>> 
> 
> Dear Alex,
> 
> if you are just starting I'll
> advise you to use the newest Dumux version on the master branch. There is no 
> stable release yet but the darcy stokes coupling has been improved alot. It 
> also doesn't depend on dune-multidomaim or pdelab. 
> 
> If that is not an option you need to install dune-multidomain in addtion to 
> dune-multidomaingrid and also dune-pdelab / dune-typetree. You can use the 
> script dumux/bin/installExternal.sh to install those dependencies in the 
> right versions. 
> 
> Dont hesistate to ask more questions!
> Best wishes 
> Timo
>> 
>> alima@lts01[/usr/src/dumux/DUNE/dumux/build/test/multidomain/2czeroeq2p2c] $ 
>> sudo make test_2czeroeq2p2c
>> Scanning dependencies of target test_2czeroeq2p2c
>> Building CXX object 
>> test/multidomain/2czeroeq2p2c/CMakeFiles/test_2czeroeq2p2c.dir/test_2czeroeq2p2c.cc.o
>> /usr/src/dumux/DUNE/dumux/test/multidomain/2czeroeq2p2c/test_2czeroeq2p2c.cc:109:2:
>>  warning: #warning You need to have dune-multidomain installed to run this 
>> test [-Wcpp]
>>  #warning You need to have dune-multidomain installed to run this test
>>   ^~~~~~~
>> Linking CXX executable test_2czeroeq2p2c
>> Built target test_2czeroeq2p2c
>> alima@lts01[/usr/src/dumux/DUNE/dumux/build/test/multidomain/2czeroeq2p2c] $ 
>> sudo ./test_2czeroeq2p2c
>> You need to have dune-multidomain installed to run this test
>> 
>> We have already try to make a symbolic link of dune-multidomaingrid changing 
>> its name, but this workaround did not work too. 
>> 
>> Someone, could help us on this matter? What can we do for solving this issue?
>> 
>> Thank you in advance
>> 
>> Regards,
>> Alex
>> 
>> -- 
>> Alexandre De Lima
>> R&D Reservoir Engineer
>> e-mail: [email protected] <mailto:[email protected]> 
>> https://www.unisim.cepetro.unicamp.br 
>> <https://www.unisim.cepetro.unicamp.br/><dumux_multdomain.PNG>
>> _______________________________________________
>> Dumux mailing list
>> [email protected] <mailto:[email protected]>
>> https://listserv.uni-stuttgart.de/mailman/listinfo/dumux 
>> <https://listserv.uni-stuttgart.de/mailman/listinfo/dumux>
> 
> 
> 
> -- 
> Alexandre De Lima
> R&D Reservoir Engineer
> e-mail: [email protected] <mailto:[email protected]> 
> https://www.unisim.cepetro.unicamp.br 
> <https://www.unisim.cepetro.unicamp.br/><used_optim.opts>_______________________________________________
> Dumux mailing list
> [email protected] <mailto:[email protected]>
> https://listserv.uni-stuttgart.de/mailman/listinfo/dumux 
> <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