Commit Graph

503 Commits

Author SHA1 Message Date
Alex Lin
5903209e00 Create a trick-config script #298
Need to add trick-config to list of executables to remove during uninstall.
2016-09-07 09:40:31 -05:00
Alex Lin
2918662767 Create a trick-config script #298
Created trick-config that can print the version, installation prefix,
and compile and link flags that Trick defines.
2016-09-07 09:33:03 -05:00
Alex Lin
0eab3d2d4e DP file in SIM_ball_L1 does not work #302
So the previous commit works with one plot widget but not the other.  Now it
works for both.
2016-09-07 09:31:52 -05:00
Alex Lin
53f0e33049 DP file in SIM_ball_L1 does not work #302
Everything was old and now wrong in this file.  Wrong start/stop times,
wrong X and Y axis min/max values, wrong units for time, and wrong
variable names.
2016-09-07 07:20:24 -05:00
Alex Lin
3be6715eba Merge tag '17.0.3'
Adding check for NULL char pointer before converting to string.
2016-09-06 13:58:54 -05:00
Alex Lin
c4a32600cc Trick View: Can't set variables with -- units #301
Test before trying to convert NULL char * to string.
2016-09-06 13:53:37 -05:00
Alex Lin
eaa6f796d9 Merge tag '17.0.3'
Converting units incoming from the variable server.
2016-09-06 13:22:09 -05:00
Alex Lin
b32015a1ad Trick View: Can't set variables with -- units #301
Called map_trick_units_to_udunits to convert incoming units to udunits.
2016-09-06 13:15:36 -05:00
John Penn
753d821329 Fix compilers warnings. Ref #300 2016-09-02 17:01:07 -05:00
Alex Lin
919a8e2068 Variable using an enumeration as array index causes infinite loop #299
Once we determine the type of a variable we should stop processing the
AST tree at that point. We do this for record types but not for the
built in types.  Changed the return value of the process builtin
function to false so we stop processing.
2016-09-01 16:06:33 -05:00
Alex Lin
066554b2f7 Merge pull request #297 from ddj116/get_variable
MonteCarlo add_variable duplicate protection and get_variable functionality
2016-08-30 11:00:16 -05:00
Alex Lin
fa4664c4ea Move the loop that waits for scheduled threads to finish out of advance_sim_time #292
2 problems found.  Syncing scheduled threads was not happening at all because the job
was not being rescheduled.  Did not want to deal with changing job call times so I
called the new scheuduled_thread_sync routine from advance_sim_time.  That's where
it started, it'll be fine.

