igfuw / libcloudphxx

libcloudphysics++ - a library of algorithms for representing cloud microphysics in numerical models
http://libcloudphxx.igf.fuw.edu.pl/
Other
20 stars 20 forks source link

n_of_lnrd_stp : always work on doubles #437

Open pdziekan opened 2 years ago

pdziekan commented 2 years ago

Concenctration of droplets can be very low, making floats unable to correctly represent the initial size distribution, e.g. the Marshall-Palmer rain distribution used in coal_fluctu_dim simulations (cuda-k-4). TODO: make sure that this PR fixes the issues in coal_fluctu_dim. NOTE: currently coal_fluctu_dim does all calculations (including initial DSD) on doubles. Make it work on floats and use libcloud from this PR and compare it with master. Look at the initial DSD.