← Back to team overview

dolfin team mailing list archive

Re: Mesh: [...]

 

Do you need the nodemap when you merge the other mesh? Won't there
just be an offset = noNodes() for the node numbers so you can do

uint offset = noNodes();
for (...)
{
    createNode();
}

for (...)
{
    createCell(offset + ...);
}

/Anders

On Thu, Sep 15, 2005 at 12:08:26PM +0200, dolfin@xxxxxxxxxx wrote:
> Commit from johanjan (2005-09-15 12:08 CEST)
> --------------------
> 
> Mesh:
> 
> Added new method in Mesh:
> 
> /// Merge in another mesh. The two meshes are not connected by the
> /// operation.
> void merge(Mesh& mesh2);
> 
>   dolfin  src/kernel/mesh/Mesh.cpp       1.10
>   dolfin  src/kernel/mesh/dolfin/Mesh.h  1.19
> 
> _______________________________________________
> DOLFIN-dev mailing list
> DOLFIN-dev@xxxxxxxxxx
> http://www.fenics.org/cgi-bin/mailman/listinfo/dolfin-dev
> 

-- 
Anders Logg
Research Assistant Professor
Toyota Technological Institute at Chicago
http://www.tti-c.org/logg/



Follow ups

References