Commit e77c8bf5 authored by Tomáš Oberhuber's avatar Tomáš Oberhuber
Browse files

Mesh config and config validator were added.

parent 836b227c
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
TODO: Mesh
 * vsechny traits zkusit presunout do jednotneho MeshTraits, tj. temer MeshConfigTraits ale pojmenovat jako MeshTraits
 * zrusit tnlDimesnionsTag
 * prejmenovat Tagy v topologies na Topology zrejme
 * zrusit tnlStorageTraits

TODO: v tnlMeshResolver se provadi preklad pro vsechny mozne sablonove parametry => prorezat

TODO: napsat FunctionDiscretizer pro jednotne rozhrani RightHandSide

TODO: doplnit mesh travelsals pro jine mesh entity nez cell
TODO: implementace maticovych resicu
      * Gaussova eliminace
      * SOR metoda
+8 −0
Original line number Diff line number Diff line
@@ -101,6 +101,8 @@ class tnlStaticArray

   void sort();
   
   ostream& write( ostream& str, const char* separator = " " ) const;

   protected:
   Element data[ Size ];

@@ -193,6 +195,8 @@ class tnlStaticArray< 1, Element >

   void sort();
   
   ostream& write( ostream& str, const char* separator = " " ) const;

   protected:
   Element data[ size ];
};
@@ -302,6 +306,8 @@ class tnlStaticArray< 2, Element >

   void sort();
   
   ostream& write( ostream& str, const char* separator = " " ) const;

   protected:
   Element data[ size ];
};
@@ -423,6 +429,8 @@ class tnlStaticArray< 3, Element >

   void sort();
   
   ostream& write( ostream& str, const char* separator = " " ) const;

   protected:
   Element data[ size ];

+7 −0
Original line number Diff line number Diff line
@@ -202,6 +202,13 @@ void tnlStaticArray< 1, Element >::sort()
{
}

template< typename Element >
ostream& tnlStaticArray< 1, Element >::write( ostream& str, const char* separator ) const
{
   str << data[ 0 ];
   return str;
}

#ifdef TEMPLATE_EXPLICIT_INSTANTIATION

// TODO: it does not work with CUDA
+7 −0
Original line number Diff line number Diff line
@@ -239,6 +239,13 @@ void tnlStaticArray< 2, Element >::sort()
      Swap( data[ 0 ], data[ 1 ] );
}

template< typename Element >
ostream& tnlStaticArray< 2, Element >::write( ostream& str, const char* separator ) const
{
   str << data[ 0 ] << separator << data[ 1 ];
   return str;
}

#ifdef TEMPLATE_EXPLICIT_INSTANTIATION

// TODO: it does not work with CUDA
+8 −0
Original line number Diff line number Diff line
@@ -270,6 +270,14 @@ void tnlStaticArray< 3, Element >::sort()
      Swap( data[ 0 ], data[ 1 ] );
}

template< typename Element >
ostream& tnlStaticArray< 3, Element >::write( ostream& str, const char* separator ) const
{
   str << data[ 0 ] << separator << data[ 1 ] << separator << data[ 2 ];
   return str;
}


#ifdef TEMPLATE_EXPLICIT_INSTANTIATION

// TODO: it does not work with CUDA
Loading