Ray Speth
922402575a
Deprecate unused methods of class Transport
2023-03-13 22:58:24 -05:00
Ray Speth
26578861d2
Deprecate unused/redundant methods of class Kinetics
2023-03-13 22:58:24 -05:00
Ray Speth
a69206c724
Deprecate unused methods of class ThermoPhase
2023-03-13 22:58:24 -05:00
Ray Speth
d1a57424d7
Deprecate unused methods of class Phase
2023-03-13 22:58:24 -05:00
Ingmar Schoegl
5cd3d8a29a
[test_problems] Remove checks for legacy VS versions
...
_MSC_VER < 1900 corresponds to 1800 and earlier, which is
VC++ version 12.0 (Visual Studio 2013). Cantera now uses the C++17
standard, with the current minimum requirement VC++ version 14.1
(Visual Studio 2017).
2023-03-10 13:39:22 -06:00
Ingmar Schoegl
df5fa549ff
[SCons] Redirect test-clib-demo
2023-03-10 13:39:22 -06:00
Ingmar Schoegl
9511b5e0a7
[samples] Simplify clib demo
2023-03-10 13:39:22 -06:00
Ingmar Schoegl
32a6aa43e6
[samples] Move clib-demo to samples/clib/demo.c
2023-03-10 13:39:22 -06:00
Ray Speth
5d247d0031
Fix assertions in clib_test
2023-03-09 11:01:23 -06:00
Ray Speth
172b323531
Replace boost::any with std::any
...
Since we no longer need to "hide" the Boost usage, we can make the
std::any member of AnyValue a regular member variable rather than
a pointer, which simplifies a few things.
2023-03-09 11:01:23 -06:00
Ray Speth
19d99b227c
[Test] Disable occasionally-failing TestReactor.test_advance_with_limits
...
Depending on the output times given to Reactor.advance, specified limits
on the change in one or more state variables can be exceeded by a wide
margin.
See #1453
2023-03-09 11:01:23 -06:00
Ingmar Schoegl
0cb25ab4b4
[samples] Update cmake standard to C++17
2023-03-09 11:01:23 -06:00
Ray Speth
7a69a67f2c
Make use of make_unique
...
Also use make_shared more consistently
2023-03-09 11:01:23 -06:00
Ray Speth
da264799cb
Remove unnecessary using and include statements
2023-03-09 11:01:23 -06:00
Ray Speth
ad6efaba4f
Use 'default' to implement trivial constructors
2023-03-09 11:01:23 -06:00
Ray Speth
a8fa093fb8
Use C++11-style non-static data member initialization
2023-03-09 11:01:23 -06:00
Ray Speth
b8d07edba9
Use std::filesystem to get last modified time of input files
2023-03-09 11:01:23 -06:00
Ray Speth
184f4ddccf
Use 'if constexpr' to simplify MultiRate specialization
2023-03-09 11:01:23 -06:00
Ray Speth
56c3a077f7
Make use of C++17 structured bindings to improve readability
2023-03-09 11:01:23 -06:00
Ray Speth
a6196d3744
Use std::set instead of std::map when the value is never used
2023-03-09 11:01:23 -06:00
Ray Speth
36a15fc685
Apply simplification due to no longer supporting g++ 4.7
2023-03-09 11:01:23 -06:00
Ray Speth
399e1cba3e
Prevent infinite recursion in Solution callbacks
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
cc6489db3b
[clib] Fix exception handling
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
7ffd9f9f9d
Clarify deprecation warnings
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
a5a8c4bfd6
[clib] Prevent memory leaks in lookup table
...
As the storage m_table can contain duplicate entries referencing the
same object, all entries need to be stored in the reverse lookup table.
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
fa6795238c
[clib] Add reverse lookup table to SharedCabinet
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
0b0159a30d
Rename Kinetics::addPhase to Kinetics::addThermo
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
4675ea029d
[.NET] Add solution to sourcegen configuration
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
2617e20b11
[unittests] Implement gtest for 'test-oneD'
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
1f16bf247e
[unittest] Implement gtest for 'test-clib'
...
Unit tests cover 'clib' from within C++ googletest code
- port test-clib to google tests
- rename pre-existing version to test-clib-demo
- add tests indirectly probing SharedCabinet
- add tests for Solution access routines
- add tests for ctonedim
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
d84af4315c
[Python] Update API
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
dd8dba2bca
[test-problems] Replace legacy factory methods
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
85758763ff
[unittests] Remove legacy factory methods
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
7efc12d4f0
[fortran] Switch to smart clib cabinets
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
ff9544f77e
[clib] Adopt review comments
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
0c31f7e489
[Thermo] Shorten newThermoBase to newThermo
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
7c9ce80fdc
[clib] Shorten solution_ prefix to soln_
...
Also:
- add soln_newInterface
- rename solution_newFromFile to soln_newSolution.
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
57ea5e0f52
[clib] Construct ctonedim from smart pointers
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
ffebb8dcd3
[oneD] Enable Kinetics/Transport setters for smart pointers
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
6f8b151e72
[Kinetics] Used shared pointers in Kinetics::addPhase
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
12e6ca225b
[Kinetics] Deprecate non-default constructors
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
604f9dfcbc
[Kinetics] Update factory constructors
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
125a440b9c
[clib] Add Reactor::insert to clib
...
Also add service functions for testing cabinet sizes
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
827ebb38ef
[clib] Switch ThermoCabinet to smart pointers
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
f3e840dcbe
[Thermo] Add factory methods returning shared_ptr
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
25b3ce392b
[clib] Switch KineticsCabinet to smart pointers
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
9c2348cf67
[Kinetics] Change smart pointer type for newKinetics
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
3323ee27e7
[clib] Switch TransportCabinet to smart pointers
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
be392931fa
[Transport] Deprecate legacy factory constructors
2023-03-06 18:02:07 -06:00
Ingmar Schoegl
e362a12bea
[clib] Implement methods using SolutionCabinet
2023-03-06 18:02:07 -06:00