#1162 Files "parallel.h" both in ALUGrid and UG
Metadata
Property | Value |
---|---|
Reported by | Bernd Flemisch (bernd@iws.uni-stuttgart.de) |
Reported at | Jul 26, 2012 11:47 |
Type | Bug Report |
Version | 2.2 |
Operating System | Unspecified / All |
Last edited by | Oliver Sander (oliver.sander@tu-dresden.de) |
Last edited at | Sep 21, 2012 14:00 |
Closed by | Oliver Sander (oliver.sander@tu-dresden.de) |
Closed at | Sep 21, 2012 14:00 |
Closed in version | Unknown |
Resolution | Fixed |
Comment |
Description
Both ALUGrid and UG contain a header file "parallel.h." This leads to a compiler error once both ALUGrid and UG are included:
/usr/bin/c++ ... -I/temp/bernd/DUMUX/external/ALUGrid-1.50/include/serial ... -I/temp/bernd/DUMUX/external/ug/include ... In file included from /temp/bernd/DUMUXTEST/dune-grid/dune/grid/uggrid/ugincludes.hh:29:0, ... /temp/bernd/DUMUX/external/ALUGrid-1.50/include/serial/parallel.h:43:17: error: ‘vector’ does not name a type
I can solve the problem by including "ug/parallel.h" instead of only "parallel.h" in ugincludes.hh (patch attached). However, I am not sure whether we can safely assume that the UG include files are always copied into a subfolder "ug" of the UG include directory. But maybe one of you knows.
It would be great if you could apply the/a solution also to the 2.2 branch.