Coding style cleanup

This commit is contained in:
Alexander Bock
2020-02-14 19:37:06 +01:00
parent 166eee8b28
commit 5e29145395
119 changed files with 643 additions and 348 deletions

View File

@@ -29,9 +29,11 @@ namespace openspace::fls {
Model stringToModel(const std::string& s) {
if (s == "batsrus") {
return Model::Batsrus;
} else if (s == "enlil") {
}
else if (s == "enlil") {
return Model::Enlil;
} else if (s == "pfss") {
}
else if (s == "pfss") {
return Model::Pfss;
}
return Model::Invalid;

View File

@@ -236,7 +236,8 @@ void addExtraQuantities(ccmc::Kameleon* kameleon,
val = interpolator->interpolate("p", p.x, p.y, p.z);
val *= ToKelvin;
val /= interpolator->interpolate("rho", p.x, p.y, p.z);
} else {
}
else {
val = interpolator->interpolate(extraScalarVars[i], p.x, p.y, p.z);
// When measuring density in ENLIL CCMC multiply by the radius^2
@@ -265,7 +266,8 @@ void addExtraQuantities(ccmc::Kameleon* kameleon,
// the magnetic field vector!
val = glm::dot(glm::vec3(x,y,z), normMagnetic);
} else {
}
else {
val = std::sqrt(x*x + y*y + z*z);
}
state.appendToExtra(i + nXtraScalars, val);
@@ -315,7 +317,8 @@ void prepareStateAndKameleonForExtras(ccmc::Kameleon* kameleon,
));
extraScalarVars.erase(extraScalarVars.begin() + i);
--i;
} else {
}
else {
extraQuantityNames.push_back(str);
}
}
@@ -359,11 +362,13 @@ void prepareStateAndKameleonForExtras(ccmc::Kameleon* kameleon,
extraMagVars.begin() + i + 3
);
i -= 3;
} else {
}
else {
extraQuantityNames.push_back(std::move(name));
}
}
} else {
}
else {
// WRONG NUMBER OF MAGNITUDE VARIABLES.. REMOVE ALL!
extraMagVars.clear();
LWARNING(fmt::format(