Commit 405210a4 authored by Mark Olesen's avatar Mark Olesen
Browse files

STYLE: relocate commonly used ensight components to fileFormats

- use explicit names within ensightPTraits
parent 708bfda5
......@@ -7,16 +7,12 @@ common/writer/meshWriter.C
common/tables/boundaryRegion.C
common/tables/cellTable.C
ensight/file/ensightFile.C
ensight/file/ensightGeoFile.C
ensight/readFile/ensightReadFile.C
ensight/part/ensightPart.C
ensight/part/ensightPartIO.C
ensight/part/ensightPartCells.C
ensight/part/ensightPartFaces.C
ensight/part/ensightParts.C
starcd/STARCDMeshReader.C
starcd/STARCDMeshWriter.C
......
ensight/file/ensightFile.C
ensight/file/ensightGeoFile.C
ensight/read/ensightReadFile.C
ensight/type/ensightPTraits.C
vtk/vtkUnstructuredReader.C
nas/NASCore.C
starcd/STARCDCore.C
......@@ -8,7 +13,6 @@ setWriters = sampledSetWriters
$(setWriters)/writers.C
$(setWriters)/ensight/ensightSetWriterRunTime.C
$(setWriters)/ensight/ensightPTraits.C
$(setWriters)/gnuplot/gnuplotSetWriterRunTime.C
$(setWriters)/jplot/jplotSetWriterRunTime.C
$(setWriters)/raw/rawSetWriterRunTime.C
......
......@@ -28,56 +28,51 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
template<>
const char* const Foam::ensightPTraits<Foam::scalar>::typeName =
Foam::pTraits<Foam::scalar>::typeName;
const char* const
Foam::ensightPTraits<Foam::scalar>::typeName = "scalar";
template<>
const Foam::direction
Foam::ensightPTraits<Foam::scalar>::componentOrder[] = {0};
template<>
const char* const Foam::ensightPTraits<Foam::vector>::typeName =
Foam::pTraits<Foam::vector>::typeName;
const char* const
Foam::ensightPTraits<Foam::vector>::typeName = "vector";
template<>
const Foam::direction
Foam::ensightPTraits<Foam::vector>::componentOrder[] = {0, 1, 2};
// use mag(sphericalTensor) instead
template<>
const char* const Foam::ensightPTraits<Foam::sphericalTensor>::typeName =
Foam::pTraits<Foam::scalar>::typeName;
const char* const
Foam::ensightPTraits<Foam::sphericalTensor>::typeName = "scalar";
template<>
const Foam::direction
Foam::ensightPTraits<Foam::sphericalTensor>::componentOrder[] = {0};
template<>
const char* const Foam::ensightPTraits<Foam::symmTensor>::typeName =
"tensor symm";
const char* const
Foam::ensightPTraits<Foam::symmTensor>::typeName = "tensor symm";
template<>
const Foam::direction
Foam::ensightPTraits<Foam::symmTensor>::componentOrder[] = {0, 3, 5, 1, 2, 4};
template<>
const char* const Foam::ensightPTraits<Foam::tensor>::typeName =
"tensor asym";
const char* const
Foam::ensightPTraits<Foam::tensor>::typeName = "tensor asym";
template<>
const Foam::direction
Foam::ensightPTraits<Foam::tensor>::componentOrder[] =
{
0,
1,
2,
3,
4,
5,
6,
7,
8
};
{ 0, 1, 2, 3, 4, 5, 6, 7, 8 };
// ************************************************************************* //
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