#1172: Remove unnecessary exp/log calls in EOS_Omni ------------------------------------+--------------------------------------- Reporter: eschnett | Owner: Type: enhancement | Status: new Priority: minor | Milestone: Component: EinsteinToolkit thorn | Version: Resolution: | Keywords: ------------------------------------+---------------------------------------
Comment (by anonymous):
Here is one example: {{{ barotropiceos_logrho(:) = log10(10.0d0**barotropiceos_logrho(:) * rho_gf) }}}
This code first exponentiates a quantity, and then takes a logarithm. The code contains many other similar expressions. I believe this code was implemented as a literal translation from a publication, without optimizing its numerics.