Sorry, the last part of the mail was missing:
If you also want to output velocity, you furthermore need to do this: VtkOutputModule<GridVariables, SolutionVector> vtkWriter(*gridVariables, x, problem->name()); using VelocityOutput = typename GET_PROP_TYPE(TypeTag, VelocityOutput); vtkWriter.addVelocityOutput(std::make_shared<VelocityOutput>(*gridVariables)); Hope this helps. Best wishes Kilian ________________________________ Von: Dumux <[email protected]> im Auftrag von Weishaupt, Kilian <[email protected]> Gesendet: Donnerstag, 26. Juli 2018 07:15:04 An: DuMuX User Forum Betreff: Re: [DuMuX] Compilation error with VtkOutputModule Dear Nikolai, there has been a change to the use of the VtkOutputModule right after the course. You have two options: 1.) You check out the dumux-course-2018 tag which restores the main dumux repository to the state when the course was held by git checkout dumux-course-2018 2.) Or you fix the usage of the VtkOutputModule in your .cc file like this: VtkOutputModule<GridVariables, SolutionVector> vtkWriter(*gridVariables, x, problem->name()); ________________________________ Von: Dumux <[email protected]> im Auftrag von Nikolai Andrianov <[email protected]> Gesendet: Donnerstag, 26. Juli 2018 00:31:38 An: DuMuX User Forum Betreff: [DuMuX] Compilation error with VtkOutputModule Dear DuMuX experts, I have rebuilt dumux after the course last week and got the following error while compiling the exercises from dumux-course, e.g.: /home/andrian/dumux/dumux-course/exercises/exercise-basic/exercise_basic_2p.cc: In function ‘int main(int, char**)’: /home/andrian/dumux/dumux-course/exercises/exercise-basic/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()); The tests in dumux/dumux/test/porousmediumflow compile normally, because there the definition of vtk module is VtkOutputModule<GridVariables, SolutionVector>. Is something missing for the proper compilation of vtk module defined as VtkOutputModule<TypeTag> in dumux-course examples? Many thanks, Nikolai
_______________________________________________ Dumux mailing list [email protected] https://listserv.uni-stuttgart.de/mailman/listinfo/dumux
