Commit 2a8cf73a authored by Nghia Truong's avatar Nghia Truong
Browse files

REFACT: Change SPHFluidExample file structure

parent 1df18469
......@@ -21,9 +21,9 @@ project(Example-SPHFluid)
#-----------------------------------------------------------------------------
# Create executable
#-----------------------------------------------------------------------------
add_executable(${PROJECT_NAME}-BallDrop SPHSphere.cpp Fluid.cpp Solid.cpp Bunny.cpp)
add_executable(${PROJECT_NAME}-HighViscousity SPHBox.cpp Fluid.cpp Solid.cpp Bunny.cpp)
add_executable(${PROJECT_NAME}-BunnyShape SPHBunny.cpp Fluid.cpp Solid.cpp Bunny.cpp)
add_executable(${PROJECT_NAME}-BallDrop SPHFluid-BallDrop.cpp Fluid.cpp Solid.cpp Bunny.cpp)
add_executable(${PROJECT_NAME}-HighViscousity SPHFluid-HighViscousity.cpp Fluid.cpp Solid.cpp Bunny.cpp)
add_executable(${PROJECT_NAME}-BunnyShape SPHFluid-BunnyShape.cpp Fluid.cpp Solid.cpp Bunny.cpp)
#-----------------------------------------------------------------------------
# Link libraries to executable
......
......@@ -21,4 +21,4 @@
// Generate a fluid simulation example in with a sphere-shape fluid dropping onto the ground
#define SCENE_ID 1
#include "SPHExample.hpp"
\ No newline at end of file
#include "SPHFluidExample.hpp"
\ No newline at end of file
......@@ -21,4 +21,4 @@
// Generate a fluid simulation example in with a bunny-shape fluid dropping onto a box
#define SCENE_ID 3
#include "SPHExample.hpp"
\ No newline at end of file
#include "SPHFluidExample.hpp"
\ No newline at end of file
......@@ -21,4 +21,4 @@
// Generate a fluid simulation example in with a box-shape of highly viscous fluid dropping onto the ground
#define SCENE_ID 2
#include "SPHExample.hpp"
\ No newline at end of file
#include "SPHFluidExample.hpp"
\ No newline at end of file
......@@ -23,7 +23,7 @@
#include "imstkSimulationManager.h"
#include "imstkSPHObject.h"
#include "imstkParallelHelpers.h"
#include "imstkParallelUtils.h"
#include "imstkAPIUtilities.h"
#include "imstkPlane.h"
#include "imstkSphere.h"
......@@ -74,11 +74,11 @@ int main(int argc, char* argv[])
if(threads <= 0)
{
ThreadManager::setMaximumParallelism();
ParallelUtils::ThreadManager::setMaximumParallelism();
}
else
{
ThreadManager::setNumberThreads(threads);
ParallelUtils::ThreadManager::setThreadPoolSize(threads);
}
auto scene = sdk->createNewScene("SPH Fluid");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment