mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-29 20:43:49 -06:00
Merge pull request #570 from blattms/fix-alugrid-master
Fixes g++-8's problems with return type deduction (ALUGrid master).
This commit is contained in:
commit
e4fb8f5994
@ -188,12 +188,10 @@ void testTetrahedron()
|
||||
std::vector<unsigned int> v = { 0, 1, 2, 3 };
|
||||
// in Dune >= 2.6 topologyIds seem to be opaque integers. WTF!?
|
||||
gf.insertElement(Dune::GeometryType(/*topologyId=*/0, dim), v);
|
||||
auto *grid = gf.createGrid();
|
||||
const auto& grid = *gf.createGrid();
|
||||
|
||||
// write the sub-control volumes to a VTK file.
|
||||
writeTetrahedronSubControlVolumes(*grid);
|
||||
|
||||
delete grid;
|
||||
writeTetrahedronSubControlVolumes(grid);
|
||||
#endif // HAVE_DUNE_ALUGRID
|
||||
}
|
||||
|
||||
@ -283,12 +281,10 @@ void testCube()
|
||||
std::vector<unsigned int> v = { 0, 1, 2, 3, 4, 5, 6, 7 };
|
||||
// in Dune >= 2.6 topologyIds seem to be opaque integers. WTF!?
|
||||
gf.insertElement(Dune::GeometryType((1 << dim) - 1, dim), v);
|
||||
auto *grid = gf.createGrid();
|
||||
const auto& grid = *gf.createGrid();
|
||||
|
||||
// write the sub-control volumes to a VTK file.
|
||||
writeCubeSubControlVolumes(*grid);
|
||||
|
||||
delete grid;
|
||||
writeCubeSubControlVolumes(grid);
|
||||
#endif // HAVE_DUNE_ALUGRID
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user