Loading src/TNL/Meshes/MeshConfigBase.h +8 −1 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ #pragma once #include <TNL/String.h> #include <TNL/param-types.h> namespace TNL { namespace Meshes { Loading Loading @@ -49,7 +50,13 @@ struct MeshConfigBase static String getType() { return String( "MeshConfigBase< >"); return String( "Meshes::MeshConfigBase< " ) + Cell::getType() + ", " + String( WorldDimensions ) + ", " + TNL::getType< Real >() + ", " + TNL::getType< GlobalIndex >() + ", " + TNL::getType< LocalIndex >() + ", " + TNL::getType< Id >() + " >"; }; /**** Loading src/TNL/Meshes/MeshDetails/MeshEntity_impl.h +5 −5 Original line number Diff line number Diff line Loading @@ -27,7 +27,9 @@ String MeshEntity< MeshConfig, EntityTopology >:: getType() { return String( "MeshEntity< ... >" ); return String( "MeshEntity< " ) + MeshConfig::getType() + ", " + EntityTopology::getType() + " >"; } template< typename MeshConfig, Loading @@ -45,8 +47,7 @@ bool MeshEntity< MeshConfig, EntityTopology >:: save( File& file ) const { if( ! MeshSubentityAccess< MeshConfig, EntityTopology >::save( file ) /*|| ! MeshSuperentityStorageLayers< MeshConfig, EntityTopology >::save( file )*/ ) if( ! MeshSubentityAccess< MeshConfig, EntityTopology >::save( file ) ) return false; return true; } Loading @@ -57,8 +58,7 @@ bool MeshEntity< MeshConfig, EntityTopology >:: load( File& file ) { if( ! MeshSubentityAccess< MeshConfig, EntityTopology >::load( file ) /*|| ! MeshSuperentityStorageLayers< MeshConfig, EntityTopology >::load( file ) */ ) if( ! MeshSubentityAccess< MeshConfig, EntityTopology >::load( file ) ) return false; return true; } Loading src/TNL/Meshes/Topologies/MeshEdgeTopology.h +7 −2 Original line number Diff line number Diff line Loading @@ -24,7 +24,12 @@ namespace Meshes { struct MeshEdgeTopology { static const int dimensions = 1; static constexpr int dimensions = 1; static String getType() { return "MeshEdgeTopology"; } }; Loading @@ -33,7 +38,7 @@ struct MeshSubtopology< MeshEdgeTopology, 0 > { typedef MeshVertexTopology Topology; static const int count = 2; static constexpr int count = 2; }; } // namespace Meshes Loading src/TNL/Meshes/Topologies/MeshHexahedronTopology.h +9 −4 Original line number Diff line number Diff line Loading @@ -23,7 +23,12 @@ namespace Meshes { struct MeshHexahedronTopology { static const int dimensions = 3; static constexpr int dimensions = 3; static String getType() { return "MeshHexahedronTopology"; } }; template<> Loading @@ -31,7 +36,7 @@ struct MeshSubtopology< MeshHexahedronTopology, 0 > { typedef MeshVertexTopology Topology; static const int count = 8; static constexpr int count = 8; }; template<> Loading @@ -39,7 +44,7 @@ struct MeshSubtopology< MeshHexahedronTopology, 1 > { typedef MeshEdgeTopology Topology; static const int count = 12; static constexpr int count = 12; }; template<> Loading @@ -47,7 +52,7 @@ struct MeshSubtopology< MeshHexahedronTopology, 2 > { typedef MeshQuadrilateralTopology Topology; static const int count = 6; static constexpr int count = 6; }; /**** Loading src/TNL/Meshes/Topologies/MeshQuadrilateralTopology.h +8 −3 Original line number Diff line number Diff line Loading @@ -23,7 +23,12 @@ namespace Meshes { struct MeshQuadrilateralTopology { static const int dimensions = 2; static constexpr int dimensions = 2; static String getType() { return "MeshQuadrilateralTopology"; } }; Loading @@ -32,7 +37,7 @@ struct MeshSubtopology< MeshQuadrilateralTopology, 0 > { typedef MeshVertexTopology Topology; static const int count = 4; static constexpr int count = 4; }; template<> Loading @@ -40,7 +45,7 @@ struct MeshSubtopology< MeshQuadrilateralTopology, 1 > { typedef MeshEdgeTopology Topology; static const int count = 4; static constexpr int count = 4; }; Loading Loading
src/TNL/Meshes/MeshConfigBase.h +8 −1 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ #pragma once #include <TNL/String.h> #include <TNL/param-types.h> namespace TNL { namespace Meshes { Loading Loading @@ -49,7 +50,13 @@ struct MeshConfigBase static String getType() { return String( "MeshConfigBase< >"); return String( "Meshes::MeshConfigBase< " ) + Cell::getType() + ", " + String( WorldDimensions ) + ", " + TNL::getType< Real >() + ", " + TNL::getType< GlobalIndex >() + ", " + TNL::getType< LocalIndex >() + ", " + TNL::getType< Id >() + " >"; }; /**** Loading
src/TNL/Meshes/MeshDetails/MeshEntity_impl.h +5 −5 Original line number Diff line number Diff line Loading @@ -27,7 +27,9 @@ String MeshEntity< MeshConfig, EntityTopology >:: getType() { return String( "MeshEntity< ... >" ); return String( "MeshEntity< " ) + MeshConfig::getType() + ", " + EntityTopology::getType() + " >"; } template< typename MeshConfig, Loading @@ -45,8 +47,7 @@ bool MeshEntity< MeshConfig, EntityTopology >:: save( File& file ) const { if( ! MeshSubentityAccess< MeshConfig, EntityTopology >::save( file ) /*|| ! MeshSuperentityStorageLayers< MeshConfig, EntityTopology >::save( file )*/ ) if( ! MeshSubentityAccess< MeshConfig, EntityTopology >::save( file ) ) return false; return true; } Loading @@ -57,8 +58,7 @@ bool MeshEntity< MeshConfig, EntityTopology >:: load( File& file ) { if( ! MeshSubentityAccess< MeshConfig, EntityTopology >::load( file ) /*|| ! MeshSuperentityStorageLayers< MeshConfig, EntityTopology >::load( file ) */ ) if( ! MeshSubentityAccess< MeshConfig, EntityTopology >::load( file ) ) return false; return true; } Loading
src/TNL/Meshes/Topologies/MeshEdgeTopology.h +7 −2 Original line number Diff line number Diff line Loading @@ -24,7 +24,12 @@ namespace Meshes { struct MeshEdgeTopology { static const int dimensions = 1; static constexpr int dimensions = 1; static String getType() { return "MeshEdgeTopology"; } }; Loading @@ -33,7 +38,7 @@ struct MeshSubtopology< MeshEdgeTopology, 0 > { typedef MeshVertexTopology Topology; static const int count = 2; static constexpr int count = 2; }; } // namespace Meshes Loading
src/TNL/Meshes/Topologies/MeshHexahedronTopology.h +9 −4 Original line number Diff line number Diff line Loading @@ -23,7 +23,12 @@ namespace Meshes { struct MeshHexahedronTopology { static const int dimensions = 3; static constexpr int dimensions = 3; static String getType() { return "MeshHexahedronTopology"; } }; template<> Loading @@ -31,7 +36,7 @@ struct MeshSubtopology< MeshHexahedronTopology, 0 > { typedef MeshVertexTopology Topology; static const int count = 8; static constexpr int count = 8; }; template<> Loading @@ -39,7 +44,7 @@ struct MeshSubtopology< MeshHexahedronTopology, 1 > { typedef MeshEdgeTopology Topology; static const int count = 12; static constexpr int count = 12; }; template<> Loading @@ -47,7 +52,7 @@ struct MeshSubtopology< MeshHexahedronTopology, 2 > { typedef MeshQuadrilateralTopology Topology; static const int count = 6; static constexpr int count = 6; }; /**** Loading
src/TNL/Meshes/Topologies/MeshQuadrilateralTopology.h +8 −3 Original line number Diff line number Diff line Loading @@ -23,7 +23,12 @@ namespace Meshes { struct MeshQuadrilateralTopology { static const int dimensions = 2; static constexpr int dimensions = 2; static String getType() { return "MeshQuadrilateralTopology"; } }; Loading @@ -32,7 +37,7 @@ struct MeshSubtopology< MeshQuadrilateralTopology, 0 > { typedef MeshVertexTopology Topology; static const int count = 4; static constexpr int count = 4; }; template<> Loading @@ -40,7 +45,7 @@ struct MeshSubtopology< MeshQuadrilateralTopology, 1 > { typedef MeshEdgeTopology Topology; static const int count = 4; static constexpr int count = 4; }; Loading