Commit Graph

174 Commits

Author SHA1 Message Date
Alex Lin
b6854521f0 Fix makefile rule for swig objects. #163
The rule should use a "|" character. We're only interested in the directory
existing, not the date on the directory.
2017-01-12 17:44:01 -06:00
Alex Lin
89939fbdc9 Monte Carlo dry runs produce monte_input files #318
The input file that is created while running monte carlo runs is done
in 3 different places.  There was no easy way to collect all of those
lines in one place, so I duplicated the lines in the dryrun function.
2017-01-12 16:51:32 -06:00
Alex Lin
cb58e0c770 Detect when TRICK_ICG is used in header files and compensate for it. #375
So the previous commit broke on the mac.  There were missing changes in
TranslationUnitVisitor.cpp.  Also there are fixes for clang 3.9 that
were not included yet.
2017-01-12 14:17:43 -06:00
Alex Lin
bc9102c208 Backport better clang support from 17 to 15 for ICG #376
Backported the changes in 17 that supports clang versions >= 3.8.
2017-01-12 09:44:13 -06:00
Alex Lin
dc2effe6b7 Improve error handling when duplicate variable added to a DRHDF5 #353
Added a printout that shows the logging group and variable name that
had a problem when trying to add to the HDF5 recording.
2017-01-12 08:45:28 -06:00
Alex Lin
cd16d2bb93 When doing input file verification the exit code is always 1. #335
After doing verification of the input file we return the exit code
of the python processor.
2017-01-11 17:41:53 -06:00
Alex Lin
aa58306cc0 Problems with io_src code std::string #352
Added a test for types matching std::__cxx11::basic_string in ICG.  If it
matches we use the type back to std::string.
2017-01-11 17:37:57 -06:00
Derek Bankieris
de1d970909 Automatically determine TRICK_HOME in makefile
Refs #344
2016-11-04 14:52:03 -05:00
Derek Bankieris
8fd850a765 Removed unused file Simcom.java #343 2016-11-04 14:52:02 -05:00
Alex Lin
1c7482b474 Create a distclean target in the sim makefile #342
added distclean target to makefile.
2016-11-03 15:20:48 -05:00
Derek Bankieris
ba4df3387f Use 1/0 instead of True/False in TVBoolean.java
The use of True/False prevents the plotting of booleans, as those values
cannot be parsed as doubles. While it's conceptually more pleasing to
use the actual Python keywords for booleans, numbers will work just as
well and allow plotting. #337
2016-10-26 13:56:51 -05:00
Alex Lin
ca16b18e70 Library dependencies not found in Trick 15 #325
OK, getting all strings that don't end in .so or .a is not good.  Lots of
problems.  I made a list of file suffixes that include c and c++ source
files now.
2016-10-06 15:30:14 -05:00
Alex Lin
fb6617b788 Library dependencies not found in Trick 15 #325
We needed to check for empty strings now as library dependencies.
2016-10-06 14:49:28 -05:00
Alex Lin
3260e54cd7 Library dependencies not found in Trick 15 #325
There are 2 bugs.  The first in ICG.pm did not look for dependencies
that included "src" in the name correctly.  The code was inserting the
"src" in the incorrect place.  The second bug is in mis_dep.pm.  That
bug did not include non ".o" files from the beginning.
2016-10-06 10:42:46 -05:00
Alex Lin
e9a3a54fad c preprocessor statements don't work in Trick header blocks in header files #317
Copied the block of code that runs a comment through the preprocessor from MIS
to ICG.
2016-09-26 08:33:26 -05:00
Derek Bankieris
bbec191d54 Added TRICK_PYTHON_PATH environment variable #313 2016-09-16 09:29:23 -05:00
Alex Lin
9604e019bf ICG not setting default checkpointing io correctly. #308
If a checkpoint_io field is found we were or'ing this in to bits already
set by default.  Clear the bits first.
2016-09-14 09:33:08 -05:00
Alex Lin
6dc3d85cd3 ICG not setting default checkpointing io correctly. #308
Changed the default io value from 3 which left out checkpointing to 15 which does
include checkpointing.
2016-09-13 16:33:24 -05:00
Alex Lin
122033701b unintended performance issue with integ_loop at end of scheduled job classes #243
Previous commit did not update the job complete flags correctly.  Brought the fix
back from 17 to 15.
2016-08-30 13:08:01 -05:00
Alex Lin
0b91b1b163 tc_init is not thread-safe #289
Made the global sockaddr variables local and cleared them with a memset.
2016-08-29 13:10:10 -05:00
Alex Lin
60b09907a3 Move the loop that waits for scheduled threads to finish out of advance_sim_time #292
Same error as in 17. 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 10:11:05 -05:00
Derek Bankieris
9e28d4094c #295 Fix %imports with "include" in the path 2016-08-26 13:02:11 -05:00
Alex Lin
56376215d5 SIM_satellite graphics might be missing -ldl #288
Added -ldl to link flags.
2016-08-24 14:45:07 -05:00
Alex Lin
2a113d1925 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 11:18:42 -05:00
Alex Lin
16af60313f Add a printout when ICG parses header file with no Trick header comment #281
Added the printout.
2016-08-19 10:21:43 -05:00
Alex Lin
79288d2b5b Data products not plotting the last recorded data point #162
Needed to save last point for comparison streams as well.
2016-08-04 08:37:27 -05:00
Alex Lin
11f4b5282e Data products not plotting the last recorded data point #162
porting fix from 16 back to 15.
2016-08-03 17:08:15 -05:00
Alex Lin
4de4bf0692 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:43 -05:00
Alex Lin
bd37006244 CheckPointAgent.cpp has a noted memory leak (confirmed) and proposed optimization #232
Changed the vector to use instances of the VarNameElement instances.  Memory leak is gone.
2016-07-28 13:11:59 -05:00
Alex Lin
86b5158e84 Monte carlo AttributeError's caused by bad configuration still returns zero in master sim #269
The return code from parsing the monte carlo input was always set to zero and not checked.
Retured the return code from parsing the input. Added an exit if the input was not parsed
correctly.
2016-07-26 13:34:59 -05:00
Alex Lin
186e623a25 Need preCP hook for S_overrides.mk to support actions early in build, without Makefile_sim consequences
Undoing previous commit.

