|
8 | 8 | #include <map> |
9 | 9 | #include <pcu_util.h> |
10 | 10 | #include <iostream> |
| 11 | +#include <cstdlib> |
11 | 12 |
|
12 | 13 | namespace apf { |
13 | 14 |
|
@@ -231,17 +232,17 @@ class Converter |
231 | 232 | int* intData; |
232 | 233 | long* lngData; |
233 | 234 | switch (tagType) { |
234 | | - case apf::Mesh::TagType::DOUBLE: |
| 235 | + case apf::Mesh::DOUBLE: |
235 | 236 | dblData = new double[tagSize]; |
236 | 237 | inMesh->getDoubleTag(e, in, dblData); |
237 | 238 | outMesh->setDoubleTag(newFromOld[e], out, dblData); |
238 | 239 | break; |
239 | | - case apf::Mesh::TagType::INT: |
| 240 | + case apf::Mesh::INT: |
240 | 241 | intData = new int[tagSize]; |
241 | 242 | inMesh->getIntTag(e, in, intData); |
242 | 243 | outMesh->setIntTag(newFromOld[e], out, intData); |
243 | 244 | break; |
244 | | - case apf::Mesh::TagType::LONG: |
| 245 | + case apf::Mesh::LONG: |
245 | 246 | lngData = new long[tagSize]; |
246 | 247 | inMesh->getLongTag(e, in, lngData); |
247 | 248 | outMesh->setLongTag(newFromOld[e], out, lngData); |
@@ -319,13 +320,13 @@ class Converter |
319 | 320 | if (!outMesh->findTag(tagName)) { |
320 | 321 | apf::MeshTag* out = NULL; |
321 | 322 | switch (tagType) { |
322 | | - case apf::Mesh::TagType::DOUBLE: |
| 323 | + case apf::Mesh::DOUBLE: |
323 | 324 | out = outMesh->createDoubleTag(tagName, tagSize); |
324 | 325 | break; |
325 | | - case apf::Mesh::TagType::INT: |
| 326 | + case apf::Mesh::INT: |
326 | 327 | out = outMesh->createIntTag(tagName, tagSize); |
327 | 328 | break; |
328 | | - case apf::Mesh::TagType::LONG: |
| 329 | + case apf::Mesh::LONG: |
329 | 330 | out = outMesh->createLongTag(tagName, tagSize); |
330 | 331 | break; |
331 | 332 | default: |
|
0 commit comments