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

Implementing operator composition test.

parent 887a580c
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -93,6 +93,11 @@ ${CMAKE} ${ROOT_DIR} \
         -DINSTANTIATE_INT=${INSTANTIATE_INT} \
         -DINSTANTIATE_LONG_INT=${INSTANTIATE_LONG_INT}

if test $? != 0; then
    echo "Error: cmake exited with error code."
    exit 1
fi

if test ${CMAKE_ONLY} = "yes";
then
    exit 1
@@ -101,10 +106,18 @@ fi
echo "Building ${BUILD} $TARGET using $BUILD_JOBS processors ..."

make -j${BUILD_JOBS} ${VERBOSE}
if test $? != 0; then
    echo "Error: Build process failed."
    exit 1
fi


if test WITH_TESTS = "yes";
then
    make -j${BUILD_JOBS} test
    if test $? != 0; then
        echo "Error: Some test did not pass successfuly."
    fi
fi

exit 0
+6 −6
Original line number Diff line number Diff line
@@ -35,12 +35,12 @@ then
       mkdir Debug
    fi
    cd Debug
    ../build --root-dir=.. --build=Debug ${OPTIONS}
    if test $? != 0;
    if ../build --root-dir=.. --build=Debug ${OPTIONS};
    then
        make install
    else    
       exit 1
    fi
    make install
    cd ..
fi

@@ -51,12 +51,12 @@ then
       mkdir Release
    fi
    cd Release
    ../build --root-dir=.. --build=Release ${OPTIONS}
    if test $? != 0;
    if ../build --root-dir=.. --build=Release ${OPTIONS};
    then
        make install
    else
        exit 1
    fi
    make install
    cd ..
fi

+2 −0
Original line number Diff line number Diff line
@@ -30,6 +30,8 @@ class tnlExpBumpFunctionBase : public tnlDomain< dimensions, SpaceDomain >
     
      typedef Real RealType;
      
      tnlExpBumpFunctionBase();
      
      bool setup( const tnlParameterContainer& parameters,
                 const tnlString& prefix = "" );

+7 −0
Original line number Diff line number Diff line
@@ -20,6 +20,13 @@

#include <functions/tnlExpBumpFunction.h>

template< int dimensions, typename Real >
tnlExpBumpFunctionBase< dimensions, Real >::
tnlExpBumpFunctionBase()
   : amplitude( 1.0 ), sigma( 1.0 )
{
}

template< int dimensions, typename Real >
bool
tnlExpBumpFunctionBase< dimensions, Real >::
+7 −3
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ class tnlMeshFunction :
      typedef tnlVector< RealType, DeviceType, IndexType > VectorType;
      typedef tnlMeshFunction< Mesh, MeshEntityDimensions, Real > ThisType;
      
      static constexpr int getMeshEntityDimensions() { return  MeshEntityDimensions; };
      static constexpr int getEntitiesDimensions() { return MeshEntityDimensions; };
      
      tnlMeshFunction();
      
@@ -79,6 +79,10 @@ class tnlMeshFunction :
      
      VectorType& getData();
      
      bool refresh( const RealType& time = 0.0 ) const;
      
      bool deepRefresh( const RealType& time = 0.0 ) const;
      
      template< typename EntityType >
      RealType getValue( const EntityType& meshEntity ) const;
      
Loading