Discussion:
unknown
1970-01-01 00:00:00 UTC
Permalink
Where do you see the syntax check you mentioned happening? At build
time? At startup? At initialization? I'm really struggling to put
together a coherent design until I have some of these answers!

- Darrel
I don't think it's necessary right now and if we implement it the
functionality would be different than GMAT function path. Similar to GMAT
Function path but no syntax check and no handling of what function would be
used if there were duplicates function names since Matlab already does this.
We'd also have to make sure to only send one addpath command to Matlab per
Matlab Function path for Matlab path cleanliness. It should also be in
addition to adding a single Matlab function not replacing that
functionality.
To me this is a feature request not directly related to GMAT functions.
Doesn't seem too complicated to implement though. I do see the usefulness of
it though.
After talking with Steve and Conrad, I just want to make it clear that the
proposed GMAT Function path design would require users to keep their GMAT
and Matlab functions separate.
Hmmm maybe we should still have the ability to add one GMAT function at a
time as well.
Edwin Dove
Aerospace Engineer
Flight Dynamics Analysis Branch (595)
NASA Goddard Space Flight Center
Phone: 301 286 6138
-----Original Message-----
Sent: Tuesday, November 06, 2007 4:33 PM
To: Edwin Dove
Subject: Re: [Gmat-developers] Multiple GMAT function paths
Is there any reason for not having multiple MATLAB function paths as
well? I might want to separate the functions I write based on
customers, for example.
I'm in the process of changing the GMAT functions document. I talked
with Steve Hughes about how this can be done and we came to a consensus
that we should have multiple GMAT function paths and the multiple paths
should be set from the startup file and in the script, with the setting
in the script being optional. See the proposed syntax for the startup
file and script.
----
Startup file
#-----------------------------------------------------------
MATLAB_FUNCTION_PATH = ./matlab/
GmatFunctionPath.Add = ./GmatFunctions/
GmatFunctionPath.Add = C:/GMAT/GmatFunctions/
GmatFunctionPath.Add = C:/Temp/GmatFunctions/
#-----------------------------------------------------------
----
Script
----
GmatFunctionPath.Add = ./GmatFunctions/GMATrocks/
GmatFunctionPath.Remove = C:/GMAT/GmatFunctions/
GmatFunctionPath.Remove = C:/Temp/GmatFunctions/
- The latest .Add will be the first path checked
- Only .Add can be used in the startup file
- Later we might want to include ways to change the ordering of the
paths. If there are scripts of the same name in the paths, there needs
to be a ordering of which one is used. For now the user can just use
another .Add command to add the latest path for GMAT to look into first.
Does anyone see any problem implementing this?
Edwin Dove
Aerospace Engineer
Flight Dynamics Analysis Branch (595)
NASA Goddard Space Flight Center
Phone: 301 286 6138
------------------------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
------------------------------------------------------------------------
_______________________________________________
Gmat-developers mailing list
https://lists.sourceforge.net/lists/listinfo/gmat-developers
--
-----------------------------------------------------------------------------------------------------
GMAT Architectural Design, Linux Development and Test Team

Darrel J. Conway, Ph.D. Thinking Systems, Inc.
Senior Scientist and CEO 6441 N Camino Libby
Phone: (623) 298-4530 Tucson, AZ 85718
FAX: (520) 232-2533 www.thinksysinc.com
djc_at_thinksysinc_dot_com
-----------------------------------------------------------------------------------------------------
Loading...