Hi,<br><br>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.<br><br><div>typedef Dune::ALUSimplexGrid<3,3> GridType;<br>const std::string filename = "grids/test3d.msh";<br>

std::vector<int> boundaryid;<br>
std::vector<int> elementid;<br>GridType grid;<br>Dune::GridPtr<GridType> gridptr = Dune::GmshReader<GridType>::read(grid, filename, boundaryid, elementid, true, false);<br><br>and I get an error given below<br>


/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>]’:<br>


finiteelements.cc:267:   instantiated from here<br>/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’<br>/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&)’<br>


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

<br></div><div><br><br><br><br><br><br clear="all"><br>Cheers and Regards,<br>
Jayesh Vinay Badwaik<br>-----------------------------------------------------------------------------------------------------------<br>
                
                                                        <div>
                        <p>We are servants rather than masters in mathematics   --- Charles Hermite<br></p>
                </div><br><br><br><br>
</div></div>