Commit 5e2aed0c authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixed more instances of using StaticVector::size instead of getSize()

parent ab6e0525
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -23,13 +23,13 @@ namespace Functions {
namespace Analytic {   

template< typename Point >
class SinBumpsBase : public Domain< Point::size, SpaceDomain >
class SinBumpsBase : public Domain< Point::getSize(), SpaceDomain >
{
   public:
 
      typedef Point PointType;
      typedef typename Point::RealType RealType;
      enum { Dimension = PointType::size };
      enum { Dimension = PointType::getSize() };

      void setWaveLength( const PointType& waveLength );

+2 −2
Original line number Diff line number Diff line
@@ -20,13 +20,13 @@ namespace TNL {


template< typename Point >
class SinBumpsSDFBase : public Domain< Point::size, SpaceDomain >
class SinBumpsSDFBase : public Domain< Point::getSize(), SpaceDomain >
{
   public:

      typedef Point PointType;
      typedef typename Point::RealType RealType;
      enum { Dimensions = PointType::size };
      enum { Dimensions = PointType::getSize() };

      void setWaveLength( const PointType& waveLength );

+3 −3
Original line number Diff line number Diff line
@@ -455,13 +455,13 @@ VTKWriter< Mesh >::writePoints( const Mesh& mesh, std::ostream& str )
   for( Index i = 0; i < verticesCount; i++ ) {
      const auto& vertex = mesh.template getEntity< typename Mesh::Vertex >( i );
      const auto& point = vertex.getPoint();
      for( Index j = 0; j < point.size; j++ ) {
      for( Index j = 0; j < point.getSize(); j++ ) {
         str << point[ j ];
         if( j < point.size - 1 )
         if( j < point.getSize() - 1 )
            str << " ";
      }
      // VTK needs zeros for unused dimensions
      for( Index j = 0; j < 3 - point.size; j++ )
      for( Index j = 0; j < 3 - point.getSize(); j++ )
         str << " 0";
      str << "\n";
   }