abrupt underflow causes grid_extreme to fail
grid_extreme aborts with the atomic hydrogen density underflowing to zero when compiled with gradual underflow disabled. The sim runs ok with our default make with gcc which uses gradual underflow. Portland group disables gradual underflow by default so this will fail.
The attached bug.in will fail very quickly with abrupt underflow. The problem is that the atomic hydrogen density underflows to zero at cont_setintensity.cpp:893.
the situation was improved a bit with r4509 which uses the mean photon energy to get a better estimate of the H ionization rate. The H0 density is a bit over 1e-40 cm-3 with this change, so it still underflows.
Gradual underflow with our default make kept the H0 density > 0 but at the cost of decreased precision.
one fix would be to promote xIonDense to double. Any reason not to?
another would be to have the code abort if the H0 density is less than SMALLFLOAT - gradual underflow does buy extra dynamic range but at the expense of decreased accuracy. it may be dangerous.