Commit Graph

1021 Commits

Author SHA1 Message Date
John M. Penn
008bc6a621 Merge branch 'master' of https://github.com/nasa/trick 2023-04-28 18:00:27 -05:00
John M. Penn
54e49f500d For DataTypes: Fix missing paren in EnumDataType.cpp. Tidy up makefile. 2023-04-28 17:55:38 -05:00
jmpenn
9438bd559b
Add unittests to cover uncovered code in MemoryManager ADEF_ and REF_… (#1483)
* Add unittests to cover uncovered code in MemoryManager ADEF_ and REF_ parsers.

* Remove the second production of the 'user_defined_type' target
because it is superfluous, and impossible to reach. This is
because the NAME token is defined as pattern : '[_a-zA-Z][_a-zA-Z0-9:]*'.
This pattern will always match a string of colon separated names.
Note that the NAME itoken is used for colon separated type-name as well as
colon separated variable names.

* Add a test to MM_declare_var_unittest that covers the HEX token in adef_parser.l.

* Add a unittest for MemoryManager_JSON_Intf.cpp.

* Tweak MM_JSON_Intf.cc to get better code-coverage.
2023-04-27 14:57:55 -05:00
Jacqueline Deans
6c685d8400
Revise Documentation, Correct a single constant (#1326) (#1489)
* Fix formatting, grammar, and syntax

Additionally, a sentence that referenced something that isn't used anywhere was removed.

* Promote headers, Format stuff

Many headers were far too deep. In some cases, the highest header was h4. To correct this, the offending headers were promoted once or twice as appropriate. Minor formatting changes were made, too.

* Fixed an incorrect conversion constant.

* Update library dependency explanation

The old explanation was confusing and seemingly self contradicting in places. This new explanation aims to fix that.

Co-authored-by: Matthew Elmer <m.elmer@mailbox.org>
2023-04-21 17:32:31 -05:00
Jacqueline Deans
d76de7e1ee
Allow for read only S_sie.resource (#1420) 2023-04-17 17:23:48 -05:00
Jacqueline Deans
6118171c01
Update swig interface to work python 3.11 (#1486) 2023-04-11 13:14:30 -05:00
John M. Penn
d3a26b5698 Deleting parameter_types.c. #1482 2023-04-10 12:46:58 -05:00
jmpenn
1b0def8886
Add unit test suite for trickTypeCharString(). (#1467)
* Add unit test suite for trickTypeCharString().

* Rewrite MM test Makefile, Address type warnings in tests.

* Fix test target in Makefile
2023-04-05 15:28:14 -05:00
ddj116
9099792947
Integrate MonteCarloGenerate capability from EG CML and associated TrickOps enhancements (#1415)
* Provide MonteCarloGenerate capability

Intermediate commit, this squash represents all of Isaac Reaves' work
during his Fall 2022 Pathways internship tour

[skip ci]

* TrickOps: Add phase, [min-max] range, and overhaul YAML verification

* Add new "phase:" mechanism to TrickOps Runs and Builds to support
  project-specific constraints on build and run ordering
  - phase defaults to zero if not specified and must be between -1000
    and 1000 if given.
  - jobs can now optionally be requested by their phase or phase range
  - See trickops/README.md for details
* Add [min-max] notation capability to run: entries and compare: entries
  - [min-max] ranges provide definition of a set of runs using a common
    numbering scheme in the YAML file, greatly reducing YAML file size
    for monte-carlo and other zero-padded run numbering use cases
  - See trickops/README.md for details
* YAML parsing changes
  - Overhaul the logic which verifies YAML files for the expected
    TrickOps format. This is now done in TrickWorkflowYamlVerifier and
    provides much more robust error checking than previous approach
  - .yaml_requirements.yml now provides the required types, ranges, and
    default values as applicable to expected entries in YAML files
  - valgrind: is now an sub-option to run: entries, not its own section
    Users should now list their runs normallly and define their flags in
    in that run's valgrind: subsection
  - parallel_safety is now a per-sim parameter and not global. Users
    should move their global config to the sim layer
  - self.config_errors is now a list of errors. Users should now
    check for empty list when using instead of True/False
* Robustify the get_koviz_report_jobs unit test to work whether koviz
  exists on PATH or not
* Adjust trickops.py to use the new phase and range features
   - Make it more configurable on the command-line via argparse
   - Move SIM_mc_generation tests into test_sims.yml

[skip ci]

* Code review and cleanup from PR #1389

Documentation:

* Adjust documentation to fit suggested symlinked approach. Also
  cleaned up duplicate images and old documentation.
* Moved the verification section out of markdown and into a PDF since it
  heavily leverages formatting not available in markdown.
* Clarify a couple points on the Darwin Trick install guide
* Update wiki to clarify that data recording strings is not supported

MCG Code:

* Replace MonteCarloVariableRandomNormal::is_near_equal with new
  Trick::dbl_is_near from trick team

MCG Testing:

* Reduce the set of SIM_mc_generation comparisons. After discussion
  the trick team, we are choosing to remove all comparisons to
  verif_data/ which contain random-generated numbers since
  these tests cannot pass across all supported trick platforms.
* Fix the wrong rule on exlcuding -Werror for Darwin builds
  of SIM_mc_generation
* Remove data recording of strings in SIM_mc_generation

Trickops:

* Replace build_command with build_args per discussion w/ Trick team
  Since we only support arguments to trick-CP, replace the build_command
  yaml entry with build_args
* Disable var server connection by default in SingleRun if TrickWorkflow.quiet
  is True
* Guard against multiple Job starts
* Remove SimulationJob inheritance layer since old monte-carlo wasn't
  and never will be supported by TrickOps
* Ignore IOError raise from variable_server that looks like "The remote
  endpoint has closed the connection". This appears to occur when
  SingleRun jobs attempt to connect to the var server for a sim that
  terminates very early

[skip ci]

* Adjust phasing of old/new MCG initialize functions

* Clarify failure message in generate_dispersions if new/old MC are both
  used.
* Adjust the phasing order of MCG intialize method to be before
  legacy MC initialized. Without this, monte-carlo dry run completes with
  success before the check in generate_dispersions() can run
* Add -Wno-stringop-truncation to S_override.mk for SIM_mc_generation
  since gcc 8+ warns about SWIG generated content in top.cpp

* Introduce MonteCarloGenerationHelper python class

This new class provides an easy-to-use interface for MCG sim-module
users:

1. Run generation
2. Getting an sbatch array job suitable for SLURM
3. Getting a list of SingleRun() instances for generated runs, to be
   executed locally if desired

---------

Co-authored-by: Dan Jordan <daniel.d.jordan@nasa.gov>
2023-03-06 09:25:50 -06:00
jmpenn
9b3e6aac51
Update README.md
Fix title of Trick::flt_is_near
2023-03-03 13:30:52 -06:00
Jacqueline Deans
5f6a5de070
Expand SIM_test_varserver (#1459)
* Add tests for alternate ways to open VS port

* Don't connect to varserv when quiet=true in trickops

* Add print to try to help debug hanging trickops test

* Handle multicast connect failures gracefully

* Multicast is disabled by default on mac

* Forgot an important return value

* Take away retries

* Fix issue with restart test

* Revert trickops debugging changes

* Remove debugging accidentally left in [no ci]

* whoops

* Allow retries

* Update trickops.py

* sim test adjustments

* Add docs [no ci]

* wording [no ci]

* Cleanup

* Remove large messages, test that one in unit tests
2023-02-24 14:44:55 -06:00
Jacqueline Deans
a8c9572186
Correct check for unsupported types in data recording (#1458) 2023-02-16 16:27:47 -06:00
Jacqueline Deans
2fa5cdfc77
Fix checkpointing of empty string array - 1399 patch (#1456) 2023-02-14 09:33:42 -06:00
jmpenn
9478b6a442
Fix mm_mutex locking and unlocking fiasco in clear_all_vars. #1452 (#1455) 2023-02-10 14:06:27 -06:00
Jacqueline Deans
9c7becb4ff
Handle thread shutdown gracefully and test (#1448)
---------

Co-authored-by: Dan Jordan <daniel.d.jordan@nasa.gov>
2023-02-08 17:58:59 -06:00
Jacqueline Deans
930dfbc683
Add check and warning for unsupported types in data recording (#1441) 2023-02-07 16:41:53 -06:00
Jacqueline Deans
8be3e30f7a
Fix Mac pipeline (#1454) 2023-02-07 15:35:22 -06:00
Jacqueline Deans
fb25ea70d2
Fix undefined behavior in vs_format_ascii (#1446) 2023-02-07 13:11:51 -06:00
Alex Lin
a48b39bfc1
Make ICG compatible with clang/llvm 15 #1449 (#1450)
Made a couple of changes in ICG source code to handle clang API differences.  Encapsulated
differences in ifdefs.  Added libclangSupport to ICG link line.
2023-02-07 12:46:34 -06:00
jmpenn
afbc78c5e7
Initial commit of compareFloatingPoint utils. (#1443)
* Initial commit of compareFloatingPoint utils.

* Update .gitignore to properly ignore unittest executables.
2023-02-01 15:54:31 -06:00
Jacqueline Deans
5ff52a01c5
Add option to terminate sim on python event error (#1434) 2023-01-20 15:46:10 -06:00
Jacqueline Deans
807161b19c
Fix 32 bit pipeline (#1430) 2023-01-16 15:54:23 -06:00
Jacqueline Deans
77fa8d78b0
Time tic precision fix and test (#1428) 2023-01-16 08:29:41 -06:00
Jacqueline Deans
97cf685b6a
Parser and test for var_binary (#1425) 2023-01-11 09:27:30 -06:00
Jacqueline Deans
cb89e4dd7e Update version numbers to prerelease 19.6.0-beta 2022-11-29 16:58:30 -06:00
Jacqueline Deans
0f4ca88da6 Update version numbers for Trick Simulation Environment 19.5.1 2022-11-29 16:56:55 -06:00
Jacqueline Deans
86b0bc9d39
Fix undefined behavior in vs_format_ascii (#1409) 2022-11-29 16:29:54 -06:00
Jacqueline Deans
d0f679b31a update version numbers to prerelease 19.6.0-beta 2022-11-17 16:00:00 -06:00
Jacqueline Deans
e86e7fd968 update version numbers for Trick Simulation Environment 19.5.0 2022-11-17 15:54:02 -06:00
jmpenn
2a03ff5cf4
Replace sprintf with snprintf in all of Trick source. #1384 (#1392)
* Replace sprintf with snprintf in all of Trick source. #1384

* Don't add -Werror for MacOS because of deprecated sprintf warnings which we cant get rid of because SWIG. #1384

* Fixed an unbalanced parenthesis in S_overrides.mk. #1384
2022-11-15 15:00:05 -06:00
Jacqueline Deans
9d305fec09
Add a way to disable sim objects (#1364)
* Add set_sim_object_jobs_onoff, get_sim_object_on_off, and change set_sim_object_onoff to preserve the on/off status of jobs
2022-11-15 09:16:08 -06:00
Isaac Rowe
4cd6da34d8
Ensure MC slaves are set to ready after timeouts (#1370)
Co-authored-by: Isaac Rowe <isaac.s.rowe@nasa.gov>
2022-11-07 15:32:53 -06:00
Jacqueline Deans
1cf4ef58ad
Stop attaching a debugger on segfault on Mac (#1383) 2022-11-07 15:27:00 -06:00
Scott Fennell
d0511e8fb9
1372 use temporary job pointer instead of modifying curr_job in exec_set_time_tic_value
* add integration test sim SIM_exec_set_time_tic_value
* use temporary job pointer instead of modifying curr_job in exec_set_time_tic_value
closes #1372
2022-10-28 17:19:54 -05:00
Jacqueline Deans
900f7b18be
Generate test coverage and use Coveralls for tracking and visualization (#1366)
* Add code-coverage make target and github actions workflow
* Upload coverage to coveralls
* Add coverage badge to readme
* Fix some test makefiles to correctly propagate flags
2022-10-13 14:23:16 -05:00
Jacqueline Deans
2519c914a5
Pair checkpointing fix (#1356)
* Fix pair checkpointing bug, add tests
* Documentation update
2022-10-07 17:00:09 -05:00
Jacqueline Deans
3d2e8e52ca
Set checkpointing fix (#1357)
* Fix set checkpointing, add tests
* Documentation update
2022-10-07 14:24:21 -05:00
Jacqueline Deans
f19ba7df78
Test and Document STL Checkpointing (#1355)
* Updates SIM_stl to include checkpoint writing and checkpoint restore, as well as adding more data structures to test
* Thoroughly tests supported STL types with MM_stl_checkpoint and MM_stl_restore
* Adds an option to enable or disable STL restore in accessible interfaces and changes default to true
* Updates documentation on STL checkpointing to clearly state limitations and known bugs
2022-10-07 08:37:09 -05:00
John M. Penn
8eea9e9ab9 Make MemoryManager::reset_memory and class destructors coordinate the deletion of objects. #1348 2022-09-26 16:54:41 -05:00
Scott Fennell
d5e8dae6dc
#1344 increase retry count for maven (#1345)
#1344
2022-09-19 15:10:32 -05:00
Thomas Brain
e476f1fa9b Destructor restart fixes 2022-09-01 09:37:15 -05:00
Thomas Brain
32c409e139 Fix clearing arrays of strings 2022-08-24 16:59:13 -05:00
Thomas Brain
8132c00165 Fix issue with writing to an array of std::strings. Use sizeof(std::string) instead of sizeof(char *). 2022-08-24 09:53:57 -05:00
Jacqueline Deans
9c8799610f
Variable Server - var_send_once and integration test (#1330)
* Adds the send_once command and message type, which allows a user to request a variable to be sent immediately and only once (intended to replace the var_add, var_send, var_clear idiom that is commonly used for this purpose)
* Minor refactoring of variable server internals to reduce repeated code
* Adds SIM_test_varserv to integration test to test basic variable server functionality
* Changes graphics client for SIM_billiards to use var_send_once as an example of intended use
* Add documentation for var_send_once in docs and tutorial
* Set exit_code_enabled in trick unit tests to be true by default
* Patch for failing bookworm build
2022-08-18 10:47:07 -05:00
Scott Fennell
c390ca5ba6
replace GTEST_HAS_TR1_TUPLE with -std=c++11 (#1331) 2022-08-11 15:10:29 -05:00
Jacqueline Deans
77dae99fc8
Race condition patch (#1329)
* Add patch for an uncommon bug where some data recording threads hang forever
2022-08-10 13:10:18 -05:00
John M. Penn
58cbf24d5a Remove 2 arg delete_var unit test case. #1301 2022-07-28 16:43:26 -05:00
John M. Penn
d94d5fc863 Remove destroy flag from MemoryManager::delete_var(). #1301 2022-07-28 15:00:55 -05:00
Scott Fennell
2dd12fcbb6
#1315 parse websocket msg len for correct data (#1316)
closes #1315
2022-07-27 08:40:40 -05:00
Jacqueline Deans
61a378553d update version numbers to prerelease 19.5.0-beta 2022-07-20 16:53:18 -05:00
Jacqueline Deans
9363603f0f update version numbers for Trick Simulation Environment 19.4.0 2022-07-20 16:47:07 -05:00
Scott Fennell
3cd2a1606f
1308 gcc ver (#1309)
* add correct GCC verno to ICG for llvm >= 10

Co-authored-by: Jacqueline Deans <jndeans@jslal0520121056.jsc.nasa.gov>
Co-authored-by: Deans <jdeans289@gmail.com>
2022-07-20 11:38:42 -05:00
Derek Bankieris
8fcd83e5e1 Omit cv_convert_double for trivial conversions
Refs #982
2022-07-08 12:32:43 -05:00
Scott Fennell
ed95f22ecf revert changing stageTime in VariableServerSession 2022-06-29 14:49:55 -05:00
Scott Fennell
284ea8521a
1297 civet enum (#1298)
* include freeze time tics in calculation for websocket data intervals

* add enum type to web server types

closes #1297
2022-06-29 13:52:15 -05:00
Scott Fennell
866c21d5a5
include freeze time tics in calculation for websocket data intervals (#1296) 2022-06-28 17:20:50 -05:00
Deans
cad38de0d6 Fix typo in ProductVar.java 2022-06-27 16:17:48 -05:00
dependabot[bot]
de914d9fb6
Bump eventsource from 1.0.7 to 1.1.1 in /trick_source/web/dashboard (#1276)
Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.0.7 to 1.1.1.
- [Release notes](https://github.com/EventSource/eventsource/releases)
- [Changelog](https://github.com/EventSource/eventsource/blob/master/HISTORY.md)
- [Commits](https://github.com/EventSource/eventsource/compare/v1.0.7...v1.1.1)

---
updated-dependencies:
- dependency-name: eventsource
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-13 10:43:03 -05:00
Scott Fennell
ac79af0358
1283 apple silicon (#1286)
* llvm assert fix #1283 #1284 

* add UDUNITS link flags to DPX test #1283 #1285

closes #1283
closes #1284
closes #1285
2022-06-13 09:56:17 -05:00
Scott Fennell
33d2a53e12
1279 llvm 14 (#1282)
* traverse enum type on llvm 14 #1279
2022-06-09 09:42:06 -05:00
dependabot[bot]
32339908fa
Bump lodash from 4.17.14 to 4.17.21 in /trick_source/web/dashboard (#1246)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.14 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.14...4.17.21)

---
updated-dependencies:
- dependency-name: lodash
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-01 13:57:49 -05:00
Alex Lin
afa71dbec9
JIT Compilation Fails on MacOS #1262 (#1263)
Adding compiler flag for mac to allow undefined symbols in shared library
closes #1262
2022-06-01 13:57:32 -05:00
Scott Fennell
83652ad811
#660 sanitize hyphen in attributes (#1267)
closes #660
2022-05-25 13:08:11 -05:00
Scott Fennell
878b895588 #1260 change get_user_tag_ref to const because its the right thing to do 2022-05-17 12:08:13 -05:00
Scott Fennell
3bece7f73e
#1260 access c_str of reference not temporary value for var_server_get_user_tag (#1264)
closes #1260
2022-05-17 11:42:08 -05:00
Scott Fennell
5e987a8bd9
iss #1256 add new enum type description identifier 'unnamed' to strings to look for when identifying anonymous enum (#1257) 2022-04-25 16:02:17 -05:00
Scott Fennell
749d3db8ef
Add rpath for llvm (#1254)
Co-authored-by: Fennell, Scott P 263712616 <scott.p.fennell@nasa.gov>
2022-04-14 10:53:16 -05:00
Alex Lin
496de8c7a9
Disambiguate python use #1250 (#1251)
* Disambiguate python use #1250

Changed all calls to /usr/bin/python to /usr/bin/env python3.  Removed execute permissions on a lot of files that are not executable.

closes #1250
2022-03-22 15:15:40 -05:00
John M. Penn
792e0bc48f Fix typos in interpolator README. #1240 [skip ci] 2022-03-15 14:27:07 -05:00
John M. Penn
e9f58c32f8 Document exeption from Trick::Interpolator.eval() #1240 2022-03-15 12:01:20 -05:00
John M. Penn
f3c00ee5c0 Add documentation for the Trick::Interpolator class with examples. #1240
[skip ci]
2022-03-15 11:09:06 -05:00
dependabot[bot]
270fa52a54
Bump postcss from 7.0.17 to 7.0.39 in /trick_source/web/dashboard (#1231)
Bumps [postcss](https://github.com/postcss/postcss) from 7.0.17 to 7.0.39.
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/7.0.39/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.17...7.0.39)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
...

[skip ci]

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-28 16:14:33 -06:00
dependabot[bot]
9868aef511
Bump follow-redirects in /trick_source/web/dashboard (#1227)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.7.0 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.7.0...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

[skip ci]

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-28 16:14:19 -06:00
dependabot[bot]
a18ad025a8
Bump ajv from 6.10.2 to 6.12.6 in /trick_source/web/dashboard (#1226)
Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.10.2 to 6.12.6.
- [Release notes](https://github.com/ajv-validator/ajv/releases)
- [Commits](https://github.com/ajv-validator/ajv/compare/v6.10.2...v6.12.6)

---
updated-dependencies:
- dependency-name: ajv
  dependency-type: indirect
...

[skip ci]

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-28 16:14:05 -06:00
dependabot[bot]
fb49b5b6ed
Bump handlebars from 4.1.2 to 4.7.7 in /trick_source/web/dashboard (#1225)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.7.7.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.1.2...v4.7.7)

---
updated-dependencies:
- dependency-name: handlebars
  dependency-type: indirect
...

[skip ci]

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-28 16:13:50 -06:00
dependabot[bot]
615f7fe264
Bump tmpl from 1.0.4 to 1.0.5 in /trick_source/web/dashboard (#1221)
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

[skip ci]

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-28 16:13:37 -06:00
dependabot[bot]
036e0c54fc
Bump ws from 5.2.2 to 5.2.3 in /trick_source/web/dashboard (#1220)
Bumps [ws](https://github.com/websockets/ws) from 5.2.2 to 5.2.3.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/5.2.2...5.2.3)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

[skip ci]

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-28 16:13:17 -06:00
dependabot[bot]
088c210fbf
Bump url-parse from 1.4.7 to 1.5.10 in /trick_source/web/dashboard (#1233)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.4.7 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.4.7...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

[skip ci]

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-28 16:12:42 -06:00
Fennell, Scott P 263712616
7b85aa6632 Trick Simulation Environment 23.0.0-beta 2022-02-08 15:07:01 -06:00
Fennell, Scott P 263712616
a317c22274 Trick Simulation Environment 19.3.1 2022-02-08 10:46:10 -06:00
Scott Fennell
0d60ef0b6f
iss #1219 #1223 #1224 reference ignored in name from address (#1222)
* #1219 added code to check reference mod bit in ClassicCheckPointAgent::getCompositeSubReference, use reference width instead of size.

* #1219 refactor getCompositeSubReference for readability

* #1219 and #1223 add reference width to mod bits in ICG

* check for mod bits in TRICK_STRUCTURED section, refactor function

* #1219 adding MM_ref_name_from_address tests

* #1224 fix logic for offset into arrayed struct

closes #1219 closes #1223 closes #1224 

Co-authored-by: Fennell, Scott P 263712616 <scott.p.fennell@nasa.gov>
2022-02-08 09:59:26 -06:00
Scott Fennell
d6d7301d77
#1215 add a warning when var_set can't find ref_attribute for variable name (variable doesn't exist) (#1216)
Co-authored-by: Fennell, Scott P 263712616 <scott.p.fennell@nasa.gov>
closes #1215
2022-01-18 11:40:59 -06:00
Scott Fennell
1315db14a4
1201 icg nocomment file and dir (#1202)
* #1201 make icg_nocomment variable work with files as well as dirs

closes #1201
2021-11-16 19:03:35 -06:00
Penn, John M 047828115
8657acb3dc Fix inclusion of CivetServer.h. #1188 2021-10-19 13:41:42 -05:00
Scott Fennell
087c98ce01
1191 monte exit code (#1196)
* #1191 refactor monte exit_string_status and fix char*[] array values

closes #1191
2021-10-18 16:08:47 -05:00
Penn, John M 047828115
5b3770d15a Fix civetweb header inclusion problem. #1188 2021-10-18 11:32:33 -05:00
Penn, John M 047828115
1179703b6d Refactor civitweb linkage #1188 2021-10-14 18:17:04 -05:00
Scott Fennell
4a9d9482ef
1194 trick system icg exclude (#1195)
* Fix ICG errors while processing system header files closes #1189

Found an InitPreprocessor call and am using it.  Not sure which version
of clang it was added, just using for the version I'm on (10) and above.
Also found some GCC defines that are used during normal compilation.
Added these to our list of defines during ICG.  This clears up all of
the errors I've been seeing.

* Fix ICG errors while processing system header files #1189

OK, found the flag that activates the ATOMIC defines I was previously
hardcoding.

* #1194 add trick-system-icg-exclude

Co-authored-by: Alex Lin <alexander.s.lin@nasa.gov>
2021-10-12 12:02:03 -05:00
Alex Lin
9f9fd7ca20
Fix ICG errors while processing system header files #1189 (#1190)
* Fix ICG errors while processing system header files #1189

Found an InitPreprocessor call and am using it.  Not sure which version
of clang it was added, just using for the version I'm on (10) and above.
Also found some GCC defines that are used during normal compilation.
Added these to our list of defines during ICG.  This clears up all of
the errors I've been seeing.

* Fix ICG errors while processing system header files #1189

OK, found the flag that activates the ATOMIC defines I was previously
hardcoding.
2021-10-12 11:30:49 -05:00
Derek Bankieris
40ef4acfe3 Always requeue timed-out MonteCarlo runs
Closes #1192
2021-10-07 10:27:08 -05:00
Penn, John M 047828115
0b373d96cf Refactor web server configuration. #1188 2021-09-29 18:00:33 -05:00
Penn, John M 047828115
2153eaa6f0 Add print statement back to configure. Tidy up GridLayout instnciation. #28 #1183 2021-08-30 12:30:35 -05:00
Scott Fennell
82c55d405d
Merge master into branch to fix web server tests (#1185)
* suppress warning for detached head during civitweb clone

closes #1180

* disable sigchld handler by default #931 (#1182)

* disable sigchld handler by default #931

* update test to set sigchld trap before testing

closes #931

* Fixed webserver http_alloc test (#1184)

Co-authored-by: cherpin00 <44306236+cherpin00@users.noreply.github.com>
2021-08-28 16:20:34 -05:00
Penn, John M 047828115
e487e5609f Initial excision of DMTCP from Trick. #28 2021-08-27 19:38:56 -05:00
Penn, John M 047828115
4c52ed2753 Merge Caleb Herpins port of Trick webserver from Mongoose to CivetWeb #730. 2021-08-18 13:15:10 -05:00
Penn, John M 047828115
db45886625 Clock spin test can't assume code performance on an arbitrary machine. #87 2021-08-04 10:51:52 -05:00
Penn, John M 047828115
0825b32118 Up the allowance for time difference in GetTimeOfDayClock_test spin test. #87 2021-08-02 12:25:31 -05:00
Penn, John M 047828115
93b683540d Fix GetTimeOfDayClock_test for race condition. #87 2021-08-02 11:49:39 -05:00
Penn, John M 047828115
0b823bb6f2 Remove BC635Clock.hh and TPROCTEClock.hh from sim_services.i #87 2021-08-02 03:03:32 -05:00
Penn, John M 047828115
6df675c7ee Remove deprecated Clocks and unit tests, and update Trick::Clock documentation. #87 2021-08-02 00:40:55 -05:00
Fennell, Scott P 263712616
68cf81736c Trick 19.4.0 Pre-release ver no 2021-06-23 11:49:41 -05:00
Fennell, Scott P 263712616
15534f7f56 Trick Release 19.3.0 2021-06-23 11:39:47 -05:00
dependabot[bot]
2f51afe197
Bump pdfbox from 2.0.15 to 2.0.24 in /trick_source/java (#1162)
Bumps pdfbox from 2.0.15 to 2.0.24.

---
updated-dependencies:
- dependency-name: org.apache.pdfbox:pdfbox
  dependency-type: direct:production
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-23 11:33:57 -05:00
Derek Bankieris
9b7e18af15 Create link_list files for Trickification
ICG and make_makefile_swig create py_link_list and io_link_list files
listing the files to be linked during sim builds. Trickified projects
require slightly altered lists.

Fixes #1155
2021-06-02 13:56:21 -05:00
Scott Fennell
a88f38b55c
Fix unit test name (RankineToCelsius)
Co-authored-by: Tobias Nießen <tniessen@users.noreply.github.com>
2021-06-01 13:26:21 -05:00
Scott Fennell
acdc60050c
change c_intf ref_attributes param to const char ptr, remove casts from calls to function in trick (#1135)
closes #1129 

Co-authored-by: Fennell, Scott P 263712616 <scott.p.fennell@nasa.gov>
2021-05-26 22:12:02 -05:00
Derek Bankieris
8d314fa1b1 Zip SWIG-generated python modules
Closes #1144
2021-05-19 17:23:33 -05:00
Scott Fennell
b4d76559eb
edit call to setLangOpts in icg main.cpp to support llvm-12 interface #1138 (#1139)
closes #1138
2021-04-30 11:15:38 -05:00
Penn, John M 047828115
edcacba00f Give trick-dre the capability to expand arrayed variables like trick-tv. #381 2021-04-29 14:29:18 -05:00
Scott Fennell
d75faecff8
add missing lock/unlock on pthread map mutex to VariableServer::shutdown fixes #1133 (#1134)
closes #1133
2021-04-26 23:28:26 -05:00
Scott Fennell
9589c1062c
in ICG: Add FileSkipped preprocessor callback to FindTrickICG (#1125)
* #608 add implementation of FileSkipped callback to FindTrickICG to add include chains for headers that have already been preprocessed

* #608 add test SIM for FindTrickICG offsets SIM_test_icg_file_skipped
2021-04-19 19:34:17 -05:00
Scott Fennell
6356a87b9f
Update DataRecordGroup.cpp (#1124) 2021-04-09 07:57:16 -05:00
Fennell, Scott P 263712616
35014fc69f fix mm delete var bug #1093 2021-04-06 19:12:18 -05:00
jmpenn
334f8859da
Update Tutorial.md 2021-03-30 10:39:30 -05:00
Penn, John M 047828115
cfc7210f52 Update SAIntegrator tutorial for RKF45. #1123 2021-03-30 09:59:20 -05:00
Scott Fennell
f439d95775
Void ptr external application (#1121)
* #1119 allocate using memory manager

* #1119 replace void* vector with char* vector in external application

Co-authored-by: Fennell, Scott P 263712616 <scott.p.fennell@nasa.gov>
2021-03-25 13:17:21 -05:00
Fennell, Scott P 263712616
92ad2a8063 reapply prerelease version numbers to master branch 2021-03-12 13:49:27 -06:00
Fennell, Scott P 263712616
7b933255aa Trick Release 19.2.3 2021-03-12 13:42:49 -06:00
Scott Fennell
6691b14e9e
1093 c str (#1119)
* update checkpoint_map.hh #1093

* #1093 update checkpoint_pair.hh

* #1093 update checkpoint_queue.hh

* #1093 update MM_write_checkpoint.cc

* #1093 update units_attach.i

* #1093 update checkpoint_sequence_stl.hh

* #1093 update checkpoint_stack.hh

* #1093 update swig_extend_str.i

* #1093 update swig_int_templates.hh

* #1093 update checkpoint_stack.hh and swig_int_typemap.i

* #1093 fix c_str issue without adding memory leaks

* #1093 fix c_str issue without adding memory leaks

* #1093 remove dangling pointers in injector sim object (without causing memory leaks)

* #1093 remove dangling pointers in injector sim object (without causing memory leaks)

* #1093 remove dangling pointers in Event Manaager sim object (without causing memory leaks)

* #1093 fix MonteCarlo_c_intf dangling pointers

Co-authored-by: Fennell, Scott P 263712616 <scott.p.fennell@nasa.gov>

closes #1093
2021-03-12 13:23:35 -06:00
Penn, John M 047828115
a5e67ae3a9 SAIntegrator: Add RKF45Integrator_unittest. #1114 2021-03-02 13:23:26 -06:00
Derek Bankieris
10b16d9f31 Check paths against TRICK_HOME in HeaderSearchDirs
Closes #1115
2021-03-02 12:43:10 -06:00
Penn, John M 047828115
c82ff9a72b SAIntegrator: Add gitignore file for unittest directory. 2021-02-25 23:00:11 -06:00
Penn, John M 047828115
b1c22f2b14 SAIntegrator: Add gitignore files. 2021-02-25 22:58:39 -06:00
Penn, John M 047828115
b67612e506 SAIntegrator: update examples makefile to add AsteroidFlyBy. #1114 2021-02-25 12:00:15 -06:00
Penn, John M 047828115
a2a3ff1dcc SAIntegrtor: Add example sim for RKF45 called AsteroidFlyBy. #1114 2021-02-24 22:40:56 -06:00
Penn, John M 047828115
e696254bc5 SAIntegrator: Add getLastStepSize() method to RKF45Integrator. #1114 2021-02-24 22:38:35 -06:00
Penn, John M 047828115
320ff5915a adaptive_step shoould return next_h, not default_h. #1114 2021-02-22 17:23:50 -06:00
Penn, John M 047828115
8e3f99e4fe SAIntegrator: Add Runge-Kutta-Fehlberg 4(5), an adaptive step-size integrator. #1114 2021-02-22 17:17:29 -06:00
Penn, John M 047828115
ae9ecf2196 Make intermediate work variables local to step functions, and simplify constructors, destructors, copy-constructors, and assignment opertors. #1113 2021-02-22 16:48:13 -06:00
dbankieris
25d91e7852
Merge pull request #1111 from nasa/1110
Call follow_address_path for DR_Changes triggers
2021-02-22 12:29:02 -06:00
Derek Bankieris
c428bce49d Add support for references in MM::ref_name
Add an AO_DEREFERENCE ADDRESS_NODE to R->address_path and dereference the
address for REF2->address
2021-02-11 17:36:43 -06:00
Derek Bankieris
8e3726eb98 Mark references as such in ICG 2021-02-11 17:36:43 -06:00
Derek Bankieris
1506063a05 Call follow_address_path for DR_Changes triggers
Closes #1110
2021-02-11 15:38:47 -06:00
Scott Fennell
c0791b46d9
icg default constructor is deleted (#1109)
* check if default constructor is deleted #1094

* unit test icg deleted default constructor #1094

* Update centos 7 swig version to 3.0 to support deleted function in SIM_deleted_default_constructor test

Co-authored-by: Fennell, Scott P 263712616 <scott.p.fennell@nasa.gov>

closes #1094
2021-02-05 19:32:36 -06:00
Penn, John M 047828115
7f045f0d72 Fix missing link in the SAIntegrator Tutorial. #1097 2021-01-27 13:18:52 -06:00
Penn, John M 047828115
7d9c0e00ff Tag code blocks as being C++ for proper code coloring. #1097 2021-01-27 13:06:28 -06:00
Penn, John M 047828115
0facb73c7d Add SAIntegrator Tutorial. #1097 2021-01-27 12:49:45 -06:00
Penn, John M 047828115
b929c62d77 Update SAIntegrator README.md. #1097 2021-01-27 12:48:32 -06:00
Penn, John M 047828115
b190ade246 Update makefile to build new SAIntegrator examples. #1097 2021-01-27 12:47:08 -06:00
Penn, John M 047828115
8e8f761afb Use -std=c++11 to compile SAIntegrator. #1097 2021-01-27 12:45:08 -06:00
Penn, John M 047828115
7ce4514f74 Add include guards to Rootfinder.hh. #1097 2021-01-27 12:42:02 -06:00
Penn, John M 047828115
8a015b3621 Update MassSpringDamper example for the Tutorial. #1097 2021-01-27 12:39:52 -06:00
Penn, John M 047828115
e317b8e7f6 Update DoubleIntegral example for the Tutorial. #1097 2021-01-27 12:36:07 -06:00
Penn, John M 047828115
f87c432bd4 Add DefiniteIntegral example for Tutorial. #1097 2021-01-27 12:30:36 -06:00
Penn, John M 047828115
b5a33b1b44 Add BouncyCannonBall example to demonstrate dynamic events. #1097 2021-01-27 12:27:01 -06:00
Penn, John M 047828115
2be2aac0e3 Update the CannonBall example for the Tutorial. #1097 2021-01-27 12:22:16 -06:00
Penn, John M 047828115
99f42bb6c4 Add new integrator constructors in SAIntegrator #1096 2021-01-27 12:09:33 -06:00
Fennell, Scott P 263712616
be407eaf13 Update version numbers to pre-release for 19.3.0 2021-01-11 13:59:31 -06:00
Fennell, Scott P 263712616
e0be091c7e Trick Release 19.2.2 2021-01-11 13:57:14 -06:00
Penn, John M 047828115
69b8d2f0ad Spiff up SAInteger Cannonball sim example, like the other examples. 2021-01-06 17:17:49 -06:00