Merge with latest master

This commit is contained in:
GPayne
2020-02-19 09:25:33 -07:00
parent 79a3b42d06
commit addfa65fa6
230 changed files with 1151 additions and 2270 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(