mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: specialization Foam::NamedEnum templates within namespace Foam
- otherwise gets flagged as an error by clang
This commit is contained in:
@ -49,19 +49,19 @@ Class
|
|||||||
|
|
||||||
defineTypeNameAndDebug(Foam::fileMonitor, 0);
|
defineTypeNameAndDebug(Foam::fileMonitor, 0);
|
||||||
|
|
||||||
template<>
|
|
||||||
const char* Foam::NamedEnum<Foam::fileMonitor::fileState, 3>::names[] =
|
|
||||||
{
|
|
||||||
"unmodified",
|
|
||||||
"modified",
|
|
||||||
"deleted"
|
|
||||||
};
|
|
||||||
const Foam::NamedEnum<Foam::fileMonitor::fileState, 3>
|
const Foam::NamedEnum<Foam::fileMonitor::fileState, 3>
|
||||||
Foam::fileMonitor::fileStateNames_;
|
Foam::fileMonitor::fileStateNames_;
|
||||||
|
|
||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
template<>
|
||||||
|
const char* Foam::NamedEnum<Foam::fileMonitor::fileState, 3>::names[] =
|
||||||
|
{
|
||||||
|
"unmodified",
|
||||||
|
"modified",
|
||||||
|
"deleted"
|
||||||
|
};
|
||||||
|
|
||||||
//- Reduction operator for PackedList of fileState
|
//- Reduction operator for PackedList of fileState
|
||||||
class reduceFileStates
|
class reduceFileStates
|
||||||
{
|
{
|
||||||
|
|||||||
@ -32,13 +32,17 @@ License
|
|||||||
|
|
||||||
defineTypeNameAndDebug(Foam::UPstream, 0);
|
defineTypeNameAndDebug(Foam::UPstream, 0);
|
||||||
|
|
||||||
template<>
|
namespace Foam
|
||||||
const char* Foam::NamedEnum<Foam::UPstream::commsTypes, 3>::names[] =
|
|
||||||
{
|
{
|
||||||
"blocking",
|
template<>
|
||||||
"scheduled",
|
const char* Foam::NamedEnum<Foam::UPstream::commsTypes, 3>::names[] =
|
||||||
"nonBlocking"
|
{
|
||||||
};
|
"blocking",
|
||||||
|
"scheduled",
|
||||||
|
"nonBlocking"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::UPstream::commsTypes, 3>
|
const Foam::NamedEnum<Foam::UPstream::commsTypes, 3>
|
||||||
Foam::UPstream::commsTypeNames;
|
Foam::UPstream::commsTypeNames;
|
||||||
|
|||||||
@ -32,28 +32,31 @@ License
|
|||||||
|
|
||||||
defineTypeNameAndDebug(Foam::Time, 0);
|
defineTypeNameAndDebug(Foam::Time, 0);
|
||||||
|
|
||||||
template<>
|
namespace Foam
|
||||||
const char* Foam::NamedEnum<Foam::Time::stopAtControls, 4>::names[] =
|
|
||||||
{
|
{
|
||||||
"endTime",
|
template<>
|
||||||
"noWriteNow",
|
const char* Foam::NamedEnum<Foam::Time::stopAtControls, 4>::names[] =
|
||||||
"writeNow",
|
{
|
||||||
"nextWrite"
|
"endTime",
|
||||||
};
|
"noWriteNow",
|
||||||
|
"writeNow",
|
||||||
|
"nextWrite"
|
||||||
|
};
|
||||||
|
|
||||||
|
template<>
|
||||||
|
const char* Foam::NamedEnum<Foam::Time::writeControls, 5>::names[] =
|
||||||
|
{
|
||||||
|
"timeStep",
|
||||||
|
"runTime",
|
||||||
|
"adjustableRunTime",
|
||||||
|
"clockTime",
|
||||||
|
"cpuTime"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::Time::stopAtControls, 4>
|
const Foam::NamedEnum<Foam::Time::stopAtControls, 4>
|
||||||
Foam::Time::stopAtControlNames_;
|
Foam::Time::stopAtControlNames_;
|
||||||
|
|
||||||
template<>
|
|
||||||
const char* Foam::NamedEnum<Foam::Time::writeControls, 5>::names[] =
|
|
||||||
{
|
|
||||||
"timeStep",
|
|
||||||
"runTime",
|
|
||||||
"adjustableRunTime",
|
|
||||||
"clockTime",
|
|
||||||
"cpuTime"
|
|
||||||
};
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::Time::writeControls, 5>
|
const Foam::NamedEnum<Foam::Time::writeControls, 5>
|
||||||
Foam::Time::writeControlNames_;
|
Foam::Time::writeControlNames_;
|
||||||
|
|
||||||
|
|||||||
@ -27,16 +27,19 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * Static Member Data * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Static Member Data * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<>
|
namespace Foam
|
||||||
const char* Foam::NamedEnum
|
|
||||||
<
|
|
||||||
Foam::outputFilterOutputControl::outputControls,
|
|
||||||
2
|
|
||||||
>::names[] =
|
|
||||||
{
|
{
|
||||||
"timeStep",
|
template<>
|
||||||
"outputTime"
|
const char* Foam::NamedEnum
|
||||||
};
|
<
|
||||||
|
Foam::outputFilterOutputControl::outputControls,
|
||||||
|
2
|
||||||
|
>::names[] =
|
||||||
|
{
|
||||||
|
"timeStep",
|
||||||
|
"outputTime"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::outputFilterOutputControl::outputControls, 2>
|
const Foam::NamedEnum<Foam::outputFilterOutputControl::outputControls, 2>
|
||||||
Foam::outputFilterOutputControl::outputControlNames_;
|
Foam::outputFilterOutputControl::outputControlNames_;
|
||||||
|
|||||||
@ -44,16 +44,20 @@ namespace Foam
|
|||||||
|
|
||||||
addToRunTimeSelectionTable(polyPatch, cyclicPolyPatch, word);
|
addToRunTimeSelectionTable(polyPatch, cyclicPolyPatch, word);
|
||||||
addToRunTimeSelectionTable(polyPatch, cyclicPolyPatch, dictionary);
|
addToRunTimeSelectionTable(polyPatch, cyclicPolyPatch, dictionary);
|
||||||
}
|
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
const char* Foam::NamedEnum<Foam::cyclicPolyPatch::transformType, 4>::names[] =
|
const char* Foam::NamedEnum
|
||||||
{
|
<
|
||||||
"unknown",
|
Foam::cyclicPolyPatch::transformType,
|
||||||
"rotational",
|
4
|
||||||
"translational",
|
>::names[] =
|
||||||
"noOrdering"
|
{
|
||||||
};
|
"unknown",
|
||||||
|
"rotational",
|
||||||
|
"translational",
|
||||||
|
"noOrdering"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::cyclicPolyPatch::transformType, 4>
|
const Foam::NamedEnum<Foam::cyclicPolyPatch::transformType, 4>
|
||||||
Foam::cyclicPolyPatch::transformTypeNames;
|
Foam::cyclicPolyPatch::transformTypeNames;
|
||||||
|
|||||||
@ -29,27 +29,29 @@ License
|
|||||||
|
|
||||||
Foam::scalar Foam::intersection::planarTol_ = 0.2;
|
Foam::scalar Foam::intersection::planarTol_ = 0.2;
|
||||||
|
|
||||||
template<>
|
namespace Foam
|
||||||
const char* Foam::NamedEnum<Foam::intersection::direction, 2>::names[] =
|
|
||||||
{
|
{
|
||||||
"vector",
|
template<>
|
||||||
"contactSphere"
|
const char* Foam::NamedEnum<Foam::intersection::direction, 2>::names[] =
|
||||||
};
|
{
|
||||||
|
"vector",
|
||||||
|
"contactSphere"
|
||||||
|
};
|
||||||
|
|
||||||
|
template<>
|
||||||
|
const char* Foam::NamedEnum<Foam::intersection::algorithm, 3>::names[] =
|
||||||
|
{
|
||||||
|
"fullRay",
|
||||||
|
"halfRay",
|
||||||
|
"visible"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::intersection::direction, 2>
|
const Foam::NamedEnum<Foam::intersection::direction, 2>
|
||||||
Foam::intersection::directionNames_;
|
Foam::intersection::directionNames_;
|
||||||
|
|
||||||
template<>
|
|
||||||
const char* Foam::NamedEnum<Foam::intersection::algorithm, 3>::names[] =
|
|
||||||
{
|
|
||||||
"fullRay",
|
|
||||||
"halfRay",
|
|
||||||
"visible"
|
|
||||||
};
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::intersection::algorithm, 3>
|
const Foam::NamedEnum<Foam::intersection::algorithm, 3>
|
||||||
Foam::intersection::algorithmNames_;
|
Foam::intersection::algorithmNames_;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|||||||
@ -35,19 +35,21 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<>
|
namespace Foam
|
||||||
const char* Foam::NamedEnum<Foam::directions::directionType, 3>::names[] =
|
|
||||||
{
|
{
|
||||||
"tan1",
|
template<>
|
||||||
"tan2",
|
const char* Foam::NamedEnum<Foam::directions::directionType, 3>::names[] =
|
||||||
"normal"
|
{
|
||||||
};
|
"tan1",
|
||||||
|
"tan2",
|
||||||
|
"normal"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::directions::directionType, 3>
|
const Foam::NamedEnum<Foam::directions::directionType, 3>
|
||||||
Foam::directions::directionTypeNames_;
|
Foam::directions::directionTypeNames_;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
|
||||||
|
|
||||||
// For debugging
|
// For debugging
|
||||||
|
|||||||
@ -45,17 +45,20 @@ namespace Foam
|
|||||||
slidingInterface,
|
slidingInterface,
|
||||||
dictionary
|
dictionary
|
||||||
);
|
);
|
||||||
|
|
||||||
|
template<>
|
||||||
|
const char* Foam::NamedEnum
|
||||||
|
<
|
||||||
|
Foam::slidingInterface::typeOfMatch,
|
||||||
|
2
|
||||||
|
>::names[] =
|
||||||
|
{
|
||||||
|
"integral",
|
||||||
|
"partial"
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
template<>
|
|
||||||
const char* Foam::NamedEnum<Foam::slidingInterface::typeOfMatch, 2>::names[] =
|
|
||||||
{
|
|
||||||
"integral",
|
|
||||||
"partial"
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::slidingInterface::typeOfMatch, 2>
|
const Foam::NamedEnum<Foam::slidingInterface::typeOfMatch, 2>
|
||||||
Foam::slidingInterface::typeOfMatchNames_;
|
Foam::slidingInterface::typeOfMatchNames_;
|
||||||
|
|
||||||
|
|||||||
@ -27,15 +27,17 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<>
|
namespace Foam
|
||||||
const char* Foam::NamedEnum<Foam::phaseProperties::phaseType, 4>::names[] =
|
|
||||||
{
|
{
|
||||||
"gas",
|
template<>
|
||||||
"liquid",
|
const char* Foam::NamedEnum<Foam::phaseProperties::phaseType, 4>::names[] =
|
||||||
"solid",
|
{
|
||||||
"unknown"
|
"gas",
|
||||||
};
|
"liquid",
|
||||||
|
"solid",
|
||||||
|
"unknown"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::phaseProperties::phaseType, 4>
|
const Foam::NamedEnum<Foam::phaseProperties::phaseType, 4>
|
||||||
Foam::phaseProperties::phaseTypeNames_;
|
Foam::phaseProperties::phaseTypeNames_;
|
||||||
|
|||||||
@ -34,15 +34,19 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<>
|
namespace Foam
|
||||||
const char*
|
|
||||||
Foam::NamedEnum<Foam::refinementSurfaces::areaSelectionAlgo, 4>::names[] =
|
|
||||||
{
|
{
|
||||||
"inside",
|
template<>
|
||||||
"outside",
|
const char*
|
||||||
"insidePoint",
|
Foam::NamedEnum<Foam::refinementSurfaces::areaSelectionAlgo, 4>::names[] =
|
||||||
"none"
|
{
|
||||||
};
|
"inside",
|
||||||
|
"outside",
|
||||||
|
"insidePoint",
|
||||||
|
"none"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::refinementSurfaces::areaSelectionAlgo, 4>
|
const Foam::NamedEnum<Foam::refinementSurfaces::areaSelectionAlgo, 4>
|
||||||
Foam::refinementSurfaces::areaSelectionAlgoNames;
|
Foam::refinementSurfaces::areaSelectionAlgoNames;
|
||||||
@ -388,7 +392,7 @@ Foam::labelList Foam::refinementSurfaces::getClosedNamedSurfaces() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Get indices of named surfaces with a
|
// Get indices of named surfaces with a
|
||||||
Foam::labelList Foam::refinementSurfaces::getInsidePointNamedSurfaces() const
|
Foam::labelList Foam::refinementSurfaces::getInsidePointNamedSurfaces() const
|
||||||
{
|
{
|
||||||
labelList closed(cellZoneNames_.size());
|
labelList closed(cellZoneNames_.size());
|
||||||
@ -411,9 +415,9 @@ Foam::labelList Foam::refinementSurfaces::getInsidePointNamedSurfaces() const
|
|||||||
// Foam::labelList Foam::refinementSurfaces::countRegions(const triSurface& s)
|
// Foam::labelList Foam::refinementSurfaces::countRegions(const triSurface& s)
|
||||||
// {
|
// {
|
||||||
// const geometricSurfacePatchList& regions = s.patches();
|
// const geometricSurfacePatchList& regions = s.patches();
|
||||||
//
|
//
|
||||||
// labelList nTris(regions.size(), 0);
|
// labelList nTris(regions.size(), 0);
|
||||||
//
|
//
|
||||||
// forAll(s, triI)
|
// forAll(s, triI)
|
||||||
// {
|
// {
|
||||||
// nTris[s[triI].region()]++;
|
// nTris[s[triI].region()]++;
|
||||||
@ -433,15 +437,15 @@ Foam::labelList Foam::refinementSurfaces::getInsidePointNamedSurfaces() const
|
|||||||
// ) const
|
// ) const
|
||||||
// {
|
// {
|
||||||
// const searchableSurface& geom = allGeometry_[surfaces_[surfI]];
|
// const searchableSurface& geom = allGeometry_[surfaces_[surfI]];
|
||||||
//
|
//
|
||||||
// // Get per element the region
|
// // Get per element the region
|
||||||
// labelList region;
|
// labelList region;
|
||||||
// geom.getRegion(info, region);
|
// geom.getRegion(info, region);
|
||||||
//
|
//
|
||||||
// // Initialise fields to region wise minLevel
|
// // Initialise fields to region wise minLevel
|
||||||
// minLevelField.setSize(ctrs.size());
|
// minLevelField.setSize(ctrs.size());
|
||||||
// minLevelField = -1;
|
// minLevelField = -1;
|
||||||
//
|
//
|
||||||
// forAll(minLevelField, i)
|
// forAll(minLevelField, i)
|
||||||
// {
|
// {
|
||||||
// if (info[i].hit())
|
// if (info[i].hit())
|
||||||
@ -449,12 +453,12 @@ Foam::labelList Foam::refinementSurfaces::getInsidePointNamedSurfaces() const
|
|||||||
// minLevelField[i] = minLevel(surfI, region[i]);
|
// minLevelField[i] = minLevel(surfI, region[i]);
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// // Find out if triangle inside shell with higher level
|
// // Find out if triangle inside shell with higher level
|
||||||
// // What level does shell want to refine fc to?
|
// // What level does shell want to refine fc to?
|
||||||
// labelList shellLevel;
|
// labelList shellLevel;
|
||||||
// shells.findHigherLevel(ctrs, minLevelField, shellLevel);
|
// shells.findHigherLevel(ctrs, minLevelField, shellLevel);
|
||||||
//
|
//
|
||||||
// forAll(minLevelField, i)
|
// forAll(minLevelField, i)
|
||||||
// {
|
// {
|
||||||
// minLevelField[i] = max(minLevelField[i], shellLevel[i]);
|
// minLevelField[i] = max(minLevelField[i], shellLevel[i]);
|
||||||
|
|||||||
@ -33,13 +33,18 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
defineTypeNameAndDebug(faceToCell, 0);
|
||||||
|
addToRunTimeSelectionTable(topoSetSource, faceToCell, word);
|
||||||
|
addToRunTimeSelectionTable(topoSetSource, faceToCell, istream);
|
||||||
|
|
||||||
defineTypeNameAndDebug(faceToCell, 0);
|
template<>
|
||||||
|
const char* Foam::NamedEnum<Foam::faceToCell::faceAction, 4>::names[] =
|
||||||
addToRunTimeSelectionTable(topoSetSource, faceToCell, word);
|
{
|
||||||
|
"neighbour",
|
||||||
addToRunTimeSelectionTable(topoSetSource, faceToCell, istream);
|
"owner",
|
||||||
|
"any",
|
||||||
|
"all"
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -51,15 +56,6 @@ Foam::topoSetSource::addToUsageTable Foam::faceToCell::usage_
|
|||||||
" of the faces in the faceSet or where all faces are in the faceSet\n\n"
|
" of the faces in the faceSet or where all faces are in the faceSet\n\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
template<>
|
|
||||||
const char* Foam::NamedEnum<Foam::faceToCell::faceAction, 4>::names[] =
|
|
||||||
{
|
|
||||||
"neighbour",
|
|
||||||
"owner",
|
|
||||||
"any",
|
|
||||||
"all"
|
|
||||||
};
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::faceToCell::faceAction, 4>
|
const Foam::NamedEnum<Foam::faceToCell::faceAction, 4>
|
||||||
Foam::faceToCell::faceActionNames_;
|
Foam::faceToCell::faceActionNames_;
|
||||||
|
|
||||||
|
|||||||
@ -32,13 +32,16 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
defineTypeNameAndDebug(faceZoneToCell, 0);
|
||||||
|
addToRunTimeSelectionTable(topoSetSource, faceZoneToCell, word);
|
||||||
|
addToRunTimeSelectionTable(topoSetSource, faceZoneToCell, istream);
|
||||||
|
|
||||||
defineTypeNameAndDebug(faceZoneToCell, 0);
|
template<>
|
||||||
|
const char* Foam::NamedEnum<Foam::faceZoneToCell::faceAction, 2>::names[] =
|
||||||
addToRunTimeSelectionTable(topoSetSource, faceZoneToCell, word);
|
{
|
||||||
|
"master",
|
||||||
addToRunTimeSelectionTable(topoSetSource, faceZoneToCell, istream);
|
"slave"
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -51,14 +54,6 @@ Foam::topoSetSource::addToUsageTable Foam::faceZoneToCell::usage_
|
|||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
template<>
|
|
||||||
const char* Foam::NamedEnum<Foam::faceZoneToCell::faceAction, 2>::names[] =
|
|
||||||
{
|
|
||||||
"master",
|
|
||||||
"slave"
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::faceZoneToCell::faceAction, 2>
|
const Foam::NamedEnum<Foam::faceZoneToCell::faceAction, 2>
|
||||||
Foam::faceZoneToCell::faceActionNames_;
|
Foam::faceZoneToCell::faceActionNames_;
|
||||||
|
|
||||||
|
|||||||
@ -33,13 +33,15 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
defineTypeNameAndDebug(pointToCell, 0);
|
||||||
|
addToRunTimeSelectionTable(topoSetSource, pointToCell, word);
|
||||||
|
addToRunTimeSelectionTable(topoSetSource, pointToCell, istream);
|
||||||
|
|
||||||
defineTypeNameAndDebug(pointToCell, 0);
|
template<>
|
||||||
|
const char* Foam::NamedEnum<Foam::pointToCell::pointAction, 1>::names[] =
|
||||||
addToRunTimeSelectionTable(topoSetSource, pointToCell, word);
|
{
|
||||||
|
"any"
|
||||||
addToRunTimeSelectionTable(topoSetSource, pointToCell, istream);
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -50,13 +52,6 @@ Foam::topoSetSource::addToUsageTable Foam::pointToCell::usage_
|
|||||||
" Select all cells with any point in the pointSet\n\n"
|
" Select all cells with any point in the pointSet\n\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
template<>
|
|
||||||
const char* Foam::NamedEnum<Foam::pointToCell::pointAction, 1>::names[] =
|
|
||||||
{
|
|
||||||
"any"
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::pointToCell::pointAction, 1>
|
const Foam::NamedEnum<Foam::pointToCell::pointAction, 1>
|
||||||
Foam::pointToCell::pointActionNames_;
|
Foam::pointToCell::pointActionNames_;
|
||||||
|
|
||||||
|
|||||||
@ -34,13 +34,16 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
defineTypeNameAndDebug(cellToFace, 0);
|
||||||
|
addToRunTimeSelectionTable(topoSetSource, cellToFace, word);
|
||||||
|
addToRunTimeSelectionTable(topoSetSource, cellToFace, istream);
|
||||||
|
|
||||||
defineTypeNameAndDebug(cellToFace, 0);
|
template<>
|
||||||
|
const char* Foam::NamedEnum<Foam::cellToFace::cellAction, 2>::names[] =
|
||||||
addToRunTimeSelectionTable(topoSetSource, cellToFace, word);
|
{
|
||||||
|
"all",
|
||||||
addToRunTimeSelectionTable(topoSetSource, cellToFace, istream);
|
"both"
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -52,13 +55,6 @@ Foam::topoSetSource::addToUsageTable Foam::cellToFace::usage_
|
|||||||
" -both: faces where both neighbours are in the cellSet\n\n"
|
" -both: faces where both neighbours are in the cellSet\n\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
template<>
|
|
||||||
const char* Foam::NamedEnum<Foam::cellToFace::cellAction, 2>::names[] =
|
|
||||||
{
|
|
||||||
"all",
|
|
||||||
"both"
|
|
||||||
};
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::cellToFace::cellAction, 2>
|
const Foam::NamedEnum<Foam::cellToFace::cellAction, 2>
|
||||||
Foam::cellToFace::cellActionNames_;
|
Foam::cellToFace::cellActionNames_;
|
||||||
|
|
||||||
|
|||||||
@ -33,13 +33,16 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
defineTypeNameAndDebug(pointToFace, 0);
|
||||||
|
addToRunTimeSelectionTable(topoSetSource, pointToFace, word);
|
||||||
|
addToRunTimeSelectionTable(topoSetSource, pointToFace, istream);
|
||||||
|
|
||||||
defineTypeNameAndDebug(pointToFace, 0);
|
template<>
|
||||||
|
const char* Foam::NamedEnum<Foam::pointToFace::pointAction, 2>::names[] =
|
||||||
addToRunTimeSelectionTable(topoSetSource, pointToFace, word);
|
{
|
||||||
|
"any",
|
||||||
addToRunTimeSelectionTable(topoSetSource, pointToFace, istream);
|
"all"
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -52,13 +55,6 @@ Foam::topoSetSource::addToUsageTable Foam::pointToFace::usage_
|
|||||||
" -all points in the pointSet\n\n"
|
" -all points in the pointSet\n\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
template<>
|
|
||||||
const char* Foam::NamedEnum<Foam::pointToFace::pointAction, 2>::names[] =
|
|
||||||
{
|
|
||||||
"any",
|
|
||||||
"all"
|
|
||||||
};
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::pointToFace::pointAction, 2>
|
const Foam::NamedEnum<Foam::pointToFace::pointAction, 2>
|
||||||
Foam::pointToFace::pointActionNames_;
|
Foam::pointToFace::pointActionNames_;
|
||||||
|
|
||||||
|
|||||||
@ -33,13 +33,15 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
defineTypeNameAndDebug(cellToPoint, 0);
|
||||||
|
addToRunTimeSelectionTable(topoSetSource, cellToPoint, word);
|
||||||
|
addToRunTimeSelectionTable(topoSetSource, cellToPoint, istream);
|
||||||
|
|
||||||
defineTypeNameAndDebug(cellToPoint, 0);
|
template<>
|
||||||
|
const char* Foam::NamedEnum<Foam::cellToPoint::cellAction, 1>::names[] =
|
||||||
addToRunTimeSelectionTable(topoSetSource, cellToPoint, word);
|
{
|
||||||
|
"all"
|
||||||
addToRunTimeSelectionTable(topoSetSource, cellToPoint, istream);
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -50,12 +52,6 @@ Foam::topoSetSource::addToUsageTable Foam::cellToPoint::usage_
|
|||||||
" Select all points of cells in the cellSet\n\n"
|
" Select all points of cells in the cellSet\n\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
template<>
|
|
||||||
const char* Foam::NamedEnum<Foam::cellToPoint::cellAction, 1>::names[] =
|
|
||||||
{
|
|
||||||
"all"
|
|
||||||
};
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::cellToPoint::cellAction, 1>
|
const Foam::NamedEnum<Foam::cellToPoint::cellAction, 1>
|
||||||
Foam::cellToPoint::cellActionNames_;
|
Foam::cellToPoint::cellActionNames_;
|
||||||
|
|
||||||
|
|||||||
@ -33,13 +33,15 @@ License
|
|||||||
|
|
||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
|
defineTypeNameAndDebug(faceToPoint, 0);
|
||||||
|
addToRunTimeSelectionTable(topoSetSource, faceToPoint, word);
|
||||||
|
addToRunTimeSelectionTable(topoSetSource, faceToPoint, istream);
|
||||||
|
|
||||||
defineTypeNameAndDebug(faceToPoint, 0);
|
template<>
|
||||||
|
const char* Foam::NamedEnum<Foam::faceToPoint::faceAction, 1>::names[] =
|
||||||
addToRunTimeSelectionTable(topoSetSource, faceToPoint, word);
|
{
|
||||||
|
"all"
|
||||||
addToRunTimeSelectionTable(topoSetSource, faceToPoint, istream);
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -50,12 +52,6 @@ Foam::topoSetSource::addToUsageTable Foam::faceToPoint::usage_
|
|||||||
" Select all points of faces in the faceSet\n\n"
|
" Select all points of faces in the faceSet\n\n"
|
||||||
);
|
);
|
||||||
|
|
||||||
template<>
|
|
||||||
const char* Foam::NamedEnum<Foam::faceToPoint::faceAction, 1>::names[] =
|
|
||||||
{
|
|
||||||
"all"
|
|
||||||
};
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::faceToPoint::faceAction, 1>
|
const Foam::NamedEnum<Foam::faceToPoint::faceAction, 1>
|
||||||
Foam::faceToPoint::faceActionNames_;
|
Foam::faceToPoint::faceActionNames_;
|
||||||
|
|
||||||
|
|||||||
@ -34,24 +34,24 @@ namespace Foam
|
|||||||
defineTypeNameAndDebug(topoSetSource, 0);
|
defineTypeNameAndDebug(topoSetSource, 0);
|
||||||
defineRunTimeSelectionTable(topoSetSource, word);
|
defineRunTimeSelectionTable(topoSetSource, word);
|
||||||
defineRunTimeSelectionTable(topoSetSource, istream);
|
defineRunTimeSelectionTable(topoSetSource, istream);
|
||||||
|
|
||||||
|
template<>
|
||||||
|
const char* Foam::NamedEnum<Foam::topoSetSource::setAction, 8>::names[] =
|
||||||
|
{
|
||||||
|
"clear",
|
||||||
|
"new",
|
||||||
|
"invert",
|
||||||
|
"add",
|
||||||
|
"delete",
|
||||||
|
"subset",
|
||||||
|
"list",
|
||||||
|
"remove"
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Foam::HashTable<Foam::string>* Foam::topoSetSource::usageTablePtr_ = NULL;
|
Foam::HashTable<Foam::string>* Foam::topoSetSource::usageTablePtr_ = NULL;
|
||||||
|
|
||||||
template<>
|
|
||||||
const char* Foam::NamedEnum<Foam::topoSetSource::setAction, 8>::names[] =
|
|
||||||
{
|
|
||||||
"clear",
|
|
||||||
"new",
|
|
||||||
"invert",
|
|
||||||
"add",
|
|
||||||
"delete",
|
|
||||||
"subset",
|
|
||||||
"list",
|
|
||||||
"remove"
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::topoSetSource::setAction, 8>
|
const Foam::NamedEnum<Foam::topoSetSource::setAction, 8>
|
||||||
Foam::topoSetSource::actionNames_;
|
Foam::topoSetSource::actionNames_;
|
||||||
|
|||||||
@ -49,18 +49,20 @@ namespace Foam
|
|||||||
distributedTriSurfaceMesh,
|
distributedTriSurfaceMesh,
|
||||||
dict
|
dict
|
||||||
);
|
);
|
||||||
|
|
||||||
|
template<>
|
||||||
|
const char* Foam::NamedEnum
|
||||||
|
<
|
||||||
|
Foam::distributedTriSurfaceMesh::distributionType,
|
||||||
|
3
|
||||||
|
>::names[] =
|
||||||
|
{
|
||||||
|
"follow",
|
||||||
|
"independent",
|
||||||
|
"frozen"
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
template<>
|
|
||||||
const char*
|
|
||||||
Foam::NamedEnum<Foam::distributedTriSurfaceMesh::distributionType, 3>::names[] =
|
|
||||||
{
|
|
||||||
"follow",
|
|
||||||
"independent",
|
|
||||||
"frozen"
|
|
||||||
};
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::distributedTriSurfaceMesh::distributionType, 3>
|
const Foam::NamedEnum<Foam::distributedTriSurfaceMesh::distributionType, 3>
|
||||||
Foam::distributedTriSurfaceMesh::distributionTypeNames_;
|
Foam::distributedTriSurfaceMesh::distributionTypeNames_;
|
||||||
|
|
||||||
|
|||||||
@ -27,12 +27,16 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<>
|
namespace Foam
|
||||||
const char* Foam::NamedEnum<Foam::fieldAverageItem::baseType, 2>::names[] =
|
|
||||||
{
|
{
|
||||||
"iteration",
|
template<>
|
||||||
"time"
|
const char* Foam::NamedEnum<Foam::fieldAverageItem::baseType, 2>::names[] =
|
||||||
};
|
{
|
||||||
|
"iteration",
|
||||||
|
"time"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::fieldAverageItem::baseType, 2>
|
const Foam::NamedEnum<Foam::fieldAverageItem::baseType, 2>
|
||||||
Foam::fieldAverageItem::baseTypeNames_;
|
Foam::fieldAverageItem::baseTypeNames_;
|
||||||
|
|||||||
@ -33,13 +33,15 @@ License
|
|||||||
|
|
||||||
defineTypeNameAndDebug(Foam::fieldMinMax, 0);
|
defineTypeNameAndDebug(Foam::fieldMinMax, 0);
|
||||||
|
|
||||||
|
namespace Foam
|
||||||
template<>
|
|
||||||
const char* Foam::NamedEnum<Foam::fieldMinMax::modeType, 2>::names[] =
|
|
||||||
{
|
{
|
||||||
"magnitude",
|
template<>
|
||||||
"component"
|
const char* Foam::NamedEnum<Foam::fieldMinMax::modeType, 2>::names[] =
|
||||||
};
|
{
|
||||||
|
"magnitude",
|
||||||
|
"component"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::fieldMinMax::modeType, 2>
|
const Foam::NamedEnum<Foam::fieldMinMax::modeType, 2>
|
||||||
|
|||||||
@ -37,13 +37,21 @@ defineTypeNameAndDebug(Foam::abortCalculation, 0);
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<>
|
namespace Foam
|
||||||
const char* Foam::NamedEnum<Foam::abortCalculation::actionType, 3>::names[] =
|
|
||||||
{
|
{
|
||||||
"noWriteNow",
|
template<>
|
||||||
"writeNow",
|
const char* Foam::NamedEnum
|
||||||
"nextWrite"
|
<
|
||||||
};
|
Foam::abortCalculation::actionType,
|
||||||
|
3
|
||||||
|
>::names[] =
|
||||||
|
{
|
||||||
|
"noWriteNow",
|
||||||
|
"writeNow",
|
||||||
|
"nextWrite"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::abortCalculation::actionType, 3>
|
const Foam::NamedEnum<Foam::abortCalculation::actionType, 3>
|
||||||
Foam::abortCalculation::actionTypeNames_;
|
Foam::abortCalculation::actionTypeNames_;
|
||||||
|
|||||||
@ -27,15 +27,19 @@ License
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * Static Member Data * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * Static Member Data * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
template<>
|
namespace Foam
|
||||||
const char* Foam::NamedEnum<Foam::coordSet::coordFormat, 5>::names[] =
|
|
||||||
{
|
{
|
||||||
"xyz",
|
template<>
|
||||||
"x",
|
const char* Foam::NamedEnum<Foam::coordSet::coordFormat, 5>::names[] =
|
||||||
"y",
|
{
|
||||||
"z",
|
"xyz",
|
||||||
"distance"
|
"x",
|
||||||
};
|
"y",
|
||||||
|
"z",
|
||||||
|
"distance"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const Foam::NamedEnum<Foam::coordSet::coordFormat, 5>
|
const Foam::NamedEnum<Foam::coordSet::coordFormat, 5>
|
||||||
Foam::coordSet::coordFormatNames_;
|
Foam::coordSet::coordFormatNames_;
|
||||||
|
|||||||
@ -33,20 +33,20 @@ License
|
|||||||
namespace Foam
|
namespace Foam
|
||||||
{
|
{
|
||||||
defineTypeNameAndDebug(alphaContactAngleFvPatchScalarField, 0);
|
defineTypeNameAndDebug(alphaContactAngleFvPatchScalarField, 0);
|
||||||
}
|
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
const char* Foam::NamedEnum
|
const char* Foam::NamedEnum
|
||||||
<
|
<
|
||||||
Foam::alphaContactAngleFvPatchScalarField::limitControls,
|
Foam::alphaContactAngleFvPatchScalarField::limitControls,
|
||||||
4
|
4
|
||||||
>::names[] =
|
>::names[] =
|
||||||
{
|
{
|
||||||
"none",
|
"none",
|
||||||
"gradient",
|
"gradient",
|
||||||
"zeroGradient",
|
"zeroGradient",
|
||||||
"alpha"
|
"alpha"
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const Foam::NamedEnum
|
const Foam::NamedEnum
|
||||||
<
|
<
|
||||||
|
|||||||
Reference in New Issue
Block a user