69 Commits

Author SHA1 Message Date
5c1714410a fix(engine_defined): fixed gcc build warnings 2025-12-22 08:17:23 -05:00
e98c9a4050 feat(python): Python multi-test
Python now works with mulit-threading and zones
2025-12-20 16:08:33 -05:00
11a596b75b feat(python): Python Bindings
Python Bindings are working again
2025-12-20 16:02:52 -05:00
d65c237b26 feat(fortran): Fortran interface can now use multi-zone
Fortran interface uses the new C api ability to call the naieve
multi-zone solver. This allows fortran calling code to make use of in
build parellaism for solving multiple zones
2025-12-19 09:58:47 -05:00
2a9649a72e feat(C-API): C API now can use multi-zone solver
C api has been brought back up to support and can use paraellization along with multi zone solver
2025-12-18 15:14:47 -05:00
dcfd7b60aa perf(multi): Simple parallel multi zone solver
Added a simple parallel multi-zone solver
2025-12-18 12:47:39 -05:00
0b09ed1cb3 feat(SpectralSolver): Spectral Solver now works in a limited fashion
Major work on spectral solver, can now evolve up to about a year. At
that point we likely need to impliment repartitioning logic to stabalize
the network or some other scheme based on the jacobian structure
2025-12-12 17:24:53 -05:00
e114c0e240 perf(thread saftey): All Engines are now thread safe
Previously engines were not thread safe, a seperate engine would be
needed for every thread. This is no longer the case. This allows for
much more efficient parallel execution
2025-12-12 12:08:47 -05:00
97a7fd05d2 feat(SpectralSolver): Began work on multizone spectral solver
The single zone solver we have is too slow for a true high resolution
multi-zone enviroment. Began work on a spectral element method
multi-zone solver
2025-12-10 12:50:35 -05:00
d990089207 build(cppAD): switched to meson wrap for CppAD
We now pull in CppAD with the standard wrap system
2025-12-10 12:47:16 -05:00
8cfa067ad0 perf(GridFire)
More preformance improvmnets

1. Switch to mimalloc which gave a roughly 10% improvment accross the
board
2. Use much faster compososition caching
3. Reusing work vector
2025-12-07 12:34:12 -05:00
b6f452e74c feat(libconfig): new version of libconfig 2025-12-06 11:41:57 -05:00
7242c765f3 build(wasm): major progress on gridfire compiling to wasm 2025-12-03 11:38:08 -05:00
Emily Boudreaux
e0a05bbd1a build(cross): macOS cross compilation
macos cross compilation now works. macos binaries can be compiled on
linux with osxcross installed and built
2025-12-01 13:28:25 -05:00
dac09ae24c build(fortran): added check for fortran
fortran tests only build when fortran build option is enabled
2025-11-30 10:19:56 -05:00
033c5a083d fix(gcc): Fixed Gridfire on gcc
GridFire failed to compile on gcc and gnu stdlibc++ this has been
resolved. Further, the boost dependency has been removed since we no
longer use boost at all. This should dramatically simplify installation.
Finally we have added some build system checks to ensure that the
correct version of a C++ and fortran compiler are present on the system
2025-11-28 09:42:54 -05:00
39a689ee5d feat(neutrino): Updated neutrino output
GridFire now reports neutrino loss for reaclib reactions. Note this
currently is only computed if precomputation is enabled.
2025-11-27 15:00:51 -05:00
05175ae87c feat(neutrino): Started framework for neutrino loss
Neutrino loss is essential for neutrino cooling. Started adding
framework to track this. Reaclib reactions use a simple heuristic where
electron capture reactions loss 100% of their energy to neutrinos
whereas beta decay reactions loose 50% of their energy to neutrinos
2025-11-27 14:34:20 -05:00
6ad6406324 feat(fortran): Added fortran bindings
Building of the C API GridFire can now be used from fotran using the
gridfire_mod fortran module. This exposes the same, limited, set of
funcitonality that the C API does.
2025-11-27 11:20:53 -05:00
b7f8724e13 feat(C): Added C bindings
There is now a limited set of C bindings which will also be used to bind
to fotran
2025-11-27 10:04:59 -05:00
bb1d6bbb24 feat(python): Repaired python bindings
Python bindings have now been brought back up to feature pairity with
C++. Further, stubs have been added for all python features so that code
completion will work
2025-11-25 14:08:58 -05:00
ce8717b248 feat(graphnet_sandbox): Added CLI
Added cli options for controling temperature, density, and Tmax
2025-11-24 14:55:17 -05:00
1e23c89f8e feat(CLI11): Added command line parsing library
Added a library for command line option parsing, CLI11.
2025-11-24 14:54:41 -05:00
9fab4fbfae docs(ridfire)
Added more documentation, also moved all engine code into
gridfire::engine namespace to be more in line with other parts of teh
code base
2025-11-24 09:07:49 -05:00
442d4ed86c feat(KINSOL): Switch from Eigen to KINSOL
Previously QSE solving was done using Eigen. While this worked we were
limited in the ability to use previous iterations to speed up later
steps. We have switched to KINSOL, from SUNDIALS, for linear solving.
This has drastically speed up the process of solving for QSE abundances,
primarily because the jacobian matrix does not need to be generated
every single time time a QSE abundance is requested.
2025-11-19 12:06:21 -05:00
f7fbc6c1da refactor(src): small changes 2025-11-19 07:42:10 -05:00
05c49d8dcf refactor(src): small refactoring changes to clean up code prior to PR 2025-11-18 08:24:19 -05:00
a7a4a30028 feat(Comoposition-Tracking): updated GridFire to use new, molar-abundance based, version of libcomposition (v2.0.6)
This entailed a major rewrite of the composition handling from each engine and engine view along with the solver and primer. The intent here is to let Compositions be constructed from the same extensive property which the solver tracks internally. This addressed C0 discontinuity issues in the tracked molar abundances of species which were introduced by repeadidly swaping from molar abundance space to mass fraction space and back. This also allowed for a simplification of the primeNetwork method. Specifically the mass borrowing system was dramatically simplified as molar abundances are extensive.
2025-11-10 10:40:03 -05:00
7364eaafbd test(sandbox): some work on sandbox tests 2025-11-04 14:04:54 -05:00
3c80ccc77f fix(python): added temporary patch to let python bindings work on mac
Mirroring what was done in fourdst (see fourdst/tree/v0.8.5) we have added a temporary patch to let python bindings work on mac while the meson-python folks resolve the duplicate rpath issue in the shared object file
2025-11-03 15:10:03 -05:00
86d7a283a1 feat(GraphEngine): More robust reaction type selection at network construction
Added new ways to select exactly what types of reactions (strong, beta+, beta-, electron capture, positron capture, or any combination thereof) can be turned on at network construction time. There are a few quality of life masks added as well such as weak which addes all weak type reactions, and all which adds weak + strong reactions. The default is to just add strong reactions for now.
2025-11-03 08:38:21 -05:00
6088fb9c12 test(graphnet_sandbox): updated graphnet sandbox to test full network stack 2025-10-30 15:06:59 -04:00
3b8a0a1f33 fix(engine_multiscale): resolved a major species index ordering bug
All jacobian calculations were broken because the indexing used to record the AD tape was broken (see not parallel to) the indexing used by the composition object. A fix for this was to sort the network species by mass. However, more generally we should introduce a mechanism to ensure these two indexed sets always remain parallel
2025-10-14 13:37:48 -04:00
2f1077c02d fix(weakRates): major progress in resolving bugs
bigs were introduced by the interface change from accepting raw molar abundance vectors to using the composition vector. This commit resolves many of these, including preformant ways to report that a species is not present in the composition and unified index lookups using composition object tooling.

