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

Object Write does not work with #Include

    Details

      Description

      Using the Write command with an #Include call results in an empty file being written. See attached scripts.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              tgrubb Thomas Grubb added a comment -

              This issue needs to be investigated by Linda. This is a include file problem.

              The Write command calls the Spacecraft::GetGeneratingString. That method correctly creates the generatingString. However, at the end of the method, it does not return generatingString, it returns SpaceObject::GetGeneratingString. This method deliberately CLEARS the generatingString if not created from the main script:
              if (!isCreatedFromMainScript)

              { generatingString = ""; #ifdef DEBUG_GENERATING_STRING MessageInterface::ShowMessage ("GmatBase::GetGeneratingString() just returning blank, it is not " "created from the main script\n"); #endif return generatingString; }
              Show
              tgrubb Thomas Grubb added a comment - This issue needs to be investigated by Linda. This is a include file problem. The Write command calls the Spacecraft::GetGeneratingString. That method correctly creates the generatingString. However, at the end of the method, it does not return generatingString, it returns SpaceObject::GetGeneratingString. This method deliberately CLEARS the generatingString if not created from the main script: if (!isCreatedFromMainScript) { generatingString = ""; #ifdef DEBUG_GENERATING_STRING MessageInterface::ShowMessage ("GmatBase::GetGeneratingString() just returning blank, it is not " "created from the main script\n"); #endif return generatingString; }
              Hide
              dcooley Steve Cooley added a comment -

              Linda, SPH suggested you may want to fix GMT-5757 as well while you are fixing GMT-5756

              Show
              dcooley Steve Cooley added a comment - Linda, SPH suggested you may want to fix GMT-5757 as well while you are fixing GMT-5756
              Hide
              gmatloj Linda Jun added a comment -

              Fix should be in 2016-08-10 build.

              Show
              gmatloj Linda Jun added a comment - Fix should be in 2016-08-10 build.
              Hide
              sslojkowski Steven Slojkowski added a comment -

              Verified fixed in 8/10/2016 build.

              Show
              sslojkowski Steven Slojkowski added a comment - Verified fixed in 8/10/2016 build.

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 7 hours, 30 minutes
                    7h 30m