...
 
Commits (2)
DGF
% Elements = 2 | Vertices = 12
VERTEX
0.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00
5.0000000000000000e-01 0.0000000000000000e+00 0.0000000000000000e+00
0.0000000000000000e+00 1.0000000000000000e+00 0.0000000000000000e+00
5.0000000000000000e-01 1.0000000000000000e+00 0.0000000000000000e+00
0.0000000000000000e+00 0.0000000000000000e+00 1.0000000000000000e+00
5.0000000000000000e-01 0.0000000000000000e+00 1.0000000000000000e+00
0.0000000000000000e+00 1.0000000000000000e+00 1.0000000000000000e+00
5.0000000000000000e-01 1.0000000000000000e+00 1.0000000000000000e+00
1.0000000000000000e+00 0.0000000000000000e+00 0.0000000000000000e+00
1.0000000000000000e+00 1.0000000000000000e+00 0.0000000000000000e+00
1.0000000000000000e+00 0.0000000000000000e+00 1.0000000000000000e+00
1.0000000000000000e+00 1.0000000000000000e+00 1.0000000000000000e+00
#
CUBE
0 1 2 3 4 5 6 7
3 9 7 11 1 8 5 10
#
......@@ -36,7 +36,7 @@ try
return 0;
}
#if 1
#if 0
using GridType = Dune::ALUGrid<2, 2, Dune::cube, Dune::nonconforming>;
Dune::GridPtr< GridType > gridPtr( filename );
......@@ -75,12 +75,16 @@ try
vtkWriter.write( "sphere-out" );
#else
{
using GridType = Dune::ALUGrid<3, 3, Dune::simplex, Dune::conforming>;
using GridType = Dune::ALUGrid<3, 3, Dune::cube, Dune::nonconforming>;
Dune::GridPtr< GridType > gridPtr( filename );
gridPtr.loadBalance();
GridType& grid = *gridPtr;
// grid is ready and load balanced at that point
DGFWriter< typename GridType::LeafGridView > writer( grid.leafGridView() );
writer.write( filename + "-out.dgf" );
std::cout << "P[ " << rank << " ] parameters = " << gridPtr.nofParameters( 0 ) << std::endl;
auto lvlView = gridPtr->levelGridView( 0 );
const auto end = lvlView.end< 0 > ();
......
......@@ -35,7 +35,7 @@ if( ALUGRID_DOWNLOAD_MESH_CONSISTENCY )
UPDATE_COMMAND ""
INSTALL_COMMAND ""
)
set(MESH_CONSISTENCY_DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/mesh-consistency-prefix/src/mesh-consistency)
set(MESH_CONSISTENCY_DOWNLOAD_DIR ${CMAKE_CURRENT_BINARY_DIR}/mesh-consistency/src/mesh-consistency)
# search mesh-consistency header
find_path(MESH_CONSISTENCY_INCLUDE_DIR
......