Uploaded image for project: 'GMAT'
  1. GMAT
  2. GMT-2528

Empty Brackets Behavior Confusing

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: R2014a, R2015a, R2016a, R2017a, R2018A
    • Fix Version/s: Someday
    • Component/s: Script Language
    • Labels:
      None

      Description

      GMAT's behavior parsing empty brackets is very confusing, and potentially object specific. I would expect the script below to result in no primary bodies and no Point mass bodies (which is not allowed, i am trying to write a validatin test). However, this script propagates because it apparently uses default of Earth for PrimaryBody.

      We need to document at minimum and make an attempt at consistency accross objects.

      Create Spacecraft aSat;

      Create ForceModel aForceModel;
      %aForceModel.CentralBody = Earth;
      aForceModel.PrimaryBodies = {}
      aForceModel.PointMasses = {};

      Create Propagator aProp;
      aProp.FM = aForceModel;

      BeginMissionSequence

      Propagate aProp(aSat,

      {aSat.ElapsedDays = .2}

      );

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              There are no subversion log entries for this issue yet.

                People

                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated: