[Dune] gmshreader problem with ALUSimplexGrid<3,3>

Jayesh Badwaik jayeshb.work at gmail.com
Mon Apr 4 17:13:30 CEST 2011


Hi,

I'm trying to read the the .msh file and store it into ALUSimplexGrid<3,3>.
I have written the following lines to do the job.

typedef Dune::ALUSimplexGrid<3,3> GridType;
const std::string filename = "grids/test3d.msh";
std::vector<int> boundaryid;
std::vector<int> elementid;
GridType grid;
Dune::GridPtr<GridType> gridptr = Dune::GmshReader<GridType>::read(grid,
filename, boundaryid, elementid, true, false);

and I get an error given below
/users/jayesh/Build-Spot/DUNE/dune-grid-2.0/dune/grid/io/file/gmshreader.hh:
In static member function ‘static GridType*
Dune::GmshReader<GridType>::read(GridType&, const std::string&,
std::vector<T, std::allocator<_Tp1> >&, std::vector<T, std::allocator<_Tp1>
>&, bool, bool) [with T = int, GridType = Dune::ALUSimplexGrid<3, 3>]’:
finiteelements.cc:267:   instantiated from here
/users/jayesh/Build-Spot/DUNE/dune-grid-2.0/dune/grid/io/file/gmshreader.hh:812:
error: invalid conversion from ‘Dune::ALUSimplexGrid<3, 3>*’ to ‘MPI_Comm’
/users/jayesh/Build-Spot/DUNE/dune-grid-2.0/dune/grid/io/file/gmshreader.hh:812:
error:   initializing argument 1 of
‘Dune::GridFactory<Dune::ALUSimplexGrid<3, 3> >::GridFactory(const
MPI_Comm&)’


The part here that appears to be a problem is the GridFactory argument.
Upon reading gmshreader.hh, at line 812, I found that the argument given is
grid
while the ALUGrid is apparently demanding a MPI_COMM-like argument....








Cheers and Regards,
Jayesh Vinay Badwaik
-----------------------------------------------------------------------------------------------------------

We are servants rather than masters in mathematics   --- Charles Hermite
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20110404/ff794b11/attachment.htm>


More information about the Dune mailing list