Loading src/CMakeLists.txt +2 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,8 @@ ADD_SUBDIRECTORY( diff ) ADD_SUBDIRECTORY( matrix ) ADD_SUBDIRECTORY( mesh ) ADD_SUBDIRECTORY( solvers ) ADD_SUBDIRECTORY( legacy ) ADD_SUBDIRECTORY( implementation ) ADD_LIBRARY( tnl${debugExt}-${tnlVersion} SHARED ${tnl_config_SOURCES} Loading src/core/implementation/tnlArray_impl.h +17 −0 Original line number Diff line number Diff line Loading @@ -333,6 +333,23 @@ bool tnlArray< Element, Device, Index > :: load( tnlFile& file ) return true; } template< typename Element, typename Device, typename Index > bool tnlArray< Element, Device, Index > :: save( const tnlString& fileName ) const { return tnlObject :: save( fileName ); } template< typename Element, typename Device, typename Index > bool tnlArray< Element, Device, Index > :: load( const tnlString& fileName ) { return tnlObject :: load( fileName ); } template< typename Element, typename Device, typename Index > Loading src/core/tnlArray.h +6 −2 Original line number Diff line number Diff line Loading @@ -94,10 +94,14 @@ class tnlArray : public tnlObject void touch( IndexType2 touches = 1 ) const; //! Method for saving the object to a file as a binary data. virtual bool save( tnlFile& file ) const; bool save( tnlFile& file ) const; //! Method for loading the object from a file as a binary data. virtual bool load( tnlFile& file ); bool load( tnlFile& file ); bool save( const tnlString& fileName ) const; bool load( const tnlString& fileName ); ~tnlArray(); Loading src/core/tnlMultiArray.h +1 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ #ifndef TNLMULTIARRAY_H_ #define TNLMULTIARRAY_H_ #include <iostream> #include <core/tnlArray.h> #include <core/tnlTuple.h> #include <core/tnlAssert.h> Loading src/diff/curve-ident.h +2 −2 Original line number Diff line number Diff line Loading @@ -19,11 +19,11 @@ #define curve_identH #include <core/tnlCurve.h> #include <mesh/tnlGrid.h> #include <legacy/mesh/tnlGridOld.h> #include <debug/tnlDebug.h> template< typename Real, typename Device, typename Index > bool getLevelSetCurve( const tnlGrid< 2, Real, Device, Index >& u, bool getLevelSetCurve( const tnlGridOld< 2, Real, Device, Index >& u, tnlCurve< tnlTuple< 2, Real > >& crv, const Real level = 0.0 ) { Loading Loading
src/CMakeLists.txt +2 −0 Original line number Diff line number Diff line Loading @@ -7,6 +7,8 @@ ADD_SUBDIRECTORY( diff ) ADD_SUBDIRECTORY( matrix ) ADD_SUBDIRECTORY( mesh ) ADD_SUBDIRECTORY( solvers ) ADD_SUBDIRECTORY( legacy ) ADD_SUBDIRECTORY( implementation ) ADD_LIBRARY( tnl${debugExt}-${tnlVersion} SHARED ${tnl_config_SOURCES} Loading
src/core/implementation/tnlArray_impl.h +17 −0 Original line number Diff line number Diff line Loading @@ -333,6 +333,23 @@ bool tnlArray< Element, Device, Index > :: load( tnlFile& file ) return true; } template< typename Element, typename Device, typename Index > bool tnlArray< Element, Device, Index > :: save( const tnlString& fileName ) const { return tnlObject :: save( fileName ); } template< typename Element, typename Device, typename Index > bool tnlArray< Element, Device, Index > :: load( const tnlString& fileName ) { return tnlObject :: load( fileName ); } template< typename Element, typename Device, typename Index > Loading
src/core/tnlArray.h +6 −2 Original line number Diff line number Diff line Loading @@ -94,10 +94,14 @@ class tnlArray : public tnlObject void touch( IndexType2 touches = 1 ) const; //! Method for saving the object to a file as a binary data. virtual bool save( tnlFile& file ) const; bool save( tnlFile& file ) const; //! Method for loading the object from a file as a binary data. virtual bool load( tnlFile& file ); bool load( tnlFile& file ); bool save( const tnlString& fileName ) const; bool load( const tnlString& fileName ); ~tnlArray(); Loading
src/core/tnlMultiArray.h +1 −0 Original line number Diff line number Diff line Loading @@ -18,6 +18,7 @@ #ifndef TNLMULTIARRAY_H_ #define TNLMULTIARRAY_H_ #include <iostream> #include <core/tnlArray.h> #include <core/tnlTuple.h> #include <core/tnlAssert.h> Loading
src/diff/curve-ident.h +2 −2 Original line number Diff line number Diff line Loading @@ -19,11 +19,11 @@ #define curve_identH #include <core/tnlCurve.h> #include <mesh/tnlGrid.h> #include <legacy/mesh/tnlGridOld.h> #include <debug/tnlDebug.h> template< typename Real, typename Device, typename Index > bool getLevelSetCurve( const tnlGrid< 2, Real, Device, Index >& u, bool getLevelSetCurve( const tnlGridOld< 2, Real, Device, Index >& u, tnlCurve< tnlTuple< 2, Real > >& crv, const Real level = 0.0 ) { Loading