309 Commits

Author SHA1 Message Date
Scott Fennell
2deff169e0 require c++11 for trick_source/sie 2019-10-31 09:51:24 -05:00
Scott Fennell
5ab51d42e6
Merge pull request from nasa/S_sie.json
create S_sie.json
2019-10-30 16:07:32 -05:00
dbankieris
5e11a40a69
Merge pull request 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 2019-10-04 10:04:38 -05:00
Derek Bankieris
04d5f5dd80 Add support for char-sized enums
Fixes 
2019-10-01 12:26:57 -05:00
sfennell
8ac5cf7a59 changes to support llvm 9.0 closes 2019-09-27 16:04:16 -05:00
Scott Fennell
d978cdf4c6 move code out of conditional block to make sure slave_output_directory gets initialized fixes 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
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 ()
Thank you for your contribution!
2019-09-03 07:21:57 -05:00
Penn, John M 047828115
ba4c86858a Remove unused variable definition. 2019-08-13 16:32:21 -05:00
Scott Fennell
3609f76474 exit on invalid input file or command line argument 2019-07-10 15:23:29 -05:00
Scott Fennell
1d17aa579a fix sim help message and handle bad command line args 2019-07-10 13:53:03 -05:00
Scott Fennell
82bae3b0d0 remove all S_default.dat stuff 2019-07-09 15:58:26 -05:00
Scott Fennell
c2d2fee474 default input file to first argument if RUN_ is not present 2019-07-08 09:28:53 -05:00
Scott Fennell
ca5ddb429e iss make command line arguments position independent 2019-07-02 09:03:09 -05:00
Derek Bankieris
40cf5c0b29 Note the process exit status of Monte Carlo runs
Closes 
2019-06-21 14:02:03 -05:00
Derek Bankieris
d135353c90 Infer TRICK_HOME in Makefiles
Closes 
2019-06-21 13:15:22 -05:00
Scott Fennell
b23b19195b
Merge pull request 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
497f11f132
Make TRICK_CXX variable to specify c++ compiler ()
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 ()
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
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
04b2185c2e TPROCTE_HOME Being Used In Place Of TPRO_HOME
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
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
Needed to make some more fixes to work with modern tsync driver
code.
2019-06-11 09:48:29 -05:00
Scott Fennell
b1d791dc94 add C call to clock_tics_per_sec 2019-06-07 08:29:47 -05:00
Scott Fennell
9be53ebb9b default restore_stls to false 2019-06-03 09:44:35 -05:00
Scott Fennell
7f7adca0ac .dat files don't call restore_stls in checkpoint restore 2019-06-01 10:48:31 -05:00
dbankieris
b694d5412b
Merge pull request from nasa/763
Add ability to specify MC slave output directory
2019-05-29 14:29:04 -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
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. ()
* Fix endl issue in variable server JSON generation. Ref 

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

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

* Change std::endl to linefeed as appropriate. 

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

* Change std::endl to line feed as appropriate in still more files. 
2019-05-13 16:05:01 -05:00
iamthad
3187dd9012 Replace std::endl with "\n" in SIE ()
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 
2019-05-06 12:03:26 -05:00
Derek Bankieris
7d7b461b38 Allow specification of MC slave output directory
Refs 
2019-05-06 11:32:12 -05:00
Alex Lin
e6abfd21b8 Log frame scheduling time if not running real-time.
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
Penn, John M 047828115
0f037e6817 Update trickTypeCharString() for STLs, so their names can be generated. 2019-04-17 16:43:12 -05:00
Penn, John M 047828115
05e9535518 Add MemoryManager methods to generate JSON for allocation info. 2019-04-17 16:35:29 -05:00
Penn, John M 047828115
be4372a831 Change dashes in JSON identifiers to underscores. ref 2019-03-07 10:44:56 -06:00
Penn, John M 047828115
531a94173e Fix output going to the wrong stream. ref 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
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 add Derek's warning 2019-02-27 16:00:03 -06:00
jmpenn
b9278c4a72
Add capability to list current variable server connections in JSON re… ()
* Add capability to list current variable server connections in JSON ref 

* Add client tag to the connection info.

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

* Add client IP address and port. ref 

* Output should be going to the stringstream, not std::cout. Ref 
2019-02-18 17:11:41 -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
Derek Bankieris
247fcc370d Add accessor for MonteVarRandom::randist
Closes 
2018-12-04 11:57:18 -06:00
Derek Bankieris
0394867dfd Add MonteCarlo::variables accessor
Closes 
2018-12-04 10:25:03 -06:00