Also found that I was resetting job complete flags too aggressively.  The check to
test if the thread is ready to run was missing.  Added that check back in.
2016-08-30 10:56:18 -05:00
Dan D. Jordan
fdd442ba68 Added duplicate name protection on add_variable and get_variable
mechanism for getting MonteVar * derived types so that those dispersion
settings can be changed once they go out of scope.
2016-08-30 09:48:10 -05:00
Alex Lin
7d82690a0b tc_init is not thread-safe #289
Made the global sockaddr variables local and cleared them with a memset.
2016-08-29 13:11:04 -05:00
Alex Lin
e3759ac594 Move the loop that waits for scheduled threads to finish out of advance_sim_time #292
When we moved the thread sync code, a loop to clear all job complete flags was left out
causing unit test errors.
2016-08-29 08:42:53 -05:00
Alex Lin
d388b26e30 Does SIM_test_sched need a software frame? #296 2016-08-26 14:50:34 -05:00
Alex Lin
aeeaa7b3bc Move the loop that waits for scheduled threads to finish out of advance_sim_time #292
Forgot to introduce the new function.
2016-08-26 09:10:44 -05:00
Alex Lin
f5578c2e79 Inconsistency between including headers and SimObjects #294
Added ${TRICK_HOME}/share to the SYSTEM_SFLAGS so you can use a
consistent "trick/sim_objects/default_trick_sys.sm" path if you
want.
2016-08-26 09:08:41 -05:00
Alex Lin
7c57c1d02d Move the loop that waits for scheduled threads to finish out of advance_sim_time #292
Created a new executive job that waits for the scheduled threads to finish.  We
run this right before advancing time.
2016-08-26 09:07:46 -05:00
Alex Lin
858602fe01 New STL framework doesn't support const #293
So using consts as arguments to STLs causes errors in our io code and SWIG.
Added a check for const template arguments and going to ignore them for
both ICG and what we input to SWIG.
2016-08-25 08:42:43 -05:00
Alex Lin
0072e7d6f0 Unintended performance issue with integ_loop at end of scheduled job classes #243
Created a new executive job that waits for threads to finish and readies them
for their next frame of execution.  Created a new job class system_thread_sync
after the top of frame jobs and before the input processor is run to sync the
threads.  Along the way cleaned up instrumentation jobs on the threads to fix #290.
2016-08-24 10:55:27 -05:00
Alex Lin
f9f1847385 Changing trick_ver.txt to 17.1.dev 2016-08-23 17:02:29 -05:00
Alex Lin
efe197ca6d Merge tag '17.0.2'
Removes hard coded prefix
2016-08-23 16:54:58 -05:00
Alex Lin
a946e16bdd configure script doesn't check for clang headers #287
Added a configure check for -lz
2016-08-23 09:46:50 -05:00
Alex Lin
90552a5053 Move clean rules to makefile in sim directory. #284
Added the clean rules back to Makefile.sim with a addition of
defining a conditional variable.  If this variable is set than
the set of rules in the local makefile will not be defined.  This
should allow the sim to be cleaned whether TRICK_HOME exists or not.
2016-08-23 09:00:03 -05:00
Alex Lin
d0349772d5 configure script doesn't check for clang headers #287
Added a configure check for clang/Basic/LLVM.h.
Also removed -lz from the link libraries.  I don't think we need it.
2016-08-23 08:58:16 -05:00
Alex Lin
cddc8a585d SIM_satellite graphics might be missing -ldl #288
Added -ldl to link flags.
2016-08-19 10:06:38 -05:00
Alex Lin
82049ead95 Add a printout when ICG parses header file with no Trick header comment #281
Added the printout.
2016-08-19 10:04:42 -05:00
Alex Lin
c32b239472 Get rid of the real time clock sim objects #286
Removed the objects.
2016-08-19 09:59:07 -05:00
Alex Lin
60473dde03 Move clean rules to makefile in sim directory. #284
Moved the clean rules to the makefile in the sim directory.  They will
always work whether the rest of Trick is set up or not.
2016-08-19 09:57:13 -05:00
Alex Lin
dfde52864f the install command on the Mac does not take the -D argument #283
So I get punished by leaving in a debug statement to hardcode PREFIX for testing. Grrr.
2016-08-18 09:54:35 -05:00
Alex Lin
302f1fe1af the install command on the Mac does not take the -D argument #283
So I get punished by leaving in a debug statement to hardcode PREFIX for testing. Grrr.
2016-08-17 17:14:01 -05:00
Alex Lin
e72036f3be the install command on the Mac does not take the -D argument #283
Instead of having the install command try and create the destination
directory we use a second command to mkdir the directory first.
2016-08-17 17:05:58 -05:00
Alex Lin
34bc467bf9 the install command on the Mac does not take the -D argument #283
Instead of having the install command try and create the destination
directory we use a second command to mkdir the directory first.
2016-08-17 17:03:36 -05:00
Alex Lin
8c8c7130b4 Change release number from 16 to 17. #280
Changed the version in trick_ver.txt
2016-08-15 13:27:23 -05:00
Alex Lin
784d6c86a4 Remove some outdated documentation #279
Removed some old files.
2016-08-10 13:55:16 -05:00
Alex Lin
db547caa31 Updated link to tutorial. 2016-08-04 14:56:45 -05:00
Alex Lin
bb93300c5c Trick View: update to handle udunits #262
Updated unit symbols to match those in udunits.
2016-08-04 08:54:07 -05:00
Alex Lin
14e112d1a1 Data products not plotting the last recorded data point #162
Needed to save last point for comparison streams as well.
2016-08-04 08:36:27 -05:00
Alex Lin
3e442f4241 Data products not plotting the last recorded data point #162
Needed to save the last point for gxplot as well.
2016-08-03 16:57:14 -05:00
Alex Lin
3d604ff770 Data products not plotting the last recorded data point #162
When reading a data stream to plot the end of stream flag is being set
as the last point is read.  This was causing several layers of calls
not to save the last point.  I went ahead and saved the result of the
get_next_point calls whether the end of stream flag is set or not and now
we don't lose the last point.
2016-08-03 16:32:46 -05:00
Alex Lin
a32e1d7557 stack smash detected in add_recording_vars_for_frame #211
The character string used in the frame log needs to be stored as
a character string.  We were using a sprintf with a fixed size buffer.
The easiest change was to use asprintf which allocates a character
string big enough to hold the contents of the print.  We need to
save this char string as a char string so it works out.
2016-08-03 15:42:04 -05:00
Alex Lin
3a261929e8 Monte carlo AttributeError's caused by bad configuration still returns zero in master sim #269
If there were bad runs, the master will now exit with a non-zero status.
2016-08-03 15:01:03 -05:00
Alex Lin
b102356330 Remove doxygen documentation now housed on wiki #189
Removed the images that are now housed on the wiki.
2016-08-03 14:29:50 -05:00
Alex Lin
ce1347de74 Remove sim_services/STL #275
Removed the sim object, directory and the entry in the Makefile to compile it.
2016-08-03 14:12:16 -05:00
Alex Lin
bff1967d4d Add a flag to turn off java version check during configure #276
Added an --enable-java=(yes|no) and --disable-java options to the
configure script.  If java is disabled then the java GUIs are
not compiled.
2016-08-03 09:45:22 -05:00
Alex Lin
b26fcf2f3b Swap order of libraries during ICG linking. #277
Order swapped.
2016-08-03 09:03:41 -05:00
Alex Lin
89fda63293 Remove doxygen documentation now housed on wiki #189
moved all of the design documentation to the wiki
2016-08-02 17:50:49 -05:00
Alex Lin
6848e31ddc Remove doxygen documentation now housed on wiki #189
moved the small amount of text we had in our "requirements" document
to the wiki.
2016-08-02 16:55:36 -05:00
Alex Lin
832679b7ee Remove doxygen documentation now housed on wiki #189
Verified all documentation deleted with this issue resides on
our wiki.  Nothing is lost.  Modified the doxygen makefile and
main page to point to the wiki where the user's guide used to be.

TODO: Need to move the requirements and design doxygen files.
2016-08-02 15:41:18 -05:00