~ubuntu-branches/debian/squeeze/gmsh/squeeze

« back to all changes in this revision

Viewing changes to Plugin/Triangulate.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Christophe Prud'homme, Christophe Prud'homme
  • Date: 2009-09-27 17:36:40 UTC
  • mfrom: (1.2.9 upstream) (8.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090927173640-oxyhzt0eadjfrlwz
[Christophe Prud'homme]
* New upstream release
  + solver code refactoring
  + better IDE integration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
// bugs and problems to <gmsh@geuz.org>.
5
5
 
6
6
#include <vector>
 
7
#include <stdlib.h>
7
8
#include "GModel.h"
8
9
#include "discreteFace.h"
9
10
#include "DivideAndConquer.h"
91
92
      int numComp = data1->getNumComponents(0, ent, ele);
92
93
      double x, y, z;
93
94
      data1->getNode(0, ent, ele, 0, x, y, z);
94
 
      PointData *v = new PointData(x, y, z, numComp * numSteps);
 
95
      PointData *p = new PointData(x, y, z, numComp * numSteps);
95
96
      for(int step = 0; step < numSteps; step++)
96
97
        for(int comp = 0; comp < numComp; comp++)
97
 
          data1->getValue(step, ent, ele, 0, comp, v->v[3 + numComp * step + comp]);
98
 
      points.push_back(v);
 
98
          data1->getValue(step, ent, ele, 0, comp, p->v[3 + numComp * step + comp]);
 
99
      points.push_back(p);
99
100
    }
100
101
  }
101
102