[Dune] gmshreader problem with ALUSimplexGrid<3,3>
Oliver Sander
sander at mi.fu-berlin.de
Tue Apr 5 08:11:02 CEST 2011
Hi Martin!
This is indeed a UG relic, which will be removed eventually.
Best,
Oliver
> Why does the GmshReader have a read method taking a grid anyway? Is this some
> UG relic or did I miss something about the grid factory?
>
> Best,
>
> Martin
>
> On 04/04/2011 05:13 PM, Jayesh Badwaik wrote:
>
>> 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
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Dune mailing list
>> Dune at dune-project.org
>> http://lists.dune-project.org/mailman/listinfo/dune
>>
>
More information about the Dune
mailing list