Skip to content

Commit

Permalink
Simplified PrimordialChem RHS network file (#1172)
Browse files Browse the repository at this point in the history
This PR simplifies the RHS file for primordial chemistry by a significant amount, by using sympy's CSE (common subexpression elimination) process to simplify expressions for all the jacobians and d Temperature /dt. The file size has reduced from 9.8 MB to 241 kB (6k lines of code compared to 30k earlier), with a factor of 11 speed-up in compilation.

This change is proving pivotal to compiling Quokka on GPUs without memory exhaustion errors.

Tests run successfully as before. PR ready for review.
  • Loading branch information
psharda authored Apr 26, 2023
1 parent 55ce5a0 commit fc4258c
Showing 1 changed file with 5,313 additions and 33,577 deletions.
Loading

0 comments on commit fc4258c

Please sign in to comment.