libamtrack / web

Web interface for libamtrack
https://libamtrack.github.io/web/
GNU General Public License v3.0
7 stars 2 forks source link

Memory problems in CSDA functions #77

Open adudzik opened 5 years ago

adudzik commented 5 years ago

For CSDA Range when we choose particles and materials from end of the list, application has problem with memory. @marwin1991, probably we should compile library with flag allowing to expand memory size in runtime?

image

This problem is related with #76.

marwin1991 commented 5 years ago

@adudzik is this happen always or only for big data? Default memory size is about 2GB.

marwin1991 commented 5 years ago

This problem is for materials higher than Copper from: https://github.com/libamtrack/web/blob/master/src/static/json/dictionaries/Materials.json function that i tested: https://libamtrack.github.io/web/#DataRange/CSDARangeSingle

@grzanka is this function in C works for materials like Lead?

grzanka commented 5 years ago

This may be helpful: https://github.com/libamtrack/library/blob/master/src/AT_StoppingPowerDataPSTAR.c#L1262

Currently PSTAR data is limited only to 10 materials. It would be good to submit now the ticket to the core library, in order to expand the PSTAR data to other materials.

There may be some issues that libamtrack is not passing correctly error codes when material is not found - make an issue on that in the core library.