modcc: process `CONSERVE` statements in `KINETIC` block (#829)
Add modcc support for processing `CONSERVE` statements in `KINETIC` blocks. The `KineticRewriter` remains unchanged. The `SparseSolverVisitor` is modified. If one or more `CONSERVE` statements are present, corresponding rows in the symbolic matrix, which would otherwise represent differential equations, are replaced by the content of the conserve statements. Addresses #828 and #830
Showing
- modcc/kineticrewriter.cpp 2 additions, 2 deletionsmodcc/kineticrewriter.cpp
- modcc/msparse.hpp 4 additions, 0 deletionsmodcc/msparse.hpp
- modcc/solvers.cpp 76 additions, 0 deletionsmodcc/solvers.cpp
- modcc/solvers.hpp 10 additions, 0 deletionsmodcc/solvers.hpp
- test/unit/CMakeLists.txt 5 additions, 0 deletionstest/unit/CMakeLists.txt
- test/unit/mod/test0_kin_conserve.mod 30 additions, 0 deletionstest/unit/mod/test0_kin_conserve.mod
- test/unit/mod/test0_kin_diff.mod 28 additions, 0 deletionstest/unit/mod/test0_kin_diff.mod
- test/unit/mod/test1_kin_conserve.mod 32 additions, 0 deletionstest/unit/mod/test1_kin_conserve.mod
- test/unit/mod/test1_kin_diff.mod 29 additions, 0 deletionstest/unit/mod/test1_kin_diff.mod
- test/unit/test_kinetic.cpp 117 additions, 0 deletionstest/unit/test_kinetic.cpp
- test/unit/unit_test_catalogue.cpp 8 additions, 0 deletionstest/unit/unit_test_catalogue.cpp
Please register or sign in to comment