← Back to team overview

dolfin team mailing list archive

Re: [HG DOLFIN] Merge patch from Shawn Walker

 

On Thu, Sep 11, 2008 at 05:12:48PM -0400, Shawn Walker wrote:
> ok.  This will probably take me a while to figure out.
>
> Actually, one dumb question I have is for XMLMesh.  I noticed the  
> constructor takes a mesh as input:
>
> XMLMesh::XMLMesh(Mesh& mesh) : XMLObject(), _mesh(mesh), state(OUTSIDE),  
> f(0), a(0),
>                                mesh_coord(0), xml_vector(0)
> {
>   // Do nothing
>
> }
>
> My confusion is, why is the mesh argument needed?  Because at this point, 
> the mesh hasn't been read in yet.  That's what the XMLMesh class does.  I 
> realize I am missing something stupid.  I guess this is being called from 
> XMLFile?
>
> - Shawn

Yes, line 87. The XMLMesh class stores a reference to the mesh so that
it can access it to set the values as they are parsed.

-- 
Anders

Attachment: signature.asc
Description: Digital signature


Follow ups

References