BREAKING CHANGE:
2025-10-10 09:12:40 -04:00
8a0b5b2c36 feat(weak): major weak rate progress
Major weak rate progress which includes: A refactor of many of the public interfaces for GridFire Engines to use composition objects as opposed to raw abundance vectors. This helps prevent index mismatch errors. Further, the weak reaction class has been expanded with the majority of an implimentation, including an atomic_base derived class to allow for proper auto diff tracking of the interpolated table results. Some additional changes are that the version of fourdst and libcomposition have been bumped to versions with smarter caching of intermediate vectors and a few bug fixes.
2025-10-07 15:16:03 -04:00
4f1c260444 feat(trigger): added working robust repartitioning trigger system
more work is needed to identify the most robust set of criteria to trigger on but the system is now very easy to exend, probe, and use.
2025-09-29 13:35:48 -04:00
4c91f8c525 feat(CVODE_Solver_Strategy): added non negative constraint to CVODE based abundance solver
this prevents abundance values from going negative which is non physical
2025-09-22 11:15:14 -04:00
813e62bdd6 feat(dynamic-engine): added derivitves for energy generation rate. dε/dT and dε/dρ have been added to NetOut and computed with auto diff 2025-09-19 15:14:46 -04:00
ed1c5a1ac7 feat(solver): added CVODE solver from SUNDIALS 2025-08-15 12:11:32 -04:00
0b77f2e269 refactor(reaction): refactored to an abstract reaction class in prep for weak reactions 2025-08-14 13:33:46 -04:00
24049b2658 feat(solver): added callback functions to solver in C++ and python 2025-07-31 15:04:57 -04:00
e3d7bed39c test(reverse-rates): testing reverse rates 2025-07-29 07:49:17 -04:00
c3bc75a7f4 docs(GridFire): added loads of docs and supressed yaml-cpp shadow warnings 2025-07-24 08:37:52 -04:00
f20bffc411 feat(python): added robust python bindings covering the entire codebase 2025-07-23 16:26:30 -04:00
6a22cb65b8 feat(GridFire): stabalized network, increased performance, evolving over 10Gyr timescales now with ~correct results 2025-07-22 12:48:24 -04:00
712efc03fc feat(AdaptiveEngine): system much more stable
dramatically increased stability of jacobian. System is burning again with much more robust physics
2025-07-18 15:23:43 -04:00
1f7e765671 fix(MultiscalePartitioningEngineView): made qse partitioning much more robust 2025-07-16 12:14:02 -04:00
18f9e13107 test(sandbox-test): updated sandbox 2025-07-14 14:54:22 -04:00
7012eb819a feat(MultiscalePartitioningEngineView): added *much* more robust qse group identifiction and solving 2025-07-10 09:36:05 -04:00
1ac6b451b8 feat(reverse-reactions): major work towrds detailed balance calculations 2025-07-03 09:55:10 -04:00