Commit 54d02bd2 authored by Mark Olesen's avatar Mark Olesen
Browse files

COMP: specialize NamedEnum within namespace Foam

parent 19174873
......@@ -58,13 +58,17 @@ enum ExtrudeMode
SURFACE
};
template<>
const char* NamedEnum<ExtrudeMode, 3>::names[] =
namespace Foam
{
"mesh",
"patch",
"surface"
};
template<>
const char* NamedEnum<ExtrudeMode, 3>::names[] =
{
"mesh",
"patch",
"surface"
};
}
static const NamedEnum<ExtrudeMode, 3> ExtrudeModeNames;
......@@ -370,7 +374,7 @@ int main(int argc, char *argv[])
// Layers per point
labelList nPointLayers(extrudePatch.nPoints(), model().nLayers());
// Displacement for first layer
vectorField firstLayerDisp = displacement*model().sumThickness(1);
vectorField firstLayerDisp(displacement*model().sumThickness(1));
// Expansion ratio not used.
scalarField ratio(extrudePatch.nPoints(), 1.0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment