~njansson/dolfin/hpc

« back to all changes in this revision

Viewing changes to dolfin/io/XMLMesh.h

  • Committer: Anders Logg
  • Date: 2008-05-18 20:10:23 UTC
  • mto: (2668.7.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 2670.
  • Revision ID: logg@simula.no-20080518201023-q5sec18uepjnjw4f
Add new function DirichletBC::setSubSystem(), allowing modification
of the sub system for which a BC has been set.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright (C) 2003-2008 Anders Logg.
 
1
// Copyright (C) 2003-2005 Anders Logg.
2
2
// Licensed under the GNU LGPL Version 2.1.
3
3
//
4
4
// First added:  2003-10-21
5
 
// Last changed: 2008-05-21
 
5
// Last changed: 2006-05-23
6
6
 
7
7
#ifndef __NEW_XML_MESH_H
8
8
#define __NEW_XML_MESH_H
9
9
 
10
10
#include <dolfin/mesh/MeshEditor.h>
11
 
#include <dolfin/mesh/MeshFunction.h>
12
11
#include "XMLObject.h"
13
12
 
14
13
namespace dolfin
31
30
    
32
31
  private:
33
32
    
34
 
    enum ParserState {OUTSIDE,
35
 
                      INSIDE_MESH, INSIDE_VERTICES, INSIDE_CELLS,
36
 
                      INSIDE_DATA, INSIDE_MESH_FUNCTION, INSIDE_ARRAY,
37
 
                      DONE};
 
33
    enum ParserState { OUTSIDE, INSIDE_MESH, INSIDE_VERTICES, INSIDE_CELLS, DONE };
38
34
    
39
35
    void readMesh        (const xmlChar* name, const xmlChar** attrs);
40
36
    void readVertices    (const xmlChar* name, const xmlChar** attrs);
43
39
    void readInterval    (const xmlChar* name, const xmlChar** attrs);
44
40
    void readTriangle    (const xmlChar* name, const xmlChar** attrs);
45
41
    void readTetrahedron (const xmlChar* name, const xmlChar** attrs);
46
 
    void readMeshFunction(const xmlChar* name, const xmlChar** attrs);
47
 
    void readArray       (const xmlChar* name, const xmlChar** attrs);
48
 
    void readMeshEntity  (const xmlChar* name, const xmlChar** attrs);
49
 
    void readArrayElement(const xmlChar* name, const xmlChar** attrs);
50
42
    
51
43
    void closeMesh();
52
44
 
53
45
    Mesh& _mesh;
54
46
    ParserState state;
55
47
    MeshEditor editor;
56
 
    MeshFunction<uint>* f;
57
 
    Array<uint>* a;
58
48
    
59
49
  };
60
50