[Dune] printing wrong geometry name

Sreejith Pulloor Kuttanikkad sreejith at hal.iwr.uni-heidelberg.de
Mon Aug 15 10:12:48 CEST 2005


Hello,
When I use the following code to just to print the geometry type name
its printing "unknown" instead of "quadrilateral" 
whats going wrong here?

the code looks something like the following:

#include<iostream>
#include"dune/grid/common/grid.hh"
#include"dune/grid/sgrid.hh"

int main()

{

static const int DIM=2;
typedef Dune::SGrid<DIM,DIM> MyGrid;
int N[2];double H[2]; 
N[0]=2;N[1]=2;
H[0]=1;H[1]=1;

MyGrid grid(N,H);
   
typedef  MyGrid::Codim<0>::LevelIterator Iterator;
Iterator start=grid.lbegin<0>(grid.maxlevel());
Iterator stop=grid.lend<0>(grid.maxlevel());

for (Iterator it=start; it!=stop; ++it)
 std::cout<<it->geometry().type()<<std::endl;

}


cheers,
sreejith

-- 
Sreejith Pulloor Kuttanikkad                       
Interdisciplinary Centre for Scientific Computing 
Ruprecht-Karls-University of Heidelberg          
Room:009, Im Neuenheimer Feld-348                         
69120,Heidelberg,Germany                      
------------------------------------------------
Ph :+49+(0)6221-545689/544412(Off)
   :+49+(0)17624228904(Mob)
http://hal.iwr.uni-heidelberg.de/~sreejith/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




More information about the Dune mailing list