Commit Graph
211 Commits
Author SHA1 Message Date
Ingmar Schoegl 55fe9d9f4f [base] Update exception handling for elementIndex 2025-10-20 17:41:31 -04:00
Ingmar Schoegl ab988c213b [sourcegen] Do not escape Cantera in \brief
Docstrings containing '%Cantera' cause crashes in the MATLAB build
process, as '%' is reserved for comments.
2025-10-18 23:52:00 -05:00
Ingmar Schoegl 53ef2557b1 [sourcegen] Ensure int32_t is present in all headers 2025-10-18 23:52:00 -05:00
Ingmar Schoegl 8a0b024970 [sourcegen] Remove _auto from header configuration
While '_auto' was useful for testing purposes, it is no longer needed.
All relevant files start with 'ct', which is sufficient.
2025-10-18 23:52:00 -05:00
Ingmar Schoegl 98de839146 [sourcegen] Implement extraction of deprecation message 2025-10-18 23:52:00 -05:00
Ingmar Schoegl 7a50d2fbfa [sourcegen] Leverage Jinja2 macros 2025-10-18 23:52:00 -05:00
Ingmar Schoegl c38f7bf7af [sourcegen] Introduce Jinja2 macro 2025-10-18 23:52:00 -05:00
Ingmar Schoegl 396552c08f [sourcegen] Fix vector [out] parameter 2025-10-18 23:52:00 -05:00
Ingmar Schoegl c03dfea07c [sourcegen] Ensure all handles are int32_t 2025-10-18 23:52:00 -05:00
Ingmar Schoegl 635c275427 [sourcegen] Fix minor glitches 2025-10-18 23:52:00 -05:00
Ingmar Schoegl c529551aea Address review comments 2025-10-17 18:01:53 -04:00
Ingmar Schoegl 6be47c3028 [Python] Rename ReactorBase.contents to phase 2025-10-17 18:01:53 -04:00
Ingmar Schoegl 8ef3115a06 [zeroD] Replace contents4 by phase 2025-10-17 18:01:53 -04:00
Ingmar Schoegl 2b6bf8f9de [sourcegen] Fix glitch in XML parsing 2025-10-14 08:35:56 -05:00
Ingmar Schoegl a6a341edfe [oneD] Simplify Domain1D::value API 2025-10-09 18:46:40 -05:00
Ingmar Schoegl 8ed3bbc2dd [oneD] Add Domain1D::values 2025-10-09 18:46:40 -05:00
Ingmar Schoegl bc3d6ff3c5 [oneD] Implement single value access for Domain1D 2025-10-09 18:46:40 -05:00
Ingmar Schoegl e34069b4d9 Address review comments 2025-10-09 18:46:40 -05:00
Ingmar Schoegl 93675b3407 [unittest/samples] Use updated methods 2025-10-09 18:46:40 -05:00
Ingmar Schoegl a3d69cb5b0 [oneD] Make setProfile accessible from Domain1D 2025-10-09 18:46:40 -05:00
Ingmar Schoegl cbec1da464 [oneD] Update APIs for set/getValues 2025-10-09 18:46:40 -05:00
Ingmar Schoegl 96aa3a19ea [onedim] Address remaining papercuts 2025-10-09 18:46:40 -05:00
Ingmar Schoegl b15485a285 [oneD] Implement set/getValues 2025-10-09 18:46:40 -05:00
Ray Speth 2409e8d291 [Reactor] Begin transition of ReactorBase.contents to return Solution 2025-10-09 06:54:33 -05:00
Ingmar Schoegl db45071879 Add reactor_newSurface 2025-10-08 10:18:27 -04:00
Ray Speth 1d81c0b190 Handle Solution cloning in new CLib 2025-10-08 10:18:27 -04:00
Ray Speth e2ee2a9e63 [Reactor] Allow surfaces to be adjacent to multiple reactors 2025-10-08 10:18:27 -04:00
Ingmar Schoegl fa15cdeb20 Rename addDirectory->addDataDirectory 2025-10-02 13:25:53 -04:00
Ingmar Schoegl dda6331ea5 [clib] Add sim1D_restore 2025-10-02 13:25:53 -04:00
Ingmar Schoegl 65f1ba4aa1 [sourcegen] Bump version to match 3.2.0a4 2025-10-02 13:25:53 -04:00
Ingmar Schoegl 33e5dd8660 [sourcegen] Use j2 suffix for Jinja2 templates 2025-09-22 21:06:38 -04:00
Ingmar Schoegl 33aab53140 [sourcegen] Remove unused code 2025-09-22 21:06:38 -04:00
Ingmar Schoegl cdeccf4a13 [sourcegen] Update recipes 2025-09-22 21:06:38 -04:00
Ingmar Schoegl b9eb2052a3 [sourcegen] Remove obsolete reserved functions 2025-09-22 21:06:38 -04:00
Ingmar Schoegl 44225f3290 [sourcegen] Enforce utf8 encoding 2025-07-23 09:45:26 -04:00
Ray Speth 2f9bf30eab [Numerics] Extract base class for general steady-state systems 2025-06-25 18:54:40 -04:00
Sammo Gabay b2beba2fbb [.NET] Small improvements and clarifications in CSharpSourceGenerator
* Specify all C to C# mappings explicitly in the crosswalk
* Add region blocks around groups of related functions in generated LibCantera files
2025-06-17 07:20:41 -06:00
Sammo Gabay 40b489c160 [.NET] Prefer spans of handles over plain ints where possible
Uses the P/Invoke source generation in conjunction with the custom CanteraHandler marshaller, to marshal arrays, not just scalars, of the typed handle classes.
2025-06-17 07:20:41 -06:00
Sammo Gabay 539b6f2872 [.NET] Scaffold wrappers for functions that get or set arrays
Allows removal of boilerplate code and calls to GetDoubles helpers (which are now gone).
For functions that get arrays of doubles, an additional overload is provided that allocates and returns the array. It uses the appropriate get-size function to determine the lenght of the array.
2025-06-17 07:20:41 -06:00
Sammo Gabay 8d6876b167 [.NET] Scaffold GetString wrapper methods in LibCantera
Allows removal of boilerplate code and calls to GetString helper (which is now gone). Bonus: no more closure allocations when calling GetString and needing to capture extra variable into the FillStringBufferFunc, which only takes two arguments.
2025-06-17 07:20:41 -06:00
Sammo Gabay 9b7dda76be [.NET] Use automatic checking of return codes at the interop boundary
Since I am levarging P/Invoke source generation, I can add a custom marshaller for return parameters that check the return and throw a CanteraException as necessary. This removes the need to call CheckReturn out of return parameter marshallers.
2025-06-17 07:20:41 -06:00
Sammo Gabay 5cb12278ff [sourcegen] Simplify CSharpSourceGenerator a bit
* Const deletion looks up in the crosswalk.
* Property scaffolding logic uses size of argument list.
* Removes one check for inconsistency that is no longer needed.
2025-06-17 07:20:41 -06:00
Ray Speth b308592776 Fix ownership handling of Logger objects
The Application instance takes ownership of these objects. Changing
the interface to use unique_ptr reflects this and prevents errors like
the double-delete during application teardown that was previously
occurring.
2025-06-08 10:10:39 -05:00
Ingmar Schoegl 380285c682 [doxygen] Improve group labels 2025-06-06 15:02:03 -04:00
Ingmar Schoegl f3bef80b3d [sourcegen] Escape Cantera in Doxygen 2025-06-06 15:02:03 -04:00
Ingmar Schoegl 682ff0481e [sourcegen] Resolve rendering
Generation of links appears to be unreliable; use signature without
attempting to link instead.
2025-06-06 15:02:03 -04:00
Ingmar Schoegl 49bbbe7ac1 [sourcegen] Fix direction of 'Len' parameter 2025-06-06 15:02:03 -04:00
Ingmar Schoegl 9b90565afa [sourcegen] Recipe.implements -> Recipe.wraps 2025-06-06 15:02:03 -04:00
Ingmar Schoegl bf88bd09b3 [sourcegen] Func.implements -> Func.wraps 2025-06-06 15:02:03 -04:00
Ingmar Schoegl dd53c24bfd [sourcegen] Doxygen tags do not work as expected
\implements and \relates to not render information
2025-06-06 15:02:03 -04:00