• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nasa / cml / 29777181804

20 Jul 2026 08:41PM UTC coverage: 85.517% (+0.2%) from 85.284%
29777181804

Pull #51

github

web-flow
Merge 9177babb3 into 783b48963
Pull Request #51: Fix all compiler warnings and treat them as errors

7833 of 8923 branches covered (87.78%)

Branch coverage included in aggregate %.

310 of 539 new or added lines in 196 files covered. (57.51%)

6 existing lines in 6 files now uncovered.

17930 of 21203 relevant lines covered (84.56%)

110707.49 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/models/dynamics/integration/vector3_integrable_object/include/vector3_integrable_object.hh
1
/************************** TRICK HEADER***************************************
2
PURPOSE:
3
(Define an generic IntegrableObject class for integrating 3-vectors)
4

5
REFERENCE:
6
(((JEOD Thermal-rider model thermal_integrable_object)))
7

8
Library dependencies:
9
((../src/vector3_integrable_object.cc))
10

11
PROGRAMMERS:
12
(((Gary Turner) (OSR) (October, 2015) (initial version)))
13
*******************************************************************************/
14

15
#ifndef CML_VECTOR3_INTEGRABLE_OBJECT_HH
16
#define CML_VECTOR3_INTEGRABLE_OBJECT_HH
17

18
#include "er7_utils/integration/core/include/integrable_object.hh"
19
#include "er7_utils/integration/core/include/integrator_result.hh"
20
#include "jeod/models/utils/integration/include/restartable_state_integrator.hh"
21
#include "jeod/models/dynamics/dyn_body/include/dyn_body.hh"
22
#include "cml/models/utilities/subscriptions/include/subscriptions.hh"
23

24
#include "restartable_vector3_1st_order_integrator.hh"
25

26

27
class Vector3IntegrableObject : public SubscriptionBase,
28
                                public er7_utils::IntegrableObject
29
{
30
  public:
31
    double variable[3]; /* (--) Arbitrary vector, but typically pos or vel. */
32
    double deriv[3];    /* (--) values of the derivatives (optional). */
33

34
  protected:
35
    const double * deriv_ptr; /* (--) pointer to the derivative (optional) */
36
    jeod::DynBody * dyn_body; /* (--)
37
          ptr to the dyn-body that will integrate this variable. */
38

39
  public:
40
    Vector3IntegrableObject();
41
    explicit Vector3IntegrableObject(jeod::DynBody & body_in);
42
    Vector3IntegrableObject(jeod::DynBody & body_in,
43
                            const double * deriv_ptr_in);
44

45
    ~Vector3IntegrableObject() override;
46

47
    void initialize() override;
48
  protected:
49
    void zero_arrays();
50
    void activate() override;
51
    void deactivate() override;
52
  public:
53

54
    // Required by IntegrableObject
55
    void create_integrators (
56
      const er7_utils::IntegratorConstructor & generator,
57
      er7_utils::IntegrationControls & controls,
58
      const er7_utils::TimeInterface & time_if) override;
59

60
    // Destroy the integrators.
NEW
61
    void destroy_integrators () override{integrator.destroy_integrator();}
×
62

63
    // Reset the integrators.
NEW
64
    void reset_integrators () override {integrator.reset_integrator();}
×
65

66
    // Propagate state.
67
    er7_utils::IntegratorResult integrate ( double dyn_dt,
68
                                                    unsigned int target_stage) override;
69

70

71
  private:
72

73
    // Member data
74
#ifndef SWIG
75
    RestartableVector3FirstOrderODEIntegrator integrator; //!< trick_units(--)
76
#endif
77

78
    // Assignment and copy constructors are private and unimplemented
79
    Vector3IntegrableObject& operator = (const Vector3IntegrableObject& rhs);
80
    Vector3IntegrableObject(const Vector3IntegrableObject& rhs);
81
};
82
#endif
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc