Skip to content
Snippets Groups Projects
Commit 310e4426 authored by Sreejith Pulloor Kuttanikkad's avatar Sreejith Pulloor Kuttanikkad
Browse files

slightly modified the example code in the script

[[Imported from SVN: r4546]]
parent 88a8eee2
No related tags found
No related merge requests found
......@@ -313,12 +313,22 @@ cat> "$PROJECT/$PROJECT.cc" << CC_DELIM
# include "config.h"
#endif
#include <iostream>
#include <dune/common/exceptions.hh>
#include"dune/grid/sgrid.hh" // load sgrid definition
#include"dune/grid/common/gridinfo.hh" // definition of gridinfo
int main()
{
try
{
std::cout << "Hello World! This is ${PROJECT}." << std::endl;
// make a grid
const int dim=3;
typedef Dune::SGrid<dim,dim> GridType;
Dune::FieldVector<int,dim> N(3);
Dune::FieldVector<GridType::ctype,dim> L(-1.0);
Dune::FieldVector<GridType::ctype,dim> H(1.0);
GridType grid(N,L,H);
// print some information about the grid
Dune::gridinfo(grid);
return 0;
}
catch (Dune::Exception &e)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment