Commit Graph

232 Commits

Author SHA1 Message Date
7a4ccff021 fix(clang): fixed a few compiler warnings in clang 2025-11-28 09:53:54 -05:00
21cabfdb66 docs(version): version bump v0.7.0_rc2 -> v0.7.1_rc2
This version brings repairs to gcc builds
2025-11-28 09:46:31 -05:00
a472dc5214 docs(docs): rebuilt for version v0.7.1_rc2 2025-11-28 09:46:00 -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
08a031f30c Merge pull request #9 from tboudreaux/feature/neutrionoLoss
Neutrino Output from GridFire Solvers
2025-11-27 15:10:26 -05:00
07b2cfd055 docs(docs): rebuilt 2025-11-27 15:06:27 -05:00
30a5a4d803 docs(readme): Updated
Updated readme and docs to reflect new output (neutrino)
2025-11-27 15:06:02 -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
7b67f3064a docs(gitignore): added auto generated files
the validation suite automatically generates large pynucastro module files. These have been added to .gitignore so they are not pushed to git
2025-11-27 12:51:16 -05:00
6adff5b670 Merge pull request #8 from tboudreaux/feature/extern
Stable C API and Fortran Bindings
2025-11-27 11:33:48 -05:00
737f432b94 docs(version): Version bump v0.7.0_rc1 -> v0.7.0_rc2
Version bump
2025-11-27 11:25:12 -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
41adf1d8e0 fix(meson.build): Added C as lang
Added C and fortran as languages to the project so that meson can locate
their compilers
2025-11-27 10:06:44 -05:00
90cfe81d0b refactor(GridFireEquiv): Cleaned up
Cleaned up old validation code
2025-11-27 10:06:13 -05:00
ef53575c0d test(validation): Added validation suite
Added the framework and some basic tests for a validation suite which
automatically tests against pynucastro results
2025-11-27 10:05:51 -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
a46bd846a5 fix(subprojects): removed illformed wrap file 2025-11-25 14:43:45 -05:00
95125bdf3e Merge pull request #7 from tboudreaux/fix/python/KINSol
Vresion 0.7.0 RC1
2025-11-25 14:35:31 -05:00
2eebbf6819 docs(docs): rebuilt 2025-11-25 14:31:59 -05:00
b0c68a709f docs(mainpage): updated examples in documentation 2025-11-25 14:31:34 -05:00
cd950d1411 docs(readme): updated readme examples 2025-11-25 14:30:42 -05:00
9bdf63e2cb docs(readme): updated readme
added section on policy module
2025-11-25 14:18:23 -05:00
b8835aee7f docs(version): version bump v0.6.0 -> v0.7.0_rc1 2025-11-25 14:12:17 -05:00
0508df881b docs(version): v0.7.0_alpha_2025_10_25 -> v0.7.0_rc1 2025-11-25 14:11:15 -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
22b52abc30 Merge pull request #6 from tboudreaux/feature/weakRates
Added Weak Rates, KINSol, CVODE, Policy, and much more
2025-11-24 15:12:05 -05:00
b335bf7100 fix(LogicalReaclibReaction): Properly class reverse reactions
Previously there was a bug where some reverse reactions were being
classed as forward reactions. This results in a failure of many
timesteps due to the reverse reactions very high molar flows
2025-11-24 14:57:14 -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
22c0329de0 docs(docs): rebuilt docs 2025-11-24 09:08:28 -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
15ed7f70b1 feat(json): added nlohmann JSON
Added header only json library for better logging
2025-11-24 09:06:34 -05:00
9f56ba0083 fix(error_solver): inherit the public GridFireError interface
added public so that public members and methods of GridFireError can be
used by all SolverError exceptions
2025-11-21 14:30:53 -05:00
3fa23778e8 refactor(exceptions): made header names consistent
All header names in the exceptions module now follow the same naming
scheme.
2025-11-21 14:28:45 -05:00
acc71ba12e refactor(exceptions): All exceptions are derived from GridFireError
Now all GridFire exceptions are derived from the base GridFireError,
this allows for more clean handling of various exception cases
2025-11-21 14:26:24 -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
4d2f5888ec feat(DebugException): Simple exception for debug
Sometimes it is useful to pause execution with an exception while
debugging (though bad practice in production code). This is an explicit
exception type dedicated to that purpose. Further we have included some
compile time checks to ensure that these do not get used in release
builds.
2025-11-19 07:41:42 -05:00
80a4e12324 docs(.gitignore): added json 2025-11-19 07:40:55 -05:00
80dba50330 perf(EigenFunctor): Jacobian Cachine
FOr QSE solving the Jacobian does not change meaninfully between steps.
We have introduced caching so that it does not need to be reevaluated
every step
2025-11-19 07:17:57 -05:00
90629992d3 feat(trigger): min convergence failure bound
Added a minimum value for the mean convergence failure which will never
trigger. This prevents situations where one or two failures begine a
trigger avalanche
2025-11-19 07:17:13 -05:00
d5d767a21c refactor(misc): removed debugging output 2025-11-18 08:25:17 -05:00
05c49d8dcf refactor(src): small refactoring changes to clean up code prior to PR 2025-11-18 08:24:19 -05:00
92085dca4e feat(log_view): small web app to view fourdst logs 2025-11-18 08:23:04 -05:00
dfae8073bd log(CVODE_solver_strategy): Added new logging
Optional per step detailed logging has been enhanced to show the
timescales and status of each network species.
2025-11-18 08:16:33 -05:00
8b1b7c3034 feat(MultiscalePartitioningEngineView): New check for log abundance normalized flow
We added one new check to the partitioning stage for
MultiscalePartitioningEngine view which, after group validation, prunes
any species only connected by reactions with a log(flow/mean involved
species abundance) less than -30. Currently this is a magic number and
will need to be adjusted. These pruned groups succsessfully prevent
light elements getting vacumed up into QSE groups due to their overall
weak couplings to the entire network. This is important else the
conditioning of the QSE systems falls apart.
2025-11-18 08:15:34 -05:00
47c446a0a2 fix(engine_multiscale): Eigen status 2025-11-15 09:08:24 -05:00
3f55676068 refactor(CVODE solver): log_step_diagnostic signature change
Added a new overload of log_step_diagnostic to allow for more granular
control over what is displayed. Also made some small teaks to relative
tolerance (absolute tolerance has remained unchaged)
2025-11-15 09:08:05 -05:00
b65626ca20 feat(NetworkJacobian): Rank caching, regularization, and CSV export
Comptuting the rank of a large matrix with QR factorization can be
expensive and the rank is often never needed. We have implimented a
caching system so that the rank is only computed when asked for, and
then only once. Further, the regularization method which was previously
in an anonomous namespace inside of a single translation unit has been
moved to the jacobian header and implimentation file. This allows all
parts of GridFire to access the same regularization method. Finally a
small CSV output method has been added which is useful for debugging
2025-11-15 09:05:41 -05:00