[Dune] FieldVector problem

Errazi BEN AHMED razi.benahmed at gmail.com
Sun Apr 28 16:47:55 CEST 2013


Hi,

I have a problem dealing with FieldVector structure, I have just started
programming using DUNE on Visual studio and I wanted to build the example
shown in the grid how to do tutorial with few changes but I got an error
saying   :\Desktop\Dune
publications\Framework\dune-common-2.2.1\dune-common-2.2.1\dune/common/fvector.hh(20):
fatal error C1021: invalid preprocessor command 'warning'

Can anyone help me please,
thank you
Razi

here is my code

 #include "config.h.in"
#include <dune/grid/sgrid.hh>
#include <dune/grid/common/gridinfo.hh>
#include <dune/common/mpihelper.hh>

int main( int argc, char **argv)

{
Dune::MPIHelper::instance(argc,argv);

try{
const int dim=2;
typedef Dune::SGrid<dim,dim> GridType;
Dune::FieldVector<int,dim> N(30);
Dune::FieldVector<typename GridType::ctype,dim> L(-1.0);
Dune::FieldVector<typename GridType::ctype,dim> H(1.0);
GridType grid(N,L,H);
Dune::gridinfo(grid);
}

return 0;
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20130428/c3b69081/attachment.htm>


More information about the Dune mailing list