Skip to content
Snippets Groups Projects
Commit 7e1c9e45 authored by schoen's avatar schoen
Browse files

no more warnings -> explicit cast double to real

parent 8d9135e7
No related branches found
No related tags found
1 merge request!47fixed gpu memory allocation redundancy
......@@ -121,21 +121,21 @@ void multipleLevel(const std::string& configPath)
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
real dx = 0;
real viscosityLB = 1.0e-03;
real viscosityLB = (real)1.0e-03;
uint maxLevel = 1;
if (setupDomain == 1) {
dx = 4;
dx = (real)4;
maxLevel = 5;
viscosityLB = 3.75e-06; // LB units
viscosityLB = (real)3.75e-06; // LB units
} else if (setupDomain == 2) {
dx = 1;
dx = (real)1;
maxLevel = 3;
viscosityLB = 1.5e-05; // LB units
viscosityLB = (real)1.5e-05; // LB units
} else if (setupDomain == 3) {
dx = 1.6;
dx = (real)1.6;
maxLevel = 4;
viscosityLB = 9.375e-06; // LB units
viscosityLB = (real)9.375e-06; // LB units
}
real x_min = 0.0;
......@@ -176,7 +176,7 @@ void multipleLevel(const std::string& configPath)
SPtr<Parameter> para = Parameter::make(configData, comm);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
const real velocityLB = 0.0844; // LB units
const real velocityLB = (real)0.0844; // LB units
//const real vx = velocityLB / (real)sqrt(2.0); // LB units
//const real vy = velocityLB / (real)sqrt(2.0); // LB units
......@@ -458,9 +458,9 @@ std::string chooseVariation()
}
if ((0 < variant) && (variant <= 6))
rotationOfCity = 0.0;
rotationOfCity = (real)0.0;
else if ((6 < variant) && (variant <= 12))
rotationOfCity = 63.295;
rotationOfCity = (real)63.295;
std::cout << "Variant selected. Simulation name is: " << simulationName << std::endl;
std::cout << "Rotation selected: " << rotationOfCity << std::endl;
......
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