Commit d630e048 authored by Martin Nolte's avatar Martin Nolte

[doc] update Doxygen documentation

parent 261cdd8f
add_subdirectory(progs)
add_subdirectory(doxygen)
This diff is collapsed.
add_doxygen_target()
INPUT += @top_srcdir@/dune \
@srcdir@/main.page
@srcdir@/structure.page
<hr size="1">
<table border="0" width="100%">
<tr>
<td style="text-align: left;">
<small>Maintained by @PACKAGE_BUGREPORT@</small>
</td>
<td style="text-align: right;">
<small>Generated on $date by Doxygen $doxygenversion</small>
</td>
</tr>
</table>
</body>
</html>
<html>
<head>
<title>$projectname Documentation</title>
<link href="$relpath$doxygen.css" rel="stylesheet" type="text/css">
<link href="$relpath$tabs.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#ffffff">
/iterators
/Makefile
/Makefile.in
/*.swp
/.deps
add_executable(iterators iterators.cc)
target_link_libraries(iterators ${DUNE_LIBS})
#include <config.h>
#include <iostream>
#include <dune/common/parallel/mpihelper.hh>
#include <dune/grid/io/file/vtk/vtkwriter.hh>
#include <dune/grid/spgrid.hh>
typedef Dune::SPGrid< double, 3 > Grid;
typedef Grid::GlobalVector GlobalVector;
typedef Grid::Domain Domain;
typedef Grid::MultiIndex MultiIndex;
typedef Grid::Codim< 0 >::LeafIterator Iterator;
typedef Grid::LeafGridView GridView;
typedef Grid::LeafIndexSet IndexSet;
typedef Dune::VTKWriter< GridView > VTKWriter;
int main ( int argc, char **argv )
try
{
Dune::MPIHelper::instance( argc, argv );
int cells[ 3 ] = { 4, 4, 4 };
Domain domain( Domain::unitCube() );
Grid grid( domain, MultiIndex( cells ) );
const IndexSet &indexSet = grid.leafIndexSet();
std::vector< double > values( indexSet.size( 0 ), double( 0 ) );
for( unsigned int dir = 0; dir < (1u << 3); ++dir )
{
const Iterator end = grid.leafend< 0 >( dir );
unsigned int count = 0;
for( Iterator it = grid.leafbegin< 0 >( dir ); it != end; ++it, ++count )
{
const IndexSet::IndexType index = indexSet.index( *it );
values[ index ] = double( 1 );
VTKWriter vtkWriter( grid.leafGridView(), Dune::VTK::nonconforming );
vtkWriter.addCellData( values, "Currect Cell" );
std::ostringstream namestream;
namestream << "iterator-" << dir << "-" << count;
std::string name = namestream.str();
vtkWriter.pwrite( name.c_str(), "vtu", "." );
values[ index ] = double( 0 );
}
}
return 0;
}
catch( const Dune::Exception &exception )
{
std::cerr << exception << std::endl;
return 1;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment