Loading examples/navier-stokes/navierStokesSetter_impl.h +2 −2 Original line number Diff line number Diff line Loading @@ -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, Loading examples/navier-stokes/navierStokesSolver_impl.h +1 −1 Original line number Diff line number Diff line Loading @@ -502,7 +502,7 @@ void navierStokesSolver< Mesh, EulerScheme > :: GetExplicitRHS( const RealType& #endif } rhsDofVector = fu; //rhsDofVector = fu; //makeSnapshot( 0.0, 1 ); //getchar(); Loading examples/navier-stokes/share/examples/cavity +1 −0 Original line number Diff line number Diff line Loading @@ -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} \ Loading src/core/vectors/tnlMultiVector.h +8 −0 Original line number Diff line number Diff line Loading @@ -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 ); Loading Loading @@ -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 ); Loading Loading @@ -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 ); Loading Loading @@ -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 ); Loading src/core/vectors/tnlSharedVector.h +4 −2 Original line number Diff line number Diff line Loading @@ -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 > Loading @@ -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 Loading
examples/navier-stokes/navierStokesSetter_impl.h +2 −2 Original line number Diff line number Diff line Loading @@ -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, Loading
examples/navier-stokes/navierStokesSolver_impl.h +1 −1 Original line number Diff line number Diff line Loading @@ -502,7 +502,7 @@ void navierStokesSolver< Mesh, EulerScheme > :: GetExplicitRHS( const RealType& #endif } rhsDofVector = fu; //rhsDofVector = fu; //makeSnapshot( 0.0, 1 ); //getchar(); Loading
examples/navier-stokes/share/examples/cavity +1 −0 Original line number Diff line number Diff line Loading @@ -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} \ Loading
src/core/vectors/tnlMultiVector.h +8 −0 Original line number Diff line number Diff line Loading @@ -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 ); Loading Loading @@ -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 ); Loading Loading @@ -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 ); Loading Loading @@ -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 ); Loading
src/core/vectors/tnlSharedVector.h +4 −2 Original line number Diff line number Diff line Loading @@ -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 > Loading @@ -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