Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace libcloudphxx
{
const std::set<std::string> attr_names = {"rw2", "rd3", "kappa", "rd2_insol", "T_freeze", "ice_a", "ice_c", "ice_rho", "x", "y", "z"}; // TODO implement "n" - it is n_t type and others are real_t
if (std::find(std::begin(attr_names), std::end(attr_names), name) == std::end(attr_names))
throw std::runtime_error("Unknown attribute name passed to get_attr.");
throw std::runtime_error("Unknown attribute name '" + name + "' passed to get_attr.");

if (!opts_init.ice_switch &&
(name == "ice_a" || name == "ice_c" || name == "ice_rho" || name == "rd2_insol" || name == "T_freeze"))
Expand Down
2 changes: 2 additions & 0 deletions src/impl/diagnose_SD_attributes/particles_impl_moms.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ namespace libcloudphxx
#endif
const real_t n = thrust::get<0>(tpl);
const real_t x = thrust::get<1>(tpl);
if(xp == 0)
return n;
#if !defined(NDEBUG)
real_t res;
if(x >= 0)
Expand Down
Loading