Skip to content

Commit

Permalink
Modifications for extended time compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicDirkx committed May 30, 2024
1 parent d974745 commit 64bfe91
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/tudat/astro/basic_astro/dateTime.h
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ DateTime addSecondsToDateTime( const DateTime& dateTime, const TimeType timeToAd
template< typename TimeType >
DateTime addDaysToDateTime( const DateTime& dateTime, const TimeType daysToAdd )
{
return getCalendarDateFromTime< Time >( dateTime.epoch< Time >( ) + daysToAdd * mathematical_constants::getFloatingInteger< TimeType >( 86400 ) );
return getCalendarDateFromTime< Time >( dateTime.epoch< Time >( ) + daysToAdd * mathematical_constants::getFloatingInteger< long double >( 86400 ) );
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ std::shared_ptr< observation_models::ObservationCollection< StateScalarType, Tim
while( currentTime < finalTime )
{
observationTimes.push_back( currentTime );
currentTime += dataPointInterval;
currentTime += static_cast< double >( dataPointInterval );
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ createTrackingTxtFileObservationCollection(
std::map<ObservableType, std::map<LinkEnds, std::vector<Eigen::Matrix<ObservationScalarType, Eigen::Dynamic, 1> >>> observablesMap;

// Get vectors of times, observations, and ancillary settings for the current observable type and link ends
std::vector<TimeType> allObservationTimes = processedTrackingTxtFileContents->getObservationTimes();
std::vector<TimeType> allObservationTimes = utilities::staticCastVector< TimeType, double >( processedTrackingTxtFileContents->getObservationTimes() );
std::vector<LinkEnds> linkEndsVector = processedTrackingTxtFileContents->getLinkEndsVector();
std::set<LinkEnds> linkEndsSet = processedTrackingTxtFileContents->getLinkEndsSet();

Expand Down

0 comments on commit 64bfe91

Please sign in to comment.