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

Adapt app DrienCavity to work without config

parent cfbb38ce
No related branches found
No related tags found
1 merge request!115Enable running VirtualFluidsGPU without config file
......@@ -93,6 +93,7 @@ const real dt = (real)1.0e-3; //0.5e-3;
const uint nx = 64;
std::string path("output/");
std::string gridPath("grid/");
std::string simulationName("DrivenCavityChim");
......@@ -174,11 +175,10 @@ void multipleLevel(const std::string& configPath)
para->setDevices(std::vector<uint>{(uint)0});
para->setOutputPath( path ); // optional, default is output/
para ->setGridPath( gridPath ); // optional, default is grid/
para->setOutputPrefix( simulationName );
para->setFName(para->getOutputPath() + "/" + para->getOutputPrefix());
para->setPrintFiles(true);
para->setMaxLevel(2);
......@@ -211,7 +211,7 @@ void multipleLevel(const std::string& configPath)
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
gridBuilder->writeGridsToVtk(path + "/grid/");
gridBuilder->writeGridsToVtk(para->getGridPath());
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
......
......@@ -7,16 +7,13 @@
##################################################
#informations for Writing
##################################################
#Path="E:/DrivenCavity/results"
#Path="F:/Work/Computations/out/DrivenCavity/"
Path = C:/out/
#Path = "output/"
#Prefix="DrivenCavity"
#WriteGrid=true
##################################################
#informations for reading
##################################################
#GridPath="E:/DrivenCavity/dummy"
GridPath="C:"
#GridPath="grid/"
##################################################
#number of grid levels
......
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