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

Re-implementing tnlGrid.

Adding directory legacy for old code.
parent 45b9b4a6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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}
+17 −0
Original line number Diff line number Diff line
@@ -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 >
+6 −2
Original line number Diff line number Diff line
@@ -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();

+1 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@
#ifndef TNLMULTIARRAY_H_
#define TNLMULTIARRAY_H_

#include <iostream>
#include <core/tnlArray.h>
#include <core/tnlTuple.h>
#include <core/tnlAssert.h>
+2 −2
Original line number Diff line number Diff line
@@ -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