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

Fixing multivectors type getting.

parent 061b5040
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -39,8 +39,8 @@ bool navierStokesSetter< SolverStarter > :: run( const tnlParameterContainer& pa
   const tnlString& schemeName = parameters. GetParameter< tnlString >( "scheme" );
   if( dimensions == 2 )
   {
      typedef tnlGrid< 2, RealType, DeviceType, IndexType, tnlLinearGridGeometry > MeshType;
      //typedef tnlGrid< 2, RealType, DeviceType, IndexType > MeshType;
      //typedef tnlGrid< 2, RealType, DeviceType, IndexType, tnlLinearGridGeometry > MeshType;
      typedef tnlGrid< 2, RealType, DeviceType, IndexType > MeshType;
      if( schemeName == "lax-fridrichs" )
         return solverStarter. run< navierStokesSolver< MeshType,
                                                        tnlLaxFridrichs< MeshType,
+1 −1
Original line number Diff line number Diff line
@@ -502,7 +502,7 @@ void navierStokesSolver< Mesh, EulerScheme > :: GetExplicitRHS( const RealType&
#endif
   }

   rhsDofVector = fu;
   //rhsDofVector = fu;
   //makeSnapshot( 0.0, 1 );
   //getchar();

+1 −0
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ do
      navier-stokes --problem-name cavity \
                    --max-inflow-velocity ${max_inflow_velocity} \
                    --max-outflow-velocity ${max_outflow_velocity} \
                    --start-up 1 \
                    --width 1 \
                    --height 1 \
                    --mu ${mu} \
+8 −0
Original line number Diff line number Diff line
@@ -43,6 +43,8 @@ class tnlMultiVector< 1, Element, Device, Index > : public tnlVector< Element, D

   tnlString getType() const;

   tnlString getTypeVirtual() const;

   bool setDimensions( const Index iSize );

   bool setDimensions( const tnlTuple< 1, Index >& dimensions );
@@ -116,6 +118,8 @@ class tnlMultiVector< 2, Element, Device, Index > : public tnlVector< Element, D

   tnlString getType() const;

   tnlString getTypeVirtual() const;

   bool setDimensions( const Index jSize, const Index iSize );

   bool setDimensions( const tnlTuple< 2, Index >& dimensions );
@@ -190,6 +194,8 @@ class tnlMultiVector< 3, Element, Device, Index > : public tnlVector< Element, D

   tnlString getType() const;

   tnlString getTypeVirtual() const;

   bool setDimensions( const Index k, const Index j, const Index iSize );

   bool setDimensions( const tnlTuple< 3, Index >& dimensions );
@@ -264,6 +270,8 @@ class tnlMultiVector< 4, Element, Device, Index > : public tnlVector< Element, D

   tnlString getType() const;

   tnlString getTypeVirtual() const;

   bool setDimensions( const Index l, const Index k, const Index j, const Index iSize );

   bool setDimensions( const tnlTuple< 4, Index >& dimensions );
+4 −2
Original line number Diff line number Diff line
@@ -35,6 +35,8 @@ class tnlSharedVector : public tnlSharedArray< Real, Device, Index >

   tnlString getType() const;

   tnlString getTypeVirtual() const;

   tnlSharedVector< Real, Device, Index >& operator = ( const tnlSharedVector< Real, Device, Index >& array );

   template< typename Vector >
@@ -46,9 +48,9 @@ class tnlSharedVector : public tnlSharedArray< Real, Device, Index >
   template< typename Vector >
   bool operator != ( const Vector& array ) const;

   bool save( tnlFile& file ) const;
   //bool save( tnlFile& file ) const;

   bool save( const tnlString& fileName ) const;
   //bool save( const tnlString& fileName ) const;

   Real max() const;

Loading