xuanxu / starmatrix

Modelling nucleosynthesis of galactic chemical elements
https://starmatrix.readthedocs.io
MIT License
1 stars 3 forks source link

Fixed number of steps #27

Closed xuanxu closed 4 years ago

xuanxu commented 4 years ago

This PR adds a couple of options to have time integration using different time steps for stars with m < 4Msun and m > 4 Msun.

The integration_step: setting will accept two new values: The different time steps can be calculated automatically using the two_steps_t option, or the user can specify a fixed number of steps for each integration interval with the fixed_n_stepsoption, and then set the values using two new settings:

codecov[bot] commented 4 years ago

Codecov Report

Merging #27 into master will increase coverage by 0.02%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #27      +/-   ##
==========================================
+ Coverage   99.69%   99.71%   +0.02%     
==========================================
  Files          11       11              
  Lines         648      714      +66     
  Branches       94      102       +8     
==========================================
+ Hits          646      712      +66     
  Partials        2        2              
Impacted Files Coverage Δ
src/intergalactic/settings.py 100.00% <ø> (ø)
src/intergalactic/model.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9ef2114...3b99f8b. Read the comment docs.