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