203 Commits

Author SHA1 Message Date
Derek Bankieris
0b6f528734 Strip whitespace from #includes in convert_swig
Fixes #722
2019-01-30 09:18:16 -06:00
Alex Lin
d7cb67363b Some of Trick's unit conversions have too many significant digits #557
Input file has too many digits too.  This mimics change made in 17.
2018-02-09 13:28:15 -06:00
Alex Lin
112b745357 Some of Trick's unit conversions have too many significant digits #557
Needed to fix unit conversion unit test in 15.
2018-02-09 13:15:49 -06:00
Alex Lin
7691c9d143 Some of Trick's unit conversions have too many significant digits #557
Our constants.h file has the same problem, some units have too many
significant digits.  Truncated some of the values.
2018-02-02 15:09:47 -06:00
Alex Lin
61c64b3078 Some of Trick's unit conversions have too many significant digits #557
Changed the conversion factors for lb, slug, and oz (force) to match
the accepted values.
2018-02-02 14:04:12 -06:00
Derek Bankieris
5093849b87 Prefer simply-expanded variables in makefiles
Refs #538
2018-01-18 09:11:06 -06:00
Alex Lin
8c3db7007d Backport capability to exclude individual files to 15 branch #527
Excluded files in covert swig were still being written in .i files.
2017-12-13 11:30:09 -06:00
John M. Penn
11a382157b Backport 476 to Trick 15. Ref #528 2017-12-11 18:19:11 -06:00
Alex Lin
0a01186ce3 Backport capability to exclude individual files to 15 branch #527
Copied the code from Trick 17 that excludes individual files as well as directories
2017-12-11 14:09:28 -06:00
Derek Bankieris
3a0c168c18 Revert "15: Export TRICK_EXCLUDE from Makefile.common"
This reverts commit 7079d30dfe837f97cb6673314fef2971f6d973e7.
This change broke some code that previously compiled without error. 15's
use of the various mechanisms for excluding ICG and SWIG is a mess. I'm
not fixing it. Upgrade to 17 if you want something that makes sense.

Refs #513
2017-11-16 10:37:43 -06:00
Derek Bankieris
7079d30dfe 15: Export TRICK_EXCLUDE from Makefile.common
Fixes #513
2017-11-09 12:16:45 -06:00
Alex Lin
2bb7f87aa8 Frame logging for child threads not working. #484
Prepended "trick_" to the frame scheduled time variable name.
2017-10-06 10:18:19 -05:00
Alex Lin
39478e761a Merge pull request #425 from iamthad/issue-424-trick-15.3-clang-3.5
Re-add '-std=c++11' in ICG CXXFLAGS when Clang version >= 3.5
2017-05-17 09:39:29 -05:00
Thadeus Fleming
1f966a71a4 Re-add '-std=c++11' in ICG CXXFLAGS when Clang version >= 3.5 to address #424 2017-05-16 08:38:14 -05:00
Alex Lin
bcd56179ba Merge pull request #418 from DavidHammen/hammen_doxygen_comments
Hammen doxygen comments
2017-05-08 14:23:56 -05:00
David Hammen
ed335ff926 Fixed a code bug and a comment bug in er7_utils, mostly so I can submit a new pull request against Trick 15.2.3. References #416. 2017-05-08 09:08:29 -05:00
David Hammen
bbdf0f8378 Compile clean with clang++ -Wdocumentation.
I made a number of changes to Trick to make it compile clean with
clang++ -Wdocumentation, which checks doxygen comments. The changes
were either to comments or to parameter names in function declarations.
None of the changes have any impact on the compiled code.
2017-05-06 21:57:51 -05:00
Alex Lin
3aadbb87c2 Trick 15.3.dev does not build with clang/llvm 4.0.0 libraries. #410
Added a missing header file and backported a variation of the
almostRealPath call from 17.
15.3.0
2017-04-04 13:49:33 -05:00
Alex Lin
c489644ef3 Merge pull request #409 from pbielski/arg_list
Reduced size of generated argument list for simulation library creation
2017-04-03 08:01:31 -05:00
Paul Bielski
7ac6293c8e Reduced size of generated argument list for simulation library creation 2017-03-31 17:02:06 -05:00
Derek Bankieris
ef69a5bc49 Add ability to pass options to slave sims (in 15)
This replicates 47847a8, which could not be cherry-picked,
in the 15.3.dev branch.
2017-03-20 11:49:38 -05:00
Alex Lin
0819717183 tool for detecting mismatch between friend init_attr and containing class #371
Added a check and warning message in ICG that warns you if a friend function
starts with "init_attr" but does not match the current class name.
2017-03-10 09:41:55 -06:00
Derek Bankieris
132892012a Add missing order-only dependency on directory 2017-02-28 14:38:09 -06:00
Alex Lin
ddecb50b32 S_overrides.mk is included twice when building #360
Not porting the issue to 15, but added the makefile to the
"make clean" rule in simulation directories.
2017-02-14 08:41:25 -06:00
Alex Lin
616f83cea4 duplicate include guards #379
changed the include guard in PythonPrint.hh
2017-01-24 09:59:13 -06:00
Alex Lin
70b5bcd1ab Forward-declared classes aren't fully populated in S_sie.resource #378
I chose the wrong call when trying to support clang 3.9 and it's
removal of getRBraceLoc.  The best equivalent call in 3.9 is
getBraceRange().getEnd().
2017-01-23 17:41:19 -06:00
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