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
John M. Penn
adf4482135
Update MemoryManager::delete_var to just issue a warning message when debug_level > 0. ref #595
2018-04-10 15:34:06 -05:00
John M. Penn
f3be6c9ec0
Add a Memory Manager Test and a MM input parser error msg fix. Ref #587
2018-04-06 15:18:33 -05:00
Aaron Brogley
0d7a082b2f
Adding Trick Unit Test return code functionality.
2018-03-28 10:09:22 -05:00
David Hammen
ba24d52801
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 .
2018-03-28 09:48:26 -05:00
David Hammen
7779dc568b
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.
2018-03-28 09:44:23 -05:00
Thadeus Fleming
db07582616
Only left-shift FieldDescription::io
when io_found == true
...
The `io` field of `FieldDescription` takes a default value of 15. In
`FieldDescription::parseComment`, it may be updated as specified in the comment
text. There are 4 possible cases:
1) Neither IO attributes nor checkpoint IO attributes are found in the comment
2) IO attributes are found in the comment, but checkpoint IO attributes are not
3) Checkpoint IO attributes are found in the comment, but IO attributes are not
4) Both IO attributes and checkpoint IO attributes are found in the comment
In case 2, the IO attributes are copied into the checkpoint IO attributes by the
statement `io |= (io << 2)`. However, this also erroneously runs in case 1,
causing the default value of 15 to change to 63.
By testing `io_found == true`, this logic occurs only in case 2.
Fixes #568
2018-03-27 09:37:26 -05:00
Scott Fennell
f68950db9f
Merge pull request #581 from nasa/java-unit-test
...
Java GUI unit tests reintegrated with Trick
2018-03-21 09:04:04 -05:00
Scott Fennell
a1aaf52ce7
#521 preparation for java 10 support for xmls annotation and improved safety of file separator call
2018-03-21 08:27:11 -05:00
Derek Bankieris
c1aff35a6a
Don't suppress errno
...
Refs #583
2018-03-20 15:21:13 -05:00
Derek Bankieris
69d64fb582
Infer TRICK_HOME automatically
...
Refs #358
2018-03-20 15:09:30 -05:00
John M. Penn
c7d95da9a8
Implement function to generate a transformation matrix to rotate a vector to new a new orientation. Ref #582
2018-03-19 18:10:04 -05:00
Scott Fennell
4030757304
formatting
2018-03-15 15:32:44 -05:00
Scott Fennell
206a928a98
#521 removed build.xml
2018-03-15 15:22:19 -05:00
Scott Fennell
f6fa9cdf3e
#506 added additional check on run directory to prevent creation as defaul… ( #566 )
...
* added additional check on run directory to prevent creation as default output directory
* #506 edited error messages to include strerror
2018-03-14 15:18:37 -05:00
Scott Fennell
84f15d8361
#521 more makefile editing for java unit tests
2018-03-14 15:01:02 -05:00
Scott Fennell
eee6b12a6b
#521 edit resource locations in test source
2018-03-14 13:33:13 -05:00
Scott Fennell
8ee0614309
create directory in makefile
2018-03-14 10:55:09 -05:00
Scott Fennell
86eb23c7de
#521 added unit tests to build and 3rd party XML formatter that does not rely on ant
2018-03-14 10:29:44 -05:00
Derek Bankieris
050e552d7c
Update ICG for clang 6
...
Fixes #578
2018-03-13 09:30:01 -05:00
Derek Bankieris
37b1e02455
Replace perror with strerror
...
Instead of printing the numeric value of errno, how about we do
something helpful?
2018-03-08 14:50:13 -06:00
Derek Bankieris
1179007fa1
Infer TRICK_HOME automatically
...
Refs #358
2018-03-08 14:44:36 -06:00
Derek Bankieris
2ce53dadd2
Move pymods into share/trick
...
Fixes #574
2018-03-05 15:17:22 -06:00
Alex Lin
573a6bf2a5
Java 9 Compatibility #572
...
Made changes to the command to get the java version to make it
compatible with the mac. Also snuck in my perl script to parse
out the version.
____ _ _ _ _____
| _ \ ___ _ __| | || | | ____|_ _____ _ __
| |_) / _ \ '__| | || |_| _| \ \ / / _ \ '__|
| __/ __/ | | |__ _| |___ \ V / __/ |
|_| \___|_| |_| |_| |_____| \_/ \___|_|
2018-03-02 09:19:11 -06:00
Scott Fennell
3de9a3b2be
formatting
2018-03-02 09:19:11 -06:00
Scott Fennell
2fe85f615a
#490 #494 edited java/makefile to include java.se.ee when compiling with java 9
2018-03-02 09:19:11 -06:00
Scott Fennell
13c90afaee
removed unneeded module
2018-03-02 09:19:11 -06:00
Scott Fennell
a2cf18f6d3
Added needed module compiler flags and changed MtvView Vector<Object> to Vector<Vector> for Java 9 DefaultTableModel constructor compatibility
2018-03-02 09:19:11 -06:00
Alex Lin
4bf35a9c82
Revert "Merge pull request #533 from nasa/MakefileCleanup"
...
This reverts commit 269ed77cb4
, reversing
changes made to d97f482219
.
2018-03-02 08:59:26 -06:00
John M. Penn
c9a121aa27
Fix format codes in CSV_Formatter. Ref #570
2018-03-01 12:10:30 -06:00
Alex Lin
9dd302f4b1
Trick makefile output formatting and cleanup. #533
...
Removed the red from the clean rules. We'd like to reserve red for
errors. Ended up removing all color from the clean side.
2018-03-01 08:51:57 -06:00
Alex Lin
9643311f4c
Merge branch 'master' into MakefileCleanup
2018-03-01 08:32:08 -06:00
Alex Lin
d97f482219
Allow the FrameLog class to use a different clock #571
...
Added a clock reference that to the FrameLog class that defaults
to the GetTimeOfDay clock. This clock has fast access and is
non intrusive to real-time operations using a different clock.
Added a function to set the clock to something else if desired.
2018-02-28 17:33:09 -06:00
John M. Penn
aee322927d
Merge branch 'master' of https://github.com/nasa/trick
2018-02-28 15:35:07 -06:00
John M. Penn
d17d48d040
Fixed trkConvert to recognize TRICK_BOOLEAN and LogFormatter interface. Ref #570
2018-02-28 15:34:46 -06:00
Derek Bankieris
27bf0b030b
Dequeue timed-out runs if the slave later returns
...
Fixes #569
2018-02-28 14:13:05 -06:00
John M. Penn
4f0093ddd6
Created a function function to calculate transform using Rodrigues formula. Ref #567
2018-02-27 18:24:40 -06:00
Derek Bankieris
8bdcd28631
Don't use TRICK_HOST_CPU in MonteCarlo SHH command
...
Fixes #564
2018-02-27 09:38:12 -06:00
Alex Lin
0936cee67e
Separate verbosity levels for Monte Carlo dispatches and parametrizations #548
...
Changed verbosity check from INFORMATIONAL to ALL as requested.
2018-02-20 09:56:14 -06:00
Alex Lin
15bfd75b32
Don't resize active event array size with every operation #562
...
Started the active event allocation at 100 events. If more are needed, we
add 100 allocations each time. The array is never reduced in size if
events are deleted, events are moved to the front of the array and the
remaining elements are set to NULL.
2018-02-14 17:28:21 -06:00
Alex Lin
7a3fc1353e
Some of Trick's unit conversions have too many significant digits #557
...
Fixing force conversions in unit test for too many digits.
2018-02-09 10:07:53 -06:00
Alex Lin
049c9a3207
Some of Trick's unit conversions have too many significant digits #557
...
Hard coded values in unit conversion test program.
2018-02-09 08:52:42 -06:00
Alex Lin
bc8d1a3796
The total overruns printout at sim exit prints the wrong parameter. #560
...
Changed the printout to print the total number of overruns.
2018-02-08 16:18:11 -06:00
Pappy Van Winkle
d7e8d48a8a
Creating additional C-interface routines for UnitTest. #511
2018-02-03 19:56:08 -06:00
Alex Lin
940a275192
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:10:39 -06:00
Alex Lin
cc7e3ea128
Merge pull request #543 from pappyvw/master
...
Double clicking array variable in Trick QP adds it correctly once again.
2018-02-01 16:29:37 -06:00
Alex Lin
8f76605f3b
Create Message client that writes to screen on a separate thread #553
...
Created a new message class that will copy incoming messages to a
buffer area. The buffer area is pre allocated during simulation
initialization. On a separate thread the buffer area is written
to std::cout.
2018-01-25 15:59:19 -06:00
Alex Lin
54b57bc351
Pointers to STLs cannot be checkpointed. #552
...
Added code to disable printing of STLs if it is arrayed or has pointer
dimensions.
2018-01-25 09:40:23 -06:00
Alex Lin
a2d0387d57
trk2csv can open too many files #508
...
trckConvert missing cstring header. Added object code to .gitignore.
2018-01-24 07:55:14 -06:00
Alex Lin
c4b872c26e
Don't start or wait for disabled threads in the executive #549
...
Added check to see if thread is enabled when starting it and waiting
for it to finish. If it is disabled, skip it.
2018-01-23 09:37:02 -06:00
John M. Penn
6039669647
Created a new program call trkConvert that only opens the trk file once. Ref #508
2018-01-19 17:37:29 -06:00
Alex Lin
12c7dbd4cf
Trick's new variable server address is hard to debug if you don't know it changed #546
...
Created a second multicast socket to broadcast the sims variable server information
on the old address.
2018-01-19 16:49:08 -06:00
Alex Lin
d4ffa4002b
Add NULL pointer check to remove_event. #545
...
Added the NULL pointer check and return immediately if the pointer is NULL.
2018-01-18 13:23:38 -06:00
Pappy Van Winkle
bb2c6fbb91
Double clicking array variable in Trick QP adds it correctly once again.
...
Fixes #539
2018-01-14 20:32:46 -06:00
John M. Penn
020dd0c1c9
Correct the sizeof() arg to memset call in test fixture. Ref #541 .
2018-01-10 14:27:46 -06:00
Aaron Brogley
f16360ab5f
Fixing typos in trick_utils/math
...
s/determinate/determinant
s/haft/half
s/LELF/LEFT
2018-01-06 11:45:20 -06:00
Alex Lin
c694700148
Add environment variable to ignore types from ICG processing #535
...
Added a new environment variable TRICK_ICG_IGNORE_TYPES. Class/struct/enum
types found in this semicolon delimited list will not have attributes written
out.
2017-12-19 10:02:41 -06:00
Alex Lin
9509924b64
Don't create attributes for class members that are of private embedded class types #534
...
Test the class field type. If the type is a private embedded class mark the field
as io=0 so we don't create attributes for the field.
2017-12-19 08:26:52 -06:00
Nick Kapliev
c8619dbea7
Fixed MonteCarlo EOF problem. #459 ( #531 )
...
* Added tests for MonteCarlo varfile eof line problem
* Remove redundant variables in MonteCarlo varfile test
* Fixed MonteCarlo varfile eof line problem. #459
2017-12-13 12:01:31 -06:00
Christopher LaChance
fbd9d3237f
Cleaned up 'make' target display further.
2017-12-13 11:04:00 -06:00
Christopher LaChance
5e8cb8649f
Added formating to the core makefile. Trick compilation is now visually broken into sections.
2017-12-12 12:01:35 -06:00
Alex Lin
5285f1a72e
Symbolic links rise again #530
...
Found more places where symbolic links cause havoc. Also added back a #define
that was removed in parameter_types.h and added back the messaging routines to
the list swig processes.
2017-12-12 10:17:24 -06:00
Christopher LaChance
6e0fcbd947
Updated formating and replaced formating variables.
2017-12-07 15:10:39 -06:00
Christopher LaChance
1bb3ac2a06
Cleaned up 'make clean' output significantly.
2017-12-06 13:12:13 -06:00
Christopher LaChance
6184aa6cd9
Some unit test warnings addressed. ( #515 )
...
* Removed purple warnings from unit test compilation.
* "Fixed const corectness bug. Added more warning fixes."
* Fixed warning issue.
* Removed null checking and (char*) casting.
* Changed sizeof parameter to variable from data structure.
2017-11-29 15:35:16 -06:00
Christopher LaChance
0e772525c7
Fixed the MC 'file failed to open' error.
2017-11-22 12:51:34 -06:00
John M. Penn
65800e2dcd
If XML_CATALOG_FILES env variable is not set, parse xml files without validation. Ref #514
2017-11-10 13:42:39 -06:00
John M. Penn
a9aff05320
Don't have FXPLOT validate DP and session files against the DTD. Ref #514
2017-11-09 16:31:26 -06:00
Alex Lin
7af2b790a2
Merge pull request #500 from nasa/MonteCarloUnitTest
...
Modified unit tests to account for new logic.
2017-11-02 14:17:51 -05:00
Thadeus Fleming
143d0f2c41
Make object .d files order-only prerequisites
...
This will ensure objects are rebuilt only due to a missing dependency
file, not a newer one.
Fixes #501 .
2017-11-02 12:34:48 -05:00
Christopher LaChance
21e3804638
Removed outdated MonteVarFile exception unit test.
2017-11-02 11:40:28 -05:00
Christopher LaChance
5ea826c67b
Modified unit test to account for new logic.
2017-11-01 09:00:59 -05:00
Christopher LaChance
a68ea46f14
Fixed issue with open file being reopened.
2017-10-31 13:56:04 -05:00
Christopher LaChance
cf75a15be8
Removed redundant checks and this-> keywords.
2017-10-31 13:17:14 -05:00
Christopher LaChance
0dbdc2d7b9
Changed streampos comparison from NULL to 0.
2017-10-31 10:02:10 -05:00
Christopher LaChance
0a90c11541
Implemented a fix for multiple concurrent file handles.
2017-10-27 14:35:54 -05:00
John M. Penn
eba6118c92
Remove Line# from data products java table generation. Ref #497
2017-10-26 13:23:00 -05:00
John M. Penn
41558d7188
Format table column data per the format property. Ref #496
2017-10-25 18:17:02 -05:00
Alex Lin
6271283c31
Revert Trick::Clock::clock_spin shouldn't call RELEASE() #489
...
Added a stub exec_get_rt_nap function in the test directory that
always returns false. That is the cleanest way to satisfy the
call for the unit tests.
2017-10-20 15:03:31 -05:00
Christopher LaChance
c8f916e818
Merge pull request #488 from nasa/NonNumericValues
...
Non-numerical values can now be used in Monte Carlo data files.
2017-10-17 08:40:29 -05:00
Christopher LaChance
db4e0dd024
Returned brace style to K&R at John's behest.
2017-10-16 14:03:48 -05:00
Christopher LaChance
f81d7b0c16
Swapped line read in to std::getline().
2017-10-16 12:56:45 -05:00
Alex Lin
56ddfab6a5
Revert Trick::Clock::clock_spin shouldn't call RELEASE() #489
...
Reverting change, adding back RELEASE call in clock_spin loop.
2017-10-16 10:39:31 -05:00
Christopher LaChance
ebe4174b5c
Converted data file traversal from strtold to strtok.
2017-10-12 10:00:54 -05:00
Christopher LaChance
24894ea08a
Merge pull request #487 from nasa/VariableInformation
...
Added additional variable information to the Monte_Runs data file.
2017-10-11 09:48:42 -05:00
Christopher LaChance
1efedefdf7
Added additional variable information to the Monte_Runs data file.
2017-10-10 11:12:33 -05:00
Alex Lin
8aa8f31e3d
Frame logging for child threads not working. #484
...
Prepended "trick_" to the frame scheduled time variable name.
2017-10-06 10:22:38 -05:00
Derek Bankieris
87e59a9d17
Add reverse byte order formats to Trick View
...
Format added for shorts, ints, and longs.
Closes #482
2017-10-03 12:02:21 -05:00
Alex Lin
de012dde71
Feature request: Support checkpointing and logging of std::array #480
...
Added std::array as an STL type Trick recognizes. We can now create io code
that can save and restore std::arrays like std::vectors and other similar
types. Like other STL types, an std::array cannot be logged or viewed in
trick-tv.
2017-09-27 16:01:52 -05:00
John M. Penn
a1ee0e93da
Merge branch 'master' of https://github.com/nasa/trick
2017-09-13 14:47:03 -05:00
John M. Penn
db2f00cc4e
Changed 'git' to 'trick-gte'. Ref #475
2017-09-13 14:46:28 -05:00
Alex Lin
c6ecd76be5
ICG does not compile with llvm 5.0 #476
...
Added a preprocessor check for llvm version >= 5. If true use
clang::InputKind::CXX instead of clang::IK_CXX
2017-09-13 14:07:23 -05:00
Alex Lin
70a81acc6c
ICG handling of \brief in comments differs on Linux and Mac #453
...
Adjusted regular expression so it will work on the mac. Changed "\w" to
"[a-zA-Z0-9]".
2017-08-21 14:03:49 -05:00
Alex Lin
9207bd0ab1
io_src makefile applying TRICK_SYSTEM_CXXFLAGS to all compilation units. #470
...
Changed TRICK_SYSTEM_CXXFLAGS in Makefile_io_src to TRICK_IO_CXXFLAGS.
2017-08-21 13:28:28 -05:00
Thadeus Fleming
bf2759c5c0
Remove deprecated dynamic exception specifiers.
...
Resolves #461
2017-07-28 20:49:42 -05:00
John M. Penn
841473583c
Updated var server multicast address to 239.3.14.15. Ref #452
2017-07-05 16:40:22 -05:00
John M. Penn
d0b9cda9f2
Fixed variable server debug messages. Ref #447
2017-06-26 17:50:54 -05:00
Christopher LaChance
bd024ce597
Readded the reverted changes.
...
The situation required rebasing the branch from master and re-adding the changes that were reverted.
2017-06-21 09:38:22 -05:00
Christopher LaChance
86aaa8e9fa
Replaced socket_init calls with tc_init.
...
Some classes were still calling socket_init which had been removed. Replaced those calls with tc_init.
Make compiled and make test successfully ran all tests. Jenkins should be happy now.
2017-06-21 09:19:48 -05:00
Christopher LaChance
345971e31a
Replaced socket_init calls with tc_init.
...
Some classes were still calling socket_init which had been removed. Replaced those calls with tc_init.
Make compiled and make test successfully ran all tests. Jenkins should be happy now.
2017-06-21 08:59:22 -05:00