Skip to content
Snippets Groups Projects
Commit b7fa2505 authored by Tomas Sobotik's avatar Tomas Sobotik
Browse files

Merging with MASTER. Fast Sweep 2D in progress, fixed test functions

parent f917518c
No related branches found
No related tags found
No related merge requests found
......@@ -3,4 +3,4 @@ add_subdirectory( navier-stokes )
#add_subdirectory( mean-curvature-flow )
#add_subdirectory( hamilton-jacobi )
#add_subdirectory( hamilton-jacobi-parallel )
#add_subdirectory( fast-sweeping )
add_subdirectory( fast-sweeping )
......@@ -2,5 +2,5 @@ add_subdirectory( heat-equation )
add_subdirectory( navier-stokes )
#add_subdirectory( mean-curvature-flow )
#add_subdirectory( hamilton-jacobi )
add_subdirectory( hamilton-jacobi-parallel )
add_subdirectory( fast-sweeping )
#add_subdirectory( hamilton-jacobi-parallel )
#add_subdirectory( fast-sweeping )
......@@ -18,7 +18,7 @@
#ifndef MAINBUILDCONFIG_H_
#define MAINBUILDCONFIG_H_
#include <solvers/tnlConfigTags.h>
#include <solvers/tnlBuildConfigTags.h>
class MainBuildConfig
{
......
......@@ -17,11 +17,11 @@
#include "MainBuildConfig.h"
//for HOST versions:
//#include "tnlFastSweeping.h"
#include "tnlFastSweeping.h"
//for DEVICE versions:
#include "tnlFastSweeping_CUDA.h"
//#include "tnlFastSweeping_CUDA.h"
#include "fastSweepingConfig.h"
#include <solvers/tnlConfigTags.h>
#include <solvers/tnlBuildConfigTags.h>
#include <mesh/tnlGrid.h>
#include <core/tnlDevice.h>
......@@ -43,7 +43,7 @@ int main( int argc, char* argv[] )
if( ! parseCommandLine( argc, argv, configDescription, parameters ) )
return false;
tnlFastSweeping<tnlGrid<3,double,tnlHost, int>, double, int> solver;
tnlFastSweeping<tnlGrid<2,double,tnlHost, int>, double, int> solver;
if(!solver.init(parameters))
{
cerr << "Solver failed to initialize." << endl;
......
......@@ -19,8 +19,10 @@
#include <config/tnlParameterContainer.h>
#include <core/vectors/tnlVector.h>
#include <core/vectors/tnlStaticVector.h>
#include <functions/tnlMeshFunction.h>
#include <core/tnlHost.h>
#include <mesh/tnlGrid.h>
#include <mesh/grids/tnlGridEntity.h>
#include <limits.h>
#include <core/tnlDevice.h>
#include <ctime>
......@@ -57,6 +59,7 @@ public:
typedef typename MeshType::CoordinatesType CoordinatesType;
tnlFastSweeping();
static tnlString getType();
bool init( const tnlParameterContainer& parameters );
......@@ -96,10 +99,14 @@ protected:
bool exactInput;
DofVectorType dofVector, dofVector2;
tnlMeshFunction<MeshType> dofVector, dofVector2;
DofVectorType data;
RealType h;
tnlGridEntity< MeshType, 0, tnlGridEntityNoStencilStorage > Entity;
#ifdef HAVE_OPENMP
// omp_lock_t* gridLock;
#endif
......@@ -188,6 +195,6 @@ protected:
//for parallel version use this one instead:
// #include "tnlFastSweeping2D_openMP_impl.h"
#include "tnlFastSweeping3D_impl.h"
// #include "tnlFastSweeping3D_impl.h"
#endif /* TNLFASTSWEEPING_H_ */
This diff is collapsed.
......@@ -72,6 +72,12 @@ configSetup( tnlConfigDescription& config,
config.addEntryEnum( "twins" );
config.addEntryEnum( "pseudoSquare" );
config.addEntryEnum( "blob" );
config.addEntryEnum( "sdf-sin-wave" );
config.addEntryEnum( "sdf-sin-bumps" );
config.addEntryEnum( "sdf-sin-wave-sdf" );
config.addEntryEnum( "sdf-sin-bumps-sdf" );
config.addEntryEnum( "sdf-paraboloid" );
config.addEntryEnum( "sdf-paraboloid-sdf" );
config.addEntry < double >( prefix + "constant", "Value of the constant function.", 0.0 );
config.addEntry < double >( prefix + "wave-length", "Wave length of the sine based test functions.", 1.0 );
config.addEntry < double >( prefix + "wave-length-x", "Wave length of the sine based test functions.", 1.0 );
......
......@@ -237,7 +237,6 @@ bool setElementType( const Mesh& mesh,
const tnlParameterContainer& parameters )
{
tnlString elementType;
if( parsedObjectType[ 0 ] == "tnlMultiVector" ||
parsedObjectType[ 0 ] == "tnlSharedMultiVector" )
elementType = parsedObjectType[ 2 ];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment