D3DEnergetic / FIDASIM

A Neutral Beam and Fast-ion Diagnostic Modeling Suite
http://d3denergetic.github.io/FIDASIM/
Other
29 stars 19 forks source link

Improve FIDA Camera Performance #159

Closed lstagner closed 5 years ago

lstagner commented 5 years ago

Since FIDA cameras view a narrow wavelength region simulating the full spectrum is not needed. This PR implements a wavelength check in the track subroutine. If the proposed fast-neutral does not contribute signal in the requested wavelength region it is ignored, negating the need to do the expensive collisional radiative calculation. This speeds up camera simulations significantly (3x on test case), provided you change the wavelength bounds in the inputs.

This PR also fixed an HDF5 bug that occurs when you try to write datasets that are larger than 4GB.

lstagner commented 5 years ago

Implemented in 78dbdde3207f416a7cde5370aed33a5f37a12f96, 0c1dfe367ae0084ff47c71c5c26e51257187b63b, and 498067fa5ef2adac1fca26d0fd79eacddc872a69