1 Index: postProcessing/dataConversion/foamToVTK/writeFuns.C
2 ===================================================================
3 --- applications/utilities/postProcessing/dataConversion/foamToVTK/writeFuns.C (Revision 30)
4 +++ applications/utilities/postProcessing/dataConversion/foamToVTK/writeFuns.C (Revision 569)
6 void Foam::writeFuns::insert(const vector& pt, DynamicList<floatScalar>& dest)
8 for (direction cmpt = 0; cmpt < vector::nComponents; cmpt++)
10 dest.append(float(pt[cmpt]));
13 +void Foam::writeFuns::insert
15 + const symmTensor& pt,
16 + DynamicList<floatScalar>& dest
19 + for (direction cmpt = 0; cmpt < symmTensor::nComponents; cmpt++)
21 + dest.append(float(pt[cmpt]));
24 +void Foam::writeFuns::insert
26 + const sphericalTensor& pt,
27 + DynamicList<floatScalar>& dest
30 + for (direction cmpt = 0; cmpt < sphericalTensor::nComponents; cmpt++)
32 + dest.append(float(pt[cmpt]));
35 void Foam::writeFuns::insert(const tensor& pt, DynamicList<floatScalar>& dest)
37 for (direction cmpt = 0; cmpt < tensor::nComponents; cmpt++)
39 dest.append(float(pt[cmpt]));
42 Index: postProcessing/dataConversion/foamToVTK/writeFuns.H
43 ===================================================================
44 --- applications/utilities/postProcessing/dataConversion/foamToVTK/writeFuns.H (Revision 30)
45 +++ applications/utilities/postProcessing/dataConversion/foamToVTK/writeFuns.H (Revision 569)
51 //- convert to VTK and store
52 static void insert(const scalar&, DynamicList<floatScalar>& dest);
53 static void insert(const point&, DynamicList<floatScalar>& dest);
54 + static void insert(const symmTensor&, DynamicList<floatScalar>& dest);
55 + static void insert(const sphericalTensor&, DynamicList<floatScalar>& dest);
56 static void insert(const tensor&, DynamicList<floatScalar>& dest);
58 //- Append elements to DynamicList
59 static void insert(const labelList&, DynamicList<label>&);
61 static void insert(const List<Type>&, DynamicList<floatScalar>&);
64 Index: mesh/manipulation/Optional/Allwmake
65 ===================================================================
66 --- applications/utilities/mesh/manipulation/Optional/Allwmake (Revision 30)
67 +++ applications/utilities/mesh/manipulation/Optional/Allwmake (Revision 569)
72 if [ -f /usr/include/readline/readline.h ]; then
73 echo "Found readline/readline.h include file. Enabling readline support."
75 - export READLINELINK="-lreadline"
76 + export READLINELINK="-lreadline -lcurses"
82 Index: mesh/conversion/ideasUnvToFoam/ideasUnvToFoam.C
83 ===================================================================
84 --- applications/utilities/mesh/conversion/ideasUnvToFoam/ideasUnvToFoam.C (Revision 30)
85 +++ applications/utilities/mesh/conversion/ideasUnvToFoam/ideasUnvToFoam.C (Revision 569)
94 - else if (feID == 41)
95 + else if (feID == 41 || feID == 91)
97 // Triangle. Save - used for patching later on.
101 IStringStream lineStr(line);
102 lineStr >> cVerts[0] >> cVerts[1] >> cVerts[2];
103 boundaryFaces.append(cVerts);
104 boundaryFaceIndices.append(cellI);
106 - else if (feID == 94)
107 + else if (feID == 44 || feID == 94)
109 // Quad. Save - used for patching later on.
113 IStringStream lineStr(line);
114 lineStr >> cVerts[0] >> cVerts[1] >> cVerts[2] >> cVerts[3];
115 @@ -389,29 +389,38 @@
116 faceIndices.setSize(nFaces);
119 while (faceI < faceIndices.size())
122 IStringStream lineStr(line);
123 - label typeCode1, tag1, nodeLeaf1, component1,
124 - typeCode2, tag2, nodeLeaf2, component2;
126 - >> typeCode1 >> tag1 >> nodeLeaf1 >> component1
127 - >> typeCode2 >> tag2 >> nodeLeaf2 >> component2;
129 - if (typeCode1 != 8 || typeCode2 != 8)
130 + // Read one (for last face) or two entries from line.
132 + if (faceI == faceIndices.size()-1)
134 - FatalErrorIn("readPatches")
135 - << "When reading patches expect Entity Type Code 8" << nl
136 - << "At line " << is.lineNumber() << exit(FatalError);
140 - faceIndices[faceI++] = tag1;
141 - faceIndices[faceI++] = tag2;
142 + for (label i = 0; i < nRead; i++)
144 + label typeCode, tag, nodeLeaf, component;
146 + lineStr >> typeCode >> tag >> nodeLeaf >> component;
150 + FatalErrorIn("readPatches")
151 + << "When reading patches expect Entity Type Code 8"
152 + << nl << "At line " << is.lineNumber()
153 + << exit(FatalError);
156 + faceIndices[faceI++] = tag;
162 patchFaceIndices.shrink();
165 @@ -688,15 +697,15 @@
166 // sets (dofVertIndices).
168 List<faceList> patchFaceVerts;
171 if (dofVertIndices.size() > 0)
173 - // Use the vertex constraints to patch. Is of course bit dodge since
174 + // Use the vertex constraints to patch. Is of course bit dodgy since
175 // face goes on patch if all its vertices are on a constraint.
176 // Note: very inefficient since goes through all faces (including
177 // internal ones) twice. Should do a construct without patches
178 // and then repatchify.
180 Info<< "Using " << dofVertIndices.size()
181 << " DOF sets to detect boundary faces."<< endl;