Skip to content
Snippets Groups Projects
Commit 40e1e9d3 authored by Konstantin Kutscher's avatar Konstantin Kutscher
Browse files

fix warnings

parent 1fbbbf6f
No related branches found
No related tags found
2 merge requests!171Newest Update,!83Fix MPICommunicator
...@@ -349,8 +349,7 @@ void run(string configname) ...@@ -349,8 +349,7 @@ void run(string configname)
UBLOG(logINFO, "Available memory per process = " << availMem << " bytes"); UBLOG(logINFO, "Available memory per process = " << availMem << " bytes");
} }
MultiphaseSetKernelBlockVisitor kernelVisitor(kernel, nuL, nuG, densityRatio, availMem, MultiphaseSetKernelBlockVisitor kernelVisitor(kernel, nuL, nuG, availMem, needMem);
needMem);
grid->accept(kernelVisitor); grid->accept(kernelVisitor);
......
...@@ -283,8 +283,7 @@ void run(string configname) ...@@ -283,8 +283,7 @@ void run(string configname)
UBLOG(logINFO, "Available memory per process = " << availMem << " bytes"); UBLOG(logINFO, "Available memory per process = " << availMem << " bytes");
} }
MultiphaseSetKernelBlockVisitor kernelVisitor(kernel, nuL, nuG, densityRatio, availMem, MultiphaseSetKernelBlockVisitor kernelVisitor(kernel, nuL, nuG, availMem, needMem);
needMem);
grid->accept(kernelVisitor); grid->accept(kernelVisitor);
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
// } // }
//} //}
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
MultiphaseSetKernelBlockVisitor::MultiphaseSetKernelBlockVisitor(SPtr<LBMKernel> kernel, LBMReal nuL, LBMReal nuG, LBMReal densityRatio, double availMem, double needMem, MultiphaseSetKernelBlockVisitor::Action action /*= SetKernelBlockVisitor::New*/) : MultiphaseSetKernelBlockVisitor::MultiphaseSetKernelBlockVisitor(SPtr<LBMKernel> kernel, LBMReal nuL, LBMReal nuG, double availMem, double needMem, MultiphaseSetKernelBlockVisitor::Action action /*= SetKernelBlockVisitor::New*/) :
Block3DVisitor(0, Grid3DSystem::MAXLEVEL), kernel(kernel), nuL(nuL), nuG(nuG), densityRatio(densityRatio), action(action), dataSetFlag(true) Block3DVisitor(0, Grid3DSystem::MAXLEVEL), kernel(kernel), nuL(nuL), nuG(nuG), action(action), dataSetFlag(true)
{ {
if (needMem > availMem) if (needMem > availMem)
{ {
......
...@@ -46,7 +46,7 @@ public: ...@@ -46,7 +46,7 @@ public:
//SetKernelBlockVisitor(LBMKernel3DPtr kernel, LBMReal nue, double availMem, double needMem); //SetKernelBlockVisitor(LBMKernel3DPtr kernel, LBMReal nue, double availMem, double needMem);
MultiphaseSetKernelBlockVisitor(SPtr<LBMKernel> kernel, LBMReal nuL, LBMReal nuG, LBMReal densityRatio, double availMem, double needMem, MultiphaseSetKernelBlockVisitor(SPtr<LBMKernel> kernel, LBMReal nuL, LBMReal nuG, double availMem, double needMem,
MultiphaseSetKernelBlockVisitor::Action action = MultiphaseSetKernelBlockVisitor::NewKernel); MultiphaseSetKernelBlockVisitor::Action action = MultiphaseSetKernelBlockVisitor::NewKernel);
virtual ~MultiphaseSetKernelBlockVisitor() {} virtual ~MultiphaseSetKernelBlockVisitor() {}
...@@ -59,7 +59,6 @@ private: ...@@ -59,7 +59,6 @@ private:
SPtr<LBMKernel> kernel; SPtr<LBMKernel> kernel;
LBMReal nuL; LBMReal nuL;
LBMReal nuG; LBMReal nuG;
LBMReal densityRatio;
Action action; Action action;
bool dataSetFlag; bool dataSetFlag;
}; };
......
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