Skip to content
Snippets Groups Projects
Commit 7b99060e authored by Anna Wellmann's avatar Anna Wellmann
Browse files

Merge branch 'develop' into 'develop'

Move stl for SphereGPU to app folder

See merge request irmb/VirtualFluids_dev!152
parents 0230740a 5a2d239d
No related branches found
No related tags found
1 merge request!152Move stl for SphereGPU to app folder
......@@ -152,15 +152,15 @@ int main(int argc, char *argv[])
6.0 * L, 0.8 * L, 0.8 * L, dx);
// use primitive
Object *sphere = new Sphere(0.0, 0.0, 0.0, dSphere / 2.0);
// Object *sphere = new Sphere(0.0, 0.0, 0.0, dSphere / 2.0);
// use stl
// std::string stlPath = "stl/sphere02.stl";
// if (useConfigFile && config.contains("STLPath")) {
// stlPath = config.getValue<std::string>("STLPath");
// }
// std::cout << "Reading stl from " << stlPath << "." << std::endl;
// Object *sphere = TriangularMesh::make(stlPath);
std::string stlPath = "./apps/gpu/LBM/SphereGPU/sphere02.stl";
if (useConfigFile && config.contains("STLPath")) {
stlPath = config.getValue<std::string>("STLPath");
}
std::cout << "Reading stl from " << stlPath << "." << std::endl;
Object *sphere = TriangularMesh::make(stlPath);
gridBuilder->addGeometry(sphere);
gridBuilder->setPeriodicBoundaryCondition(false, false, false);
......
......@@ -14,6 +14,7 @@ Prefix=Sphere01
#informations for reading
##################################################
GridPath="grid/"
#STLPath=./stl/Sphere/sphere02.stl
##################################################
#number of grid levels
......
This diff is collapsed.
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