Skip to content

Commit

Permalink
fix: parser <-> Physics 10.0 compatibility (#446)
Browse files Browse the repository at this point in the history
  • Loading branch information
vishwa2710 authored Oct 8, 2024
1 parent 7e3c4c9 commit 3cba385
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions validation/OpenSpaceToolkit/Astrodynamics/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ State Parser::CreateInitialState(const Dictionary& aDictionary, const SatelliteS

Environment Parser::CreateEnvironment(const Dictionary& aDictionary)
{
Array<Shared<Object>> celestials = Array<Shared<Object>>::Empty();
Array<Shared<const Object>> celestials = Array<Shared<const Object>>::Empty();

EarthGravitationalModel::Type earthGravitationalModelType = EarthGravitationalModel::Type::Undefined;
Integer earthGravitationalModelDegree = 0;
Expand All @@ -138,11 +138,11 @@ Environment Parser::CreateEnvironment(const Dictionary& aDictionary)
}
else if (force["data"]["body"].accessString() == "SUN")
{
celestials.add(std::make_shared<Sun>(Sun::Default()));
celestials.add(std::make_shared<const Sun>(Sun::Default()));
}
else if (force["data"]["body"].accessString() == "MOON")
{
celestials.add(std::make_shared<Moon>(Moon::Default()));
celestials.add(std::make_shared<const Moon>(Moon::Default()));
}
else
{
Expand Down Expand Up @@ -177,7 +177,7 @@ Environment Parser::CreateEnvironment(const Dictionary& aDictionary)
}
}

celestials.add(std::make_shared<Earth>(Earth::FromModels(
celestials.add(std::make_shared<const Earth>(Earth::FromModels(
std::make_shared<EarthGravitationalModel>(
earthGravitationalModelType,
Directory::Undefined(),
Expand Down

0 comments on commit 3cba385

Please sign in to comment.