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
Christopher LaChance
34cc3ae8e5
Removed default_port_flag and socket_init.
2017-06-16 15:20:04 -05:00
Derek Bankieris
39aef15a8e
Infer TRICK_HOME automatically
...
Refs #358
2017-06-02 13:37:28 -05:00
John M. Penn
2edd7b986d
Add include of errno.h to MonteVarFile.cpp. Ref #431
2017-05-22 14:07:25 -05:00
John M. Penn
d7e3aa4b5c
Make failed ifstream error message more informative. Ref#431
2017-05-22 13:47:25 -05:00
Alex Lin
dce161ad94
Suppress units conversion messages in input file. #414
...
Added a routine to shoot_the_units_conversion_messenger.
2017-04-20 11:34:50 -05:00
John M. Penn
9a5bbb160a
Get rid of yyset_lineno in the parsers. Ref #404
2017-03-30 19:53:33 -05:00
John M. Penn
56ce1c75cc
Fix yyset_out, yyset_lineno calls and remove yyset_in calls in parsers. Ref #404
2017-03-30 16:14:28 -05:00
John M. Penn
a7039aea61
Create va_list versions of Integrator state load and unload member functions. Ref #401
2017-03-28 17:55:27 -05:00
Derek Bankieris
2335f6bb69
Correct Monte Carlo compiler error on CentOS 7
...
Also change the Cannon sim monte_post jobs to use mc_read/write instead
of tc_read/write
Refs #396
2017-03-24 08:11:32 -05:00
Derek Bankieris
80ab0767e2
Combine command and data sockets in Monte Carlo
...
Refs #396
2017-03-23 12:22:40 -05:00
Derek Bankieris
17a5028e43
Infer TRICK_HOME automatically
...
Refs #358
2017-03-21 10:24:02 -05:00
Derek Bankieris
47847a8aef
Add ability to pass options to slave sims
...
Refs #395
2017-03-20 10:46:10 -05:00
Alex Lin
2450f51781
Add name of parameter to error message coming out of MemoryManager_restrore_stls #382
...
Printing the name now.
2017-02-15 09:00:34 -06:00
Derek Bankieris
4146b440b8
Make trick (Python package) a namespace package
...
Namespace packages are a mechanism for splitting a single Python
package across multiple directories on disk. With the addition of
$(TRICK_HOME)/pymods/trick, there now exists a package named 'trick' at
$(TRICK_HOME)/pymods and in each SIM_* directory. This change allows sims
to import modules from both locations.
Refs #365
2017-01-20 10:30:21 -06:00
Derek Bankieris
a6b68bb101
Infer TRICK_HOME automatically
...
Refs #358
2017-01-20 09:39:04 -06:00
Alex Lin
008337e69b
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:52:05 -06:00
Alex Lin
2c93f2ac75
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:44:30 -06:00
Alex Lin
4b28951c1c
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:40:05 -06:00
Alex Lin
0197df7103
Test output xml does not validate. #372
...
Removed the parent attribute.
2017-01-09 09:52:48 -06:00
Alex Lin
a831cbfaa8
Merge pull request #366 from iamthad/use_stderr
...
Use std::cerr instead of std::cout for error messages
2016-12-20 15:02:23 -06:00
Derek Bankieris
7a08829d3d
Introduce makefile variable TRICK_SYSTEM_LDFLAGS
...
Like other TRICK_SYSTEM variables, users should not modify this.
This renders TRICK_LDFLAGS and TRICK_USER_LINK_LIBS redundant. While we
would like to eventually remove TRICK_USER_LINK_LIBS, it's not likely to
ever actually happen.
Refs #369
2016-12-14 12:36:21 -06:00
Derek Bankieris
76f6a003b3
Add -std=c++11 to VariableServer Makefile
...
Refs #367
2016-12-14 10:06:01 -06:00
Derek Bankieris
634d561567
Fix VariableServerThread::var_units
...
Refs #367
2016-12-14 09:43:55 -06:00
Derek Bankieris
2c9181a896
Infer TRICK_HOME automatically
...
Refs #358
2016-12-13 15:29:15 -06:00
Thadeus Fleming
fb1925e0d8
Use std::cerr instead of std::cout for error messages
2016-12-10 11:49:44 -06:00
Derek Bankieris
d72a09fef7
Add ability to clear all variables from a DR group
...
Don't let "sys.exec.out.time" be removed
Refs #350
2016-11-29 13:38:32 -06:00
Derek Bankieris
d859ac8453
Add funciton to remove all data record groups
...
Refs #350
2016-11-29 11:47:10 -06:00
Derek Bankieris
ac3360e87f
Add ability to remove variable from data recording
...
For the record, I'd like to point out that many of the DataRecordGroup
functions shouldn't be called after init, but we don't prevent anyone
from doing so. Bad Trick!
Refs #350
2016-11-18 08:53:24 -06:00
Michael Vetter
18f0d7e871
Remove trailing whitespaces
...
Makes it easier to edit the files. So if we press 'end of line' we are
really at the end of line.
2016-11-08 10:25:07 +01:00
John M. Penn
1f75034da2
Merge branch 'master' of https://github.com/nasa/trick
2016-11-02 14:22:08 -05:00
John M. Penn
99c8b11709
Fix a memory leak in VariableServerThread_commands. Ref #333
2016-11-02 14:12:31 -05:00
Alex Lin
d875f837f2
ICG produces non-compilable io_* code for this weird example #334
...
When saving the list of namespaces and classes a particular type is contained in
we have to save the class name and any template args it includes separately. This
allows us to mangle the names easier. And we now search for type names to see
if they follow this pattern template_name<template_args>::embedded_class. If
we are using a template embedded class we need to create attributes for the embedded class.
2016-11-02 13:56:40 -05:00
Derek Bankieris
5484e39f11
Fix spacing in warning message
2016-10-21 10:50:11 -05:00
Derek Bankieris
4f49460a6f
Clean up io_* code #330
2016-10-20 14:55:00 -05:00
Derek Bankieris
f161ddb18c
Made everything about Trick's build process better
2016-10-06 13:54:06 -05:00
Dan D. Jordan
9e0f0ba85a
Added MonteVar setters where appropriate
...
Added set_unit mechanism to MonteVar baseclass. Added MonteVar's derived
classes setters where appropriate to facilitate changing inputs after
the instance of MonteVar has already been constructed. Fleshed out
MonteVarFile destructor to remove memory leaks.
2016-10-03 14:57:11 -05:00
Alex Lin
5c117bcfe3
python3 execution of standalone monte_input #314
...
In the monte carlo input files I added a test for python 2/3. If we are 3 run
exec(open("file").read()), else run execfile("file")
2016-09-26 09:26:43 -05:00
Derek Bankieris
ba59606b1d
Added TRICK_PYTHON_PATH environment variable #313
2016-09-16 09:20:11 -05:00
Alex Lin
b88ff45f94
Bad units specification [dB] #312
...
Added a conversion of [dB] to [1] for use in udunits.
2016-09-15 15:24:19 -05:00
Dan D. Jordan
70a4ad9e24
Fixed indexing problem when reducing number of monte carlo runs
...
When runs reduced via successive calls to set_num_runs, instead of using
pop_front() and front(), use pop_back() and back()
Refs #304
2016-09-08 13:53:44 -05:00
Alex Lin
3be6715eba
Merge tag '17.0.3'
...
Adding check for NULL char pointer before converting to string.
2016-09-06 13:58:54 -05:00
Alex Lin
c4a32600cc
Trick View: Can't set variables with -- units #301
...
Test before trying to convert NULL char * to string.
2016-09-06 13:53:37 -05:00
Alex Lin
eaa6f796d9
Merge tag '17.0.3'
...
Converting units incoming from the variable server.
2016-09-06 13:22:09 -05:00
Alex Lin
b32015a1ad
Trick View: Can't set variables with -- units #301
...
Called map_trick_units_to_udunits to convert incoming units to udunits.
2016-09-06 13:15:36 -05:00
John Penn
753d821329
Fix compilers warnings. Ref #300
2016-09-02 17:01:07 -05:00
Alex Lin
066554b2f7
Merge pull request #297 from ddj116/get_variable
...
MonteCarlo add_variable duplicate protection and get_variable functionality
2016-08-30 11:00:16 -05:00
Alex Lin
fa4664c4ea
Move the loop that waits for scheduled threads to finish out of advance_sim_time #292
...
2 problems found. Syncing scheduled threads was not happening at all because the job
was not being rescheduled. Did not want to deal with changing job call times so I
called the new scheuduled_thread_sync routine from advance_sim_time. That's where
it started, it'll be fine.
Also found that I was resetting job complete flags too aggressively. The check to
test if the thread is ready to run was missing. Added that check back in.
2016-08-30 10:56:18 -05:00
Dan D. Jordan
fdd442ba68
Added duplicate name protection on add_variable and get_variable
...
mechanism for getting MonteVar * derived types so that those dispersion
settings can be changed once they go out of scope.
2016-08-30 09:48:10 -05:00
Alex Lin
e3759ac594
Move the loop that waits for scheduled threads to finish out of advance_sim_time #292
...
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 08:42:53 -05:00