lanl / singularity-eos

Performance portable equations of state and mixed cell closures
https://lanl.github.io/singularity-eos/
BSD 3-Clause "New" or "Revised" License
27 stars 8 forks source link

Make mass fraction cutoff a function argument #381

Open jhp-lanl opened 4 months ago

jhp-lanl commented 4 months ago

The mass fraction cutoff for the PTE solver in the get_sg_eos_* interface should be an argument that can be passed by the calling function.

The cutoff is currently a magic number in the init_functor() for the various function calls: https://github.com/lanl/singularity-eos/blob/909b83f8424a21d47c57b468c3867bc86ce95ad9/singularity-eos/eos/get_sg_eos_functors.hpp#L75