6 Commits

Author SHA1 Message Date
M-Herr
165c3a690c
Added interface file includes for C++ types supported by swig (#1853)
* Added interface file includes for C++ types supported by swig

* Testing swig interface includes

* Inital pass at testing STL access via input file for swig interface file update

* Updated test comparison for keys() return function that swig generates for std::map. Added SIM_test_ip_stl to the trickops yml file

* Updated trick_swig.i to remove redundant includes

* Renamed input file for SIM_test_ip_stL

* Added typemap so swig can convert from C++ std::string pointer to python string

* Commented out some %include .i files. Also commented out %import for unordered_map as not supported by swig3 in the test code.

* Removed duplicated includes and added checking swig version for some .i files.

* Moved std_sstream.i to the right place as the order matters.

* Moved all work in progress .i files in swig 3 to swig 4 block.

* Removed unused files and added proper purposes for header files.

* Updated vector of char16_t and char32_t tests.

---------

Co-authored-by: Hong Chen <hchen99@users.noreply.github.com>
Co-authored-by: mherr <mherr@pop-os.lan>
2025-05-20 15:24:03 -05:00
Pherring04
a9aa7088ad
SWIG 4 Template Directive Changes (#1741)
* Updated convert_swig to account for template directive changes in SWIG 4

* Fixed merge issues

* Merge cleanup
2024-07-23 11:45:37 -05:00
Hong Chen
a1d151c4c3
Updated not to always pass disown flag for swig pointer conversion instead base on "own" value of the input object. (#1690) 2024-05-23 10:37:27 -05:00
Alex Lin
4ab584ed55 Support using Python 3
Fixed the configure script to allow the user to specify using a python3
interpreter.  Had to change the the way to load the swig generated python modules.
Also had to change code dealing with python strings, oct, long, and
boolean operations.

refs #258
2016-06-28 13:44:21 -05:00
Alex Lin
d7569bf9f2 Use udunits package for units conversions
Some individual tests in SIM_test_ip were still failing because the conversion
between lb and kg has a different number of digits now.

refs #231
2016-05-11 10:56:33 -05:00
Alex Lin
90fd0ff9f8 Split test sims and fun sims into separate directories.
Moved SIM_test_ip and a couple of other sims that depend on the same model set
to a new test directory.  I'm doing a couple of sims at a time.

refs #191
2016-02-23 10:23:55 -06:00