← Back to team overview

dolfin team mailing list archive

[HG DOLFIN] Fix in reading in auxiliary mesh data. Mesh functions specified

 

One or more new changesets pushed to the primary dolfin repository.
A short summary of the last three changesets is included below.

changeset:   4219:ccfb29d0ef7e2e2e4f750158622727a24b3d81f9
tag:         tip
user:        Anders Logg <logg@xxxxxxxxx>
date:        Wed May 21 11:06:57 2008 +0200
files:       dolfin/io/XMLMesh.cpp
description:
Fix in reading in auxiliary mesh data. Mesh functions specified
in the data section of a mesh XML file may now specify values for
only a subset of the entities (for example the entities on the
boundary).


changeset:   4218:2f88fc52c1055895a0da40999a74f49379791cec
user:        Johannes Ring <johannr@xxxxxxxxx>
date:        Wed May 21 08:36:11 2008 +0200
files:       SConstruct
description:
Added option to set custom linker flags. One can now also use the
environment variables CXXFLAGS and LINKFLAGS to set custom
compiler/linker flags.


changeset:   4217:e6ebfecf31e978938259506023611d44bc38a261
user:        Anders Logg <logg@xxxxxxxxx>
date:        Tue May 20 01:01:56 2008 +0200
files:       ChangeLog data/meshes/meshbc.xml.gz dolfin/io/XMLMesh.cpp dolfin/io/XMLMesh.h dolfin/mesh/Mesh.cpp dolfin/mesh/Mesh.h dolfin/mesh/MeshData.cpp dolfin/mesh/MeshData.h dolfin/mesh/MeshGeometry.cpp dolfin/mesh/MeshTopology.cpp
description:
Add support for attaching arbitrarily named data to meshes
in preparation for integration with VMTK.

It is now possible to attach an arbitrary number of
MeshFunction<uint> to a mesh. Each data set is associated with a
user-specified string.

Example:

  MeshFunction<uint>* f = mesh.data().create("boundary indicators", 2);

  f[0] = 3
  f[1] = 3
  ...

  MeshFunction<uint>* g = mesh.data()["boundary indicators"];

File format:

<?xml version="1.0" encoding="UTF-8"?>

<dolfin xmlns:dolfin="http://www.fenics.org/dolfin/";>
  <mesh celltype="tetrahedron" dim="3">
    <vertices size="4">
      <vertex index="0" x="0.000000" y="0.000000" z="0.000000"/>
      <vertex index="1" x="1.000000" y="0.000000" z="0.000000"/>
      <vertex index="2" x="0.000000" y="1.000000" z="0.000000"/>
      <vertex index="3" x="0.000000" y="0.000000" z="1.000000"/>
    </vertices>
    <cells size="1">
      <tetrahedron index="0" v0="0" v1="1" v2="2" v3="3"/>
    </cells>
    <data>
      <meshfunction name="boundary facet cells" type="uint" dim="2" size="4">
        <entity index="0" value="0"/>
        <entity index="1" value="0"/>
        <entity index="2" value="0"/>
        <entity index="3" value="0"/>
      </meshfunction>
      <meshfunction name="boundary facet numbers" type="uint" dim="2" size="4">
        <entity index="0" value="0"/>
        <entity index="1" value="1"/>
        <entity index="2" value="2"/>
        <entity index="3" value="3"/>
      </meshfunction>
      <meshfunction name="boundary indicators" type="uint" dim="2" size="4">
        <entity index="0" value="0"/>
        <entity index="1" value="0"/>
        <entity index="2" value="1"/>
        <entity index="3" value="1"/>
      </meshfunction>
    </data>
  </mesh>
</dolfin>

----------------------------------------------------------------------
For more details, visit http://www.fenics.org/hg/dolfin