refs #136
2016-07-07 15:14:39 -05:00
Alex Lin
2784232457 Some Trick jobs are labeled "simobject.classPtr->Foo()" trick_dp barfs on the "->" string
Backporting fix that does not split string on '-' character if it is part of "->" string.

refs #51
2016-06-30 15:40:10 -05:00
Alex Lin
c4ed577d87 DRE Issues on RedHat 7.2
Changed the startup script for dre to be the same as trick_dp.

refs #186
2016-06-30 10:53:48 -05:00
Alex Lin
eb9ed260a4 Need preCP hook for S_overrides.mk to support actions early in build, without Makefile_sim consequences
Added new rule preMakefile_simHook for users to use to run actions before
CP is run.

refs #136
2016-06-27 10:56:01 -05:00
Alex Lin
bb3a788c5f ICG still processing comments in files it is supposed to skip, one more time
Tested the name of the header file right when a class is starting processing.  If
the class is in a file that is in an ICG_EXCLUDE directory, we quit processing
right there.

refs #251
2016-06-15 17:41:39 -05:00
Alex Lin
4a54ff169b Need to include SimTime.hh for ICG and swig processing.
Added the sim time header files to files_to_ICG.hh and sim_services.i so it will be processed.

refs #247
2016-06-15 16:58:57 -05:00
Alex Lin
9d840f334f Symbolic links are my nemesis
Found 2 more places where we should be using the absolute path.

refs #240
2016-05-24 13:30:56 -05:00
Alex Lin
15f677ec48 ICG still processing files it shouldn't
In comment handling we were not using the absolute path where we should
have been.  This was tagging comments coming from the wrong file.

refs #238
2016-05-18 17:04:35 -05:00
Alex Lin
de6c28d36d Use udunits package for units conversions
To support backwards compatibility with measurement units I added the udunit symbol
names that we don't use into 13/15.  This includes "rad" instead of "r" and
"degree" instead of "d".

refs #231
2016-05-11 15:53:50 -05:00
Alex Lin
34e135ed61 configure needs to properly enforce java version dependency
Changed the minimum java version from 1.6 to 1.8 in the configure script.

refs #234
2016-05-11 10:12:50 -05:00
Alex Lin
9b68fa9d9e Gaussian distribution set_sigma(0) produces strange monte carlo output directory, suspected gsl only
Found that when we hex pack numbers out of the random number generator we should zero pad
these numbers to 16 digits.  Otherwise if the resulting number is an odd number of digits we
get an error.  We already do this for file data.

refs #236
2016-05-11 10:07:02 -05:00
Alex Lin
5b27723501 Can't build trick 15.2.0 with --gsl=/usr
The _HAVE_GSL flag was not being passed into all compilation lines when
GSL was present.  Added them to to CFLAGS and CXXFLAGS so it is.

refs #235
2016-05-11 09:20:08 -05:00
Alex Lin
3f7676a740 Invoking trick-ICG without any arguments results in a Segmentation fault
ICG dies on a strdup if the the input file is empty.  Added a check for
an empty input file name.  We exit with an error message if there is
no input file given.

refs #229
2016-04-27 11:34:47 -05:00
Alex Lin
c4a5e8b310 Debugger command on mac is now lldb not gdb
Added a test to set the debugger command to gdb or lldb depending
on availability.  Created a new script for lldb to run.  Modified
the script for gdb to backtrace all threads.

refs #227
2016-04-20 14:23:16 -05:00
Alex Lin
c10d2897f9 Release 15.2.0
Backporting some changes in ICG that better supports clang/llvm installations in
Linux.

refs #228
2016-04-19 17:05:42 -05:00
Alex Lin
489737d34c Release 15.2.0
It's been a while since we tested 15.x on the mac.  The makefile
for ICG needed updating to what is essentially in 16.  Added the
one change required for clang 3.8.  Updated the version to 15.2.0
in trick_ver.txt.  Finally removed the check for libclang.a.  The
more recent clang releases are delivering libclang.dylib and I'm
too lazy to make big changes in the configure script to search
for it.  The header file check should be enough.

refs #228
2016-04-19 16:08:33 -05:00
Alex Lin
0bd8c2f09e trick comm byteswap functions can't handle sizes above 65536 bytes
Backporting fix that adds pthread specific swap buffer for both
tc_read and tc_write.

refs #187
2016-04-19 14:36:56 -05:00
Alex Lin
be5835f92f Variable server restart issues
Backporting addition to suspend accepting new variable server connections and
all communications to variable server clients for the duration of reloading
a checkpoint

refs #168
2016-04-19 14:24:25 -05:00
Alex Lin
f1a26615f1 Data products will not compile if TRICK_FORCE_32BIT is set.
The makefiles need to compile the units directory and they were
not at this time.  The units need to be compiled in the native
bit size regardless of whether we are forcing 32 bit or not.

refs #225
2016-04-18 09:59:52 -05:00
Alex Lin
56290d0306 Remove catches for non-Trick exceptions
Back-ported changes to not catch unknown exceptions and print a
stack trace to where the exception occurred.

refs #220
2016-04-15 16:10:53 -05:00