Commit Graph

938 Commits

Author SHA1 Message Date
Penn, John M 047828115
3bb01166e6 Fix test suite name in SAIntegrator_unittest.cc 2020-09-28 12:13:21 -05:00
Penn, John M 047828115
9df4f801ea Update Makefile #1056 2020-09-28 01:19:41 -05:00
Penn, John M 047828115
abfe30c19d update Makefile 2020-09-28 00:44:30 -05:00
Penn, John M 047828115
3b7a94a66f Target for SAIntegrator_unittest 2020-09-27 23:36:03 -05:00
Penn, John M 047828115
c540cb820e Tweek Makefile #1056 2020-09-27 23:25:53 -05:00
Penn, John M 047828115
f2400f8d23 Merge branch 'master' of https://github.com/nasa/trick 2020-09-27 23:21:59 -05:00
Penn, John M 047828115
57a12fc5cf Add *test* target and change some file names. #1056 2020-09-27 23:21:25 -05:00
jmpenn
d819aa9e97
Update README.md 2020-09-27 19:22:55 -05:00
jmpenn
d96dab1734
Update README.md 2020-09-27 19:20:56 -05:00
jmpenn
374d500f78
Update README.md 2020-09-27 19:20:10 -05:00
jmpenn
54edb65c88
Update README.md
Fix quotes in README.md
2020-09-27 18:39:26 -05:00
Penn, John M 047828115
cb3869a36c Add new stand alone numerical integration library SAIntegrator #1056 #936 2020-09-27 18:36:49 -05:00
Fennell, Scott P 263712616
3f7ebd38e3 Update version numbers to pre-release for 19.3.0 2020-09-13 19:36:34 -05:00
Fennell, Scott P 263712616
424c2b60bd Trick release 19.2.0 2020-09-13 18:43:17 -05:00
Scott Fennell
5bb32279b5
1053, 1009, 1054 cmake update (#1055)
* #1053 #1009 cmake configure correct clang libs

* #1054 fix sie-rework to be compatible with CMake build

closes #1053  closes #1009  closes #1054
2020-09-13 18:38:35 -05:00
Scott Fennell
c9f060c94f
1036 1007 only enable cpp11 in Makefile_io_src when needed (#1052)
Enable c++11 flag only on GCC < 6. Also enable c++14 if Clang is being used.
2020-09-09 01:43:32 -05:00
Scott Fennell
f825dc00fc
Merge test branch into master (#1047)
* #1041 filter -W workaround for ICG linking to LLVM 10 libclang-cpp.so (#1044)

* 1043 drg checkpoint memory leak (#1045)

* #1043 drg fix drg checkpoint memory leak

* 947 sie generation rework (#1046)

generate  S_sie.resource at during build instead of runtime
2020-09-01 15:55:19 -05:00
Scott Fennell
3b89cbfdb2
iss #1009 (#1040)
Link correct clang libs based on availability. ICG clang lib link flags are determined by trick/configure
2020-08-28 14:52:23 -05:00
Scott Fennell
ba94c8181d
#1038 filter -llibxml2.tbd from llvm-config --system-libs as temporary workaround for missing library (#1039) 2020-08-18 15:11:28 -05:00
Scott Fennell
663f9937be remove Set Units field from TV closes #1014 2020-07-02 14:05:10 -05:00
Penn, John M 047828115
9452f928d0 Breakout Regula Falsi Bounds setter functions. Ref #995 2020-05-04 16:10:35 -05:00
Penn, John M 047828115
e303b2ac9b Revert regula_falsi.c. Ref #995 2020-04-30 23:12:22 -05:00
Penn, John M 047828115
479f3458cd Add Recursive Dynamic Event Processing. Ref #995 2020-04-29 17:26:02 -05:00
Derek Bankieris
6613669989 Fix trick_exclude_typename
Closes #985
2020-04-17 14:09:37 -05:00
Derek Bankieris
5f8a411538 Replace : in ConstructValues::mangle_template_param
Closes #983
2020-04-17 09:48:52 -05:00
dependabot[bot]
da4163d2c7
Bump pdfbox from 2.0.11 to 2.0.15 in /trick_source/java (#944)
Bumps pdfbox from 2.0.11 to 2.0.15.

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-04-05 18:12:56 -05:00
Scott Fennell
2957b9912e
Update CMakeLists.txt 2020-04-01 13:07:10 -05:00
Alex Lin
67fd753736
ICG won't build with LLVM 10.0 #976 (#977)
As usual a new LLVM version brings changes.  Found that ICG needs
to be built with c++14.  Also found a couple of API changes in main.
Enclosed the changes in ifdef statements.
2020-03-31 11:40:30 -05:00
Scott Fennell
60001bb5db Java only rebuild if sources or jars missing closes #975 2020-03-30 20:15:49 -05:00
Scott Fennell
6f85dc19b4 #960 fix launchQP 2020-02-21 13:51:44 -06:00
Scott Fennell
898fc68017 set java version number instead of using env. This is the conventional approach and will eliminate a maven warning 2020-02-21 09:50:12 -06:00
Scott Fennell
3c0f40f1bb
Update version nmuber 2020-02-18 16:12:27 -06:00
jmpenn
5c49bf8fef
Add ability to reset the integrator state (#952)
* Add ability to reset the integrator state

* Make reset logic changes conditional on USE_ER7_UTILS_INTEGRATORS
2020-02-18 15:18:57 -06:00
Scott Fennell
05acf0d92f
19.1.0 2020-02-18 10:13:02 -06:00
Scott Fennell
b724f502b3
fix 32 bit test (#953)
* fix tests for 32 bit mode

* fix issues with mongoose build

* Update docker.yml
2020-02-14 10:23:19 -06:00
Scott Fennell
9864fe39f7 fix relative path from trick_algorithms Makefile to Makefile.common 2020-02-11 11:50:26 -06:00
Scott Fennell
03bcbfa119 add space for null char in buffer in ICG main 2020-02-11 10:41:09 -06:00
Scott Fennell
ea6ff1b233 fix TV bug where you could not convert multiple variables at the same time, also add set units field closes #940 2020-02-06 12:19:55 -06:00
Scott Fennell
4f5ce7e4a1
Maven, offline mode, and --enable-mongoose (#939)
closes #938 
closes #941 
closes #943
2020-02-05 14:31:58 -06:00
Alex Lin
d92acb133d Cmake using http instead of https to download java files #937
Changed http to https.
2020-01-24 08:08:25 -06:00
Scott Fennell
3415996952
iss #909 add functions to turn on/off SIGCHLD handler (#924)
closes #909
2020-01-16 10:49:36 -06:00
Scott Fennell
0a19f19c90
#858 #262 allow manual entry of conversion unit for any compatible udunit in TV (#921)
* #858 #262 allow manual entry of conversion unit for any compatible udunit in TV

* #858 #262 remove combo boxes from unit conversion for consistancy and flexability when converting units
2020-01-02 13:28:42 -06:00
Alex Lin
83338c4957 cmake scripts do not work for CentOS7 #914
Updated minimum cmake version to 3.1
Added checks in findllvm script to handle old 3.4 LLVM version
Added back include directories needed by old LLVM version in ICG.
2019-11-22 08:12:54 -06:00
Scott Fennell
f69d29b15f
Create short README for web server to help navigate to documentation 2019-11-20 15:51:32 -06:00
Scott Fennell
7c2f562e8f move web documentation to docs 2019-11-20 15:43:34 -06:00
Alex Lin
17013834c9 GSL includes required for trick_math #901 2019-11-20 07:40:40 -06:00
Penn, John M 047828115
f157b2a8ee Merge branch 'master' of https://github.com/nasa/trick 2019-11-19 14:35:53 -06:00
Penn, John M 047828115
2154c654a9 Add documentation to Web Server #910 2019-11-19 14:22:50 -06:00
Alex Lin
1cf9107f86 CMake is not Cake 2019-11-19 13:29:32 -06:00
Alex Lin
bbc79b491b Adjusting cmake rules for case where fermi-ware is not present 2019-11-19 13:22:04 -06:00
Alex Lin
7c6c833a6a Merge branch 'master' of https://github.com/nasa/trick 2019-11-19 10:59:40 -06:00
Alex Lin
60a1a0558f Oops, didn't put the #endif in the right place 2019-11-19 10:59:28 -06:00
Scott Fennell
54b52e39dc update web app, prepare for release. Rename directory 2019-11-19 10:25:38 -06:00
Alex Lin
ce0cdc9636
Cmake merge (#901)
* Merging changes from cmake branch to master

* Fixing includes for renamed header files

* still need build rule

* Adding warning for swig code for gcc8+

* Adding CMakeLists.txt for data products

* Cmake merge #901

Making adjustments to get cmake working on the Mac (Mojave)

* Cmake merge #901

Changing string append to list append
2019-11-19 09:01:16 -06:00
Scott Fennell
0d5aa45c20
Python3 exec open (#907)
* update .gitignore

* #906 change all python execfile() to exec(open().read())
2019-11-14 13:35:57 -06:00
Scott Fennell
29e047f7a7 remove dependency on JUnitXMLFormatter 2019-11-12 08:47:16 -06:00
Scott Fennell
227c733ccc
Update react-based Trick Dashboard (#900)
Fast-forwarding my app to the latest version to make it available and minimize integration problems later on. The app still requires several features to be implemented such as a Search feature for TV.

Currently, the process for using the app is as follows:

Install Node.js. https://nodejs.org/en/ or alternatively find a repository such as NodeSource
```cd trick/trick_source/web/mockup```
```npm i```
```npm run build```
Copy the contents of the build directory to your www directory for your sim
2019-11-08 10:56:56 -06:00
Penn, John M 047828115
23b5b7ac19 Use better WebSocket constructor in wsexp.html because it's an example. 2019-11-06 13:18:29 -06:00
Penn, John M 047828115
225cd9704e Add images directory and trick_icon.png needed for webserver. 2019-11-04 12:52:29 -06:00
Scott Fennell
8428c56e6a add sie and units messages to httpserver 2019-10-31 10:39:13 -05:00
Scott Fennell
2deff169e0 require c++11 for trick_source/sie 2019-10-31 09:51:24 -05:00
Scott Fennell
5ab51d42e6
Merge pull request #895 from nasa/S_sie.json
create S_sie.json
2019-10-30 16:07:32 -05:00
jmpenn
be34b89512
In WebServer class use message_publish() for messages and add debug flag. (#893) 2019-10-29 17:21:19 -05:00
jmpenn
9eed167634
Add enable flag to webserver. Default is false. Should be set to true in input file to enable. (#892) 2019-10-29 11:52:02 -05:00
jmpenn
d86a23834c
Fix a race condition between ICG and mongoose install (#891)
* Fix a race condition between ICG and mongoose install

* Update mongoose to version 6.16
2019-10-25 13:21:39 -05:00
jmpenn
95c6659733
Incorporate Webserver into Trick, so one only has to include HttpServ… (#886)
* Incorporate Webserver into Trick, so one only has to include HttpServer.sm

* Tweaks in default index.html file

* Rename HTTPServer.sm to WebServer.sm

* Rename http_server to WebServer

* Add --retry to curl invocations in HttpServer makefile.

* Fix #include in VariableServerVariable.hh

* Include cleanup and curl tweaks in the hopes of making Jenkins happy.

* Doh! problem in makefile masked by preinstalled mongoose in usr/local/lib

* DIE Make Bug DIE

* Fix include in WebServer.sm

* WebServer.sm constructor name

* Don't SWIG mongoose.h

* Compile with -std=c++11

* Attempt to fix race condition in makefile

* makefie tweek

* Fix trick library name problem for Centos and Redhat
2019-10-23 11:58:19 -05:00
Derek Bankieris
1f33406c95 Don't trace TRICK_EXT_LIB_DIRS lib deps in CP
Refs #871
2019-10-07 14:12:06 -05:00
dbankieris
5e11a40a69
Merge pull request #877 from nasa/char_sized_enums
Add support for char-sized enums
2019-10-04 12:21:31 -05:00
Scott Fennell
c8eb44e1fc get rid of dangling pointer use closes #878 2019-10-04 10:04:38 -05:00
Derek Bankieris
04d5f5dd80 Add support for char-sized enums
Fixes #876
2019-10-01 12:26:57 -05:00
sfennell
8ac5cf7a59 changes to support llvm 9.0 closes #869 2019-09-27 16:04:16 -05:00
sfennell
5004f95fdd changes to support llvm 9.0 closes #869 2019-09-27 14:58:54 -05:00
Scott Fennell
f10e4e8d93 remove deprecated std::ptr_fun and std::not1 closes #864 2019-09-23 14:25:27 -05:00
Scott Fennell
238b376b14 use almostRealPath instead of realpath closes #857 2019-09-10 11:13:57 -05:00
Scott Fennell
d978cdf4c6 move code out of conditional block to make sure slave_output_directory gets initialized fixes #848 2019-09-09 11:26:09 -05:00
Scott Fennell
994c8c0684 create S_sie.json 2019-09-09 10:56:02 -05:00
Derek Bankieris
5dd8fe4cf1 TrickView: Order enums according to S_sie.resource
Closes #860
2019-09-09 08:53:00 -05:00
Scott Fennell
e798fde189 move misplaced parentheses to include enum headers closes #856 2019-09-05 14:47:10 -05:00
Derek Bankieris
3a03f7af53 Remove to_string from JITInputFile.cpp
Follow the existing error reporting pattern
2019-09-03 11:08:38 -05:00
Dung-Ru Tsai
0dffa8096f Add debug errno in the JIT compile (#854)
Thank you for your contribution!
2019-09-03 07:21:57 -05:00
Scott Fennell
de490a5dfa
Merge pull request #853 from nasa/react-app
React App Example for Embedded Web Server
2019-08-30 13:22:54 -05:00
Scott Fennell
d8717059f5 #851 complete a basic mockup with some features of the React-based sim-control UI 2019-08-27 13:10:18 -05:00
John M. Penn
dde519f1b0 Fix warnings in unicode utils. #850 2019-08-26 15:00:23 -05:00
Penn, John M 047828115
ba4c86858a Remove unused variable definition. 2019-08-13 16:32:21 -05:00
Alex Lin
90c1564a0c Merge branch 'master' of https://github.com/nasa/trick 2019-07-19 16:06:54 -05:00
Alex Lin
4b68ed4993 Add support for Mac's removal of /usr/include #810
Found a unit test makefile that wasn't ready for Mojave.
2019-07-19 16:05:26 -05:00
Scott Fennell
3609f76474 exit on invalid input file or command line argument #840 2019-07-10 15:23:29 -05:00
Scott Fennell
1d17aa579a fix sim help message and handle bad command line args #840 2019-07-10 13:53:03 -05:00
Scott Fennell
82bae3b0d0 #836 remove all S_default.dat stuff 2019-07-09 15:58:26 -05:00
Scott Fennell
c2d2fee474 #837 default input file to first argument if RUN_ is not present 2019-07-08 09:28:53 -05:00
Scott Fennell
ca5ddb429e iss #837 make command line arguments position independent 2019-07-02 09:03:09 -05:00
dbankieris
5d0e0f65bd
Merge pull request #831 from nasa/407
Add support for -isystem
2019-06-25 07:51:28 -05:00
Derek Bankieris
40cf5c0b29 Note the process exit status of Monte Carlo runs
Closes #481
2019-06-21 14:02:03 -05:00
Derek Bankieris
d135353c90 Infer TRICK_HOME in Makefiles
Closes #358
2019-06-21 13:15:22 -05:00
Derek Bankieris
422ef225f1 Give er7_utils proper Makefiles
Closes #637
2019-06-21 12:59:00 -05:00
Derek Bankieris
67decaed24 Add support for -isystem
Closes #407
2019-06-20 10:12:33 -05:00
Scott Fennell
b23b19195b
Merge pull request #818 from nasa/786-clock-stuff
Add C call to clock_tics_per_sec and also log init job elapsed time
2019-06-18 13:38:18 -05:00
Alex Lin
453a03a809
Get configure with no java and no X to work #735 (#817)
Found if --without-x was specified, that automatically caused an
error condition in the configure script.  Fixed that and only
tested for X windows headers and libs if X is included.  Excluded
a couple of directories from compiling if X is not included.

Didn't seem to be a problem with java.
2019-06-18 11:00:42 -05:00
Alex Lin
497f11f132
Make TRICK_CXX variable to specify c++ compiler #767 (#815)
Changed all references of TRICK_CPPC to TRICK_CXX.  Added a
warning message that TRICK_CPPC has been deprecated.
2019-06-18 11:00:08 -05:00
Alex Lin
187fa37540
Remove suppression of units conversion warnings in 19 #789 (#814)
Removed checks on dead units conversion messenger.  Units conversion
messages cannot be suppressed.  Added deprecated messages to the functions
that modified the message printouts.
2019-06-18 10:59:51 -05:00
Alex Lin
5e9723c630
Add support for Mac's removal of /usr/include #810 (#811)
If we are on a Mac, use xcrun to find the standard include directories.
Some of the makefiles in data_products look for libxml2 which requires
them to get the same change as the configure script.
2019-06-18 10:59:35 -05:00
Scott Fennell
4d247c94db remove unneccessary includes 2019-06-18 10:39:03 -05:00
Scott Fennell
97941ac073 move init_log_stream to Executive.hh, move Executive::process_sim_args from "default data" to Executive::init 2019-06-18 10:34:56 -05:00
Scott Fennell
fadda55abf Log elapsed time in default_data, input_processor, and init jobs in file
init_log.csv
2019-06-17 14:40:01 -05:00
Alex Lin
78b5a0c692 Optionally use 'cio' in place of 'trick_chkpnt_io' field #749
Added an alias to use cio for trick_chkpnt_io and io for trick_io.
2019-06-14 07:43:37 -05:00
Alex Lin
04b2185c2e TPROCTE_HOME Being Used In Place Of TPRO_HOME #778
I put the include for tsync.h in the wrong place.
2019-06-12 07:17:39 -05:00
Alex Lin
a420418443 TPROCTE_HOME Being Used In Place Of TPRO_HOME #778
Changed the Tsync routing from using the old TPro API to the
new Tsync API.
2019-06-11 15:50:49 -05:00
Alex Lin
a394f0d187 TPROCTE_HOME Being Used In Place Of TPRO_HOME #778
Needed to make some more fixes to work with modern tsync driver
code.
2019-06-11 09:48:29 -05:00
Scott Fennell
b1d791dc94 #805 add C call to clock_tics_per_sec 2019-06-07 08:29:47 -05:00
Scott Fennell
9be53ebb9b #776 default restore_stls to false 2019-06-03 09:44:35 -05:00
Scott Fennell
7f7adca0ac #776 .dat files don't call restore_stls in checkpoint restore 2019-06-01 10:48:31 -05:00
dbankieris
35c2dacac5
Merge pull request #785 from nasa/746
Clean up duplication in makefiles
2019-05-30 16:27:51 -05:00
Derek Bankieris
7b0e84e58e Clean up duplication in makefiles
Normalize behavior of TRICK_VERBOSE_BUILD

Closes #746
2019-05-30 15:47:07 -05:00
dbankieris
b694d5412b
Merge pull request #765 from nasa/763
Add ability to specify MC slave output directory
2019-05-29 14:29:04 -05:00
Derek Bankieris
295b9e3285 Infer TRICK_HOME automatically
Refs #358
2019-05-23 15:09:34 -05:00
Alex Lin
7338dd32d3 Merge branch 'master' of https://github.com/nasa/trick 2019-05-14 09:09:13 -05:00
Alex Lin
fedf5bec72 Reduce number of real-time plots per page to 6 #775
Changed the hard coded 8 plots per page to a user settable number.
Defaulted the number to 6.
2019-05-14 09:08:11 -05:00
jmpenn
3f35388b49
Change std::endl to linefeed as appropriate. (#773)
* Fix endl issue in variable server JSON generation. Ref #766

* Change std::endl to line feed as appropraite. #766

* Change std::endl to line feed in MemoryManager as appropriate. #766

* Change std::endl to linefeed as appropriate. #766

* Change std::endl to line feed as appropriate in JSONVariableServer. #766

* Change std::endl to line feed as appropriate in still more files. #766
2019-05-13 16:05:01 -05:00
iamthad
3187dd9012 Replace std::endl with "\n" in SIE (#772)
std::endl flushes the output stream. The SIE functions were using it
multiple times per variable. This can have significant performance
impacts on file I/O.

In testing, the S_sie.resource file for SIM_parachute was flushed over
14000 times, each resulting in a separate write system call. With this
patch, only ~40 write calls were performed, and writing the file took
~1/3 as long.

For more information, see
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Rio-endl
2019-05-13 14:31:46 -05:00
Derek Bankieris
4368d412b2 Add C functions for setting MC slave output dir
Refs #763
2019-05-06 12:03:26 -05:00
Derek Bankieris
7d7b461b38 Allow specification of MC slave output directory
Refs #763
2019-05-06 11:32:12 -05:00
Scott Fennell
3364cd3836
Merge pull request #750 from nasa/fix-clean-bin
#507 clean remove 2 data products binaries from bin
2019-05-06 09:33:12 -05:00
Alex Lin
e6abfd21b8 Log frame scheduling time if not running real-time. #762
If real-time is off, we exit the rt_monitor function early.  The frame
scheduled time was calculated after the exit call.  Moved the frame
scheduled time calcuation before the exit.
2019-05-02 16:36:35 -05:00
Derek Bankieris
d5544a5991 Correct decimal formatting for ints in TrickView
3032aae added fixed-width to binary formats. Looks like I modified
TVInteger's Decimal format instead of Binary.

Refs #661
2019-04-25 07:29:58 -05:00
Penn, John M 047828115
0f037e6817 Update trickTypeCharString() for STLs, so their names can be generated. #755 2019-04-17 16:43:12 -05:00
Penn, John M 047828115
05e9535518 Add MemoryManager methods to generate JSON for allocation info. #755 2019-04-17 16:35:29 -05:00
Derek Bankieris
4611db2e92 Merge branch 'master' of https://github.com/nasa/trick 2019-04-09 13:20:01 -05:00
Derek Bankieris
f1ef983143 Change unbold ascii escape sequence from 21 to 22
21m as unbold is not well supported and sometimes causes
double-underline instead
2019-04-09 13:18:02 -05:00
Scott Fennell
49e243b54a
Merge branch 'master' into VERBOSE-synonym 2019-04-02 13:34:52 -05:00
Scott Fennell
4f9c51b2cb #507 clean remove 2 data products binaries from bin 2019-03-29 13:41:24 -05:00
Alex Lin
6a84ae548b Merge branch 'master' of https://github.com/nasa/trick 2019-03-26 17:10:16 -05:00
Alex Lin
b29a117902 ICG does not compile with LLVM 8.0 #747
getLocEnd got changed to getEndLoc.  Made a LLVM version based macro
to handle both.
2019-03-26 17:03:11 -05:00
Scott Fennell
644a9a0e00 #741 add VERBOSE synonym everywhere 2019-03-21 09:28:52 -05:00
Penn, John M 047828115
be4372a831 Change dashes in JSON identifiers to underscores. ref #678 2019-03-07 10:44:56 -06:00
Penn, John M 047828115
531a94173e Fix output going to the wrong stream. ref #678 2019-03-07 10:43:40 -06:00
Scott Fennell
941a94d9ad never assume that syntax from github suggestions is correct 2019-02-28 08:38:47 -06:00
dbankieris
3965b87499
#738 use real division and static cast (suggestion)
Co-Authored-By: spfennell <spfennell@gmail.com>
2019-02-28 08:27:13 -06:00
Scott Fennell
08d0ea5d40 #738 add Derek's warning 2019-02-27 16:00:03 -06:00
dbankieris
6eeb4cee80
Merge pull request #736 from nasa/688
Include Trickified classes/enums in S_sie.resource
2019-02-20 14:13:12 -06:00
dbankieris
93cc526202
Merge pull request #734 from nasa/724
Correct forward-declaration-detection logic in ICG
2019-02-20 14:12:53 -06:00
Derek Bankieris
8658f33f64 Include Trickified classes/enums in S_sie.resource
Fixes #688
2019-02-20 13:21:14 -06:00
jmpenn
b9278c4a72
Add capability to list current variable server connections in JSON re… (#732)
* Add capability to list current variable server connections in JSON ref #678

* Add client tag to the connection info.

* Name consistency tweak in generation of JSON variable-server connection list. ref #732

* Add client IP address and port. ref #732

* Output should be going to the stringstream, not std::cout. Ref #732
2019-02-18 17:11:41 -06:00
Derek Bankieris
294e8c9e40 Correct forward-declaration-detection logic in ICG
Fixes #724
2019-02-14 10:55:55 -06:00
Alex Lin
a2cee328d2
Merge pull request #729 from iamthad/tcp-nodelay-on-udp
Disable setting TCP_NODELAY on UDP sockets
2019-01-31 07:43:23 -06:00
Shahzad Lone
7428a98191
Undo spacing It was not suppose to be done on this request 2019-01-28 22:21:05 -05:00
Shahzad Lone
b7e400d0db
Remove spacing that makes travis build happy (even though i didn't introduce this ?) 2019-01-28 22:14:02 -05:00
Thadeus Fleming
60c4120f98 Disable setting TCP_NODELAY on UDP sockets
The TCP_NODELAY socket option disables Nagle's algorithm on TCP sockets,
improving latency at the cost of throughput. This option is
TCP-specific, and it is an error to use it on any other kind of socket,
including UDP. It is also unnecessary, since UDP is datagram-based and
does not buffer data to be transmitted.
2019-01-28 10:44:17 -06:00
Shahzad Lone
bdc40e3709 Vector Optimize to Save on Re-Allocation costs.
We know how many more elements we are going to push into ```listLogGroupIterators_``` so use that to our advantange and reserve inadvance to save on re-allocation costs.
2019-01-25 01:24:12 +00:00
Scott Fennell
35b4cf7880 fix right click in java uis 2019-01-24 16:19:01 -06:00
Scott Fennell
6240b2a893 typecast malloc in a math function in case someone wants to compile it in c++ 2019-01-17 15:48:38 -06:00
Derek Bankieris
9a04d72fd0 Add Unit.hh to files_to_ICG.hh & sim_services.i
units_conv.h was also missing from sim_services.i

Closes #718
2018-12-07 08:08:15 -06:00
Derek Bankieris
247fcc370d Add accessor for MonteVarRandom::randist
Closes #715
2018-12-04 11:57:18 -06:00
Derek Bankieris
0394867dfd Add MonteCarlo::variables accessor
Closes #713
2018-12-04 10:25:03 -06:00
Penn, John M 047828115
5333773fbd Return output length even if output array is NULL. Ref #708 2018-11-27 14:24:48 -06:00
jmpenn
ca35092c1d
Fix lockup when running Valgrind. Ref #685 (#699) 2018-11-09 13:40:11 -06:00
Scott Fennell
51ddcfaae0
Merge pull request #695 from nasa/java-11
Support Java 11
2018-11-06 15:38:56 -06:00
Scott Fennell
281fe5bf9b remove premature delete 2018-11-06 13:59:02 -06:00
Scott Fennell
9b644c406a remove dangling ptr 2018-11-06 12:14:01 -06:00
Scott Fennell
47c26d971b remove dangling ptr 2018-11-06 12:03:07 -06:00
Scott Fennell
2607439227 change nullptr to NULL 2018-11-06 11:36:34 -06:00
Scott Fennell
66b3d984ff Merge branch 'master' into scan-build 2018-11-06 11:24:09 -06:00
Scott Fennell
21c01a5454 scan-build changes
This reverts commit e86027f825.
2018-11-06 11:23:12 -06:00
Scott Fennell
c34d2c6947 move dependance on java.se.ee to third party jars to support java 11 2018-11-05 14:01:52 -06:00
dbankieris
348bbb3798
Add ExecutiveException.hh to sim_services.i (#691)
* Add ExecutiveException.hh to sim_services.i and files_to_ICG.hh
* Update version number

Fixes #690
2018-10-30 13:49:55 -05:00
Scott Fennell
d2e81257c2 #687 do not warn or convert unit -- 2018-10-30 10:40:46 -05:00
John M. Penn
a29045005c Create a suite of unicode utilities. 2018-10-25 15:14:52 -05:00
Scott Fennell
e86027f825 revert scan-build changes, need further testing before merge 2018-10-22 15:11:29 -05:00
Scott Fennell
86ef489617 -std=c++11 to data_products 2018-10-22 13:58:08 -05:00
Scott Fennell
389e2837fc add -std=c++11 to MonteCarlo 2018-10-22 11:40:55 -05:00
Scott Fennell
587ce0aab5 #673 add break and remove trailing whitespace from @pappyvw review 2018-10-20 14:33:14 -05:00
Scott Fennell
bc35e64406
Merge pull request #673 from nasa/#scan-build
#671 fix all non memory manager scan-build bugs.
2018-10-20 13:16:35 -05:00
Pappy Van Winkle
121fa84081 Use correct format specifiers.
Used http://www.cplusplus.com/reference/cstdio/printf/ as a reference.
2018-10-11 22:52:04 -05:00
Pappy Van Winkle
af2575da5b Remove all unused variables (style warning). 2018-10-11 22:05:50 -05:00
Scott Fennell
5b63559312 fix error message syntax errors 2018-10-03 15:31:22 -05:00
Scott Fennell
53886fb54d add else block for code clarity and to aid static analysis JITInputFile.cpp 2018-10-03 10:49:11 -05:00
Scott Fennell
8f20710761 replace garbage value on enum error PythonPrint.cpp 2018-10-03 10:45:15 -05:00
Scott Fennell
b65b092e3b handle garbage values/invalid input MatLab4.cpp 2018-10-03 10:35:10 -05:00
Scott Fennell
072e1855dd handle memory leak on early exit parseLogHeader.cpp 2018-10-03 10:34:45 -05:00
Scott Fennell
d1957c650b handle garbage values/invalid input ClassicCheckPointAgent 2018-10-03 10:34:11 -05:00
Scott Fennell
ba0c310e64 remove potential memory leak 2018-10-02 10:58:53 -05:00
Scott Fennell
1c387551f6 replace delete with delete[] MatLab4.cpp 2018-10-02 10:51:44 -05:00
Scott Fennell
b10b56e671 initialize variable removing condition on garbage variable MatLab.cpp 2018-10-02 10:40:14 -05:00
Scott Fennell
d16064aaf0 move strlen statement 2018-10-02 10:38:59 -05:00
Scott Fennell
3c7a93c3ca remove memory leaks parseLogHeader.cpp 2018-10-02 10:38:09 -05:00
Scott Fennell
33b74c07c9 remove memory leaks var.cpp 2018-10-01 16:49:55 -05:00
Scott Fennell
e4dcd42b2b fix unreachable code MonteVarFile.cpp 2018-10-01 16:22:27 -05:00
Scott Fennell
28863c58a6 remove memory leaks and garbage return values TrickBinary.cpp 2018-10-01 15:55:04 -05:00
Scott Fennell
a60cc3f2ae remove dead assignment and memory leaks var.cpp 2018-10-01 14:28:26 -05:00
Scott Fennell
605f5d0f6d remove dead assignment DataRecordGroup.cpp 2018-10-01 14:16:19 -05:00
Scott Fennell
0b2218e449 remove dead assignment IPPython.cpp 2018-10-01 13:55:02 -05:00
Scott Fennell
424043b146 remove 'delete this' double delete in JSONVariableServerThread destructor 2018-10-01 13:33:51 -05:00
Scott Fennell
2cdd4bf380 free memory leaks MonteVarFile.cpp 2018-10-01 13:24:37 -05:00
Scott Fennell
7b3b47aa39 init value and style change VariableServerListenThread.cpp 2018-10-01 10:26:17 -05:00
Scott Fennell
2c43321076 remove dead assignments VariableServerThread_loop 2018-10-01 10:13:39 -05:00
Scott Fennell
d701040d22 handle invalid swap magic and delete dangling pointers MatLab.cpp 2018-09-28 11:17:42 -05:00
Scott Fennell
ac6fd26a6d initialize size for Matlab::Matlab to remove garbage value edge case 2018-09-28 10:53:17 -05:00
Scott Fennell
221ced44a0 remove dead assignment, divide by zero, memory leak in log.cpp 2018-09-28 10:38:40 -05:00
Scott Fennell
60e39e2838 remove another dead assignment Delta.cpp 2018-09-28 10:13:22 -05:00
Scott Fennell
7dfcf15a43 remove dead assignment Delta.cpp 2018-09-28 10:12:42 -05:00
Scott Fennell
406f3bb207 remove unnecessary strdup causing memory leak 2018-09-28 10:07:20 -05:00
Scott Fennell
b7d24b60d6 eqparse_funcsub.c remove dead assignment 2018-09-28 09:53:14 -05:00
Scott Fennell
dac6893062 eqparse_funcsub.c remove dead strlen 2018-09-28 09:52:09 -05:00
Scott Fennell
5322bea815 correct all MatLab.cpp 'delete' to 'delete []' 2018-09-27 16:01:40 -05:00
Scott Fennell
6ee1a97c23 change delete to delete [] in MatLab.cpp 2018-09-27 15:45:15 -05:00
Scott Fennell
ffb3749a5a prevent garbage value in default switch case MatLab4 2018-09-27 15:37:34 -05:00
Scott Fennell
2f328f6697 prevent garbage value loaded as value in LogGroup::getValueAtTime 2018-09-27 14:32:35 -05:00
Scott Fennell
8315f95a8c remove dead assignment eqparse 2018-09-27 10:54:49 -05:00
Scott Fennell
6619ecb92f move commented prints in FieldDescription to debug_level 4 2018-09-27 08:10:05 -05:00
Scott Fennell
855510da63 handle edge default case for uninitialized value in eqparse 2018-09-26 15:10:49 -05:00
Scott Fennell
55db7fc708 remove dead assignment in EQParse 2018-09-26 15:07:06 -05:00
Scott Fennell
a9f84d1d9f various static analyser bug fixes 2018-09-26 14:27:03 -05:00
Scott Fennell
53f3b308f5 Merge branch 'master' of https://github.com/nasa/trick 2018-09-25 10:41:35 -05:00
Scott Fennell
77e0e73b3f various static analyser bug fixes 2018-09-25 10:41:14 -05:00
jmpenn
fccf32093b
Explicitly specify void arg for C functions that take no arguments. (#670)
* Clock empty args to void

* command_line func empty args to void

* DataRecord func empty args to void

* debug_pause func empty args to void

* echojobs func empty args to void

* ExternalApplication func empty args to void

* FrameLog func empty args to void

* MasterSlave func empty args to void

* MonteCarlo func empty args to void

* outdllist func proto empty args to void

* sie func empty args to void

* SimTime func empty args to void

* UnitTest func empty args to void

* var_server func empty args to void

* wcs func empty args to void
2018-09-19 11:25:04 -05:00
jmpenn
9a5ecd1294
Replace unreliable 'divide-by-zero' way of generating NaNs with math.h NAN in deuler routines. (#668) 2018-09-17 11:04:53 -05:00
jmpenn
00b4b2c8d9
Fix incorrect initialization of units in trick-qp, and incorrect generation of XML that caused fermi tables to crash. (#666) 2018-09-13 14:00:29 -05:00
jmpenn
fcbd99aaf4
Two Java plot fixes (#665)
* MinY and MaxY of Plot axis should never be the same, even with flatline data.

* In addition to a null check, add a empty units String check.
2018-09-06 14:46:08 -05:00
jmpenn
c112290265
Replace iText Java PDF library with PDFBox. (#664) 2018-09-04 16:59:06 -05:00
Derek Bankieris
3032aae3e4 Trick View: use fixed width for binary format
Closes #661
2018-08-28 08:22:56 -05:00
jmpenn
7b694931ef
Warning fixes (#658)
* Suppress expected, benign warnings from Bison and Flex generated code.

* Trick::MessageThreadedCout::thread_body should return NULL.
2018-08-16 16:02:11 -05:00
John M. Penn
8f5123e480 Included stdexcept in TRK_DataLog.cpp. Ref #657 2018-08-13 19:06:48 -05:00
John M. Penn
3ff8fc6bc0 Fix enums in MonteCarlo_test.cpp. REF #650 2018-08-08 14:36:10 -05:00
jmpenn
84f67ef79f
Update all enums in MonteCarlo with prefixes, so as to not conflict with other enums. (#650) 2018-07-25 13:05:10 -05:00
jmpenn
6f82d11122
Refactoring in trkConvert (#649)
* refactoring: DocWindow constructor to take datalog rather than filename.

* Neatening DocWindow.cpp
2018-07-19 17:45:47 -05:00
Scott Fennell
951aae4be4
Merge pull request #648 from nasa/java-update
#647 update deprecated code
2018-07-13 15:46:33 -05:00
Scott Fennell
a6274680a5 #647 update depricated code 2018-07-13 15:15:35 -05:00
jmpenn
b0b0cdf21b
Add Search and Documentation for trkConvert (#646)
* Add Export of variable list to file.

* Create DocWindow:formattedSave, and implement saveAsCSV etc in terms of it.

* Minor spacing changes

* Add text text UI parts to DocWindow.

* Add foreward and reverse search by pattern.

* Document and configuration for Mac.
2018-07-13 13:43:03 -05:00
Scott Fennell
a0eaf5b794 #624 Remove invalid delete in empty rec_buffer, checkpoint load no longer crashes. 2018-07-09 09:23:28 -05:00
jmpenn
402f7c152b
Added GUI to trkConvert. (#641) 2018-06-28 16:16:48 -05:00
anon
34dcffa7f7 add C headers to trk_DataLog.cpp 2018-06-28 10:18:49 -05:00
John M. Penn
f87657c747 Break out classes into separate files. #639 2018-06-25 11:44:00 -05:00
Derek Bankieris
f8edd98780 Replace CC w/ CXX in Trk2csv makefile
Fixes #638
2018-06-25 10:44:51 -05:00
Derek Bankieris
ed5a5426b1 Revert "Infer TRICK_HOME automatically"
This reverts commit 6e18294100.
Refs #637
2018-06-22 08:12:38 -05:00
Derek Bankieris
6e18294100 Infer TRICK_HOME automatically
Refs #358
2018-06-21 11:40:40 -05:00
jmpenn
882b568b86
Fix enums in MonteCarlo ExitStatus to less susceptible to conflict wi… (#628)
* Fix enums in MonteCarlo ExitStatus to less susceptible to conflict with other code. ref #609

* Add MC_ prefix to ExitStatus enums. Ref #609
2018-06-05 15:10:08 -05:00
Alex Lin
6ce60cb2ec Is Trick ICG missing some uses of TRICK_ICG #608
Some functions changed signatures in 3.5, others in 3.7.
2018-05-18 08:38:28 -05:00
Alex Lin
a8314b1497
Merge pull request #615 from nasa/framelog_fix
#588 top_of_frame and _end_of_frame fix for scheduled threads
2018-05-16 09:16:36 -05:00
Alex Lin
bf1ab16793
Merge pull request #617 from iamthad/pr_set_ptracer
Fix debugger attach when ptrace is restricted
2018-05-16 09:16:14 -05:00
Alex Lin
1e783fb49c When we are copying recorded data into a buffer we use a pointer to track the
buffer position.  This pointer wasn't used in DR_Changes_Step and was corrupting
the pointer initialization later in the write function.
2018-05-16 09:08:39 -05:00
anon
0212ed1650 #588 top_of_frame and _end_of_frame for child threads 2018-05-11 09:49:17 -05:00
Thadeus Fleming
54fe22684a Fix debugger attach when ptrace is restricted
Trick's backtrace or attach functionality fails on systems like Ubuntu
where the use of ptrace(2) is restricted. Where it is defined, use the
PR_SET_PTRACER prctl with the argument PR_SET_PTRACER_ANY to allow any
process to attach.
2018-05-10 07:19:30 -05:00
Alex Lin
be6f9dc855 Trick will not compile with llvm 6.0 and Xcode 9.2 on the mac. #579
Found a new language option we need to set in ICG when llvm >= 6.0 to parse
header files correctly.  The option is DoubleSquareBracketAttributes.
2018-05-07 16:26:20 -05:00
Derek Bankieris
62f95e784f Default exit confirmation dialog to off
Worst feature ever.

Closes #612
2018-05-07 08:10:31 -05:00
Alex Lin
f412125715 Is Trick ICG missing some uses of TRICK_ICG #608
Yes, it is, it's missing all of them.  Any clang/llvm version 3.5 and
above.  So it's been broken for a while.  We inherit from a
clang class that processes preprocessing statements.  If we override
virtual functions of a certain signature, we can inject our code into
the preprocessing process.  In this case we're looking for the use
of TRICK_ICG.  Clang changed the function signature in version 3.5.
From 3.5 on our functions were never called, so we never would find
TRICK_ICG.  I created new signatures for the functions post 3.5 so
they will work again.
2018-04-23 16:40:32 -05:00
Alex Lin
f6d000ac6e
Merge pull request #599 from iamthad/hammen-docs-fix-17
Port Hammen doxygen documentation fix to Trick 17
2018-04-12 08:51:42 -05:00
Alex Lin
2db059679b
Merge pull request #590 from abrogley/unit-test-return-code
Unit test exit code
2018-04-12 08:47:44 -05:00
Alex Lin
1525d2f634
Merge pull request #589 from iamthad/fix-io-63
Only left-shift `FieldDescription::io` when `io_found == true`
2018-04-12 08:46:08 -05:00
jmpenn
9d7ba05c76
Implement Event condition and action lists as array of ptrs to objects rather than contiguous arrays. ref #587 (#597) 2018-04-10 17:17:21 -05:00
John M. Penn
ad05aad2d2 Merge branch 'master' into Issue595 2018-04-10 16:07:46 -05:00
Scott Fennell
af6727408c Limit log file size (#594)
* #585 create new method to set max file size for DataRecordGroups.  Needs testing and DRD interface function

* #585 dre implementation and other improvements, needs more work

* #585 update dre, add intf for drd max size functions. Still requires better comments, wiki updates, some refactoring, and testing

* #585 refactor trick-dre

* format trick-dre

* improve readability of dre output for set_max_file_size
2018-04-10 16:02:44 -05:00