-
Notifications
You must be signed in to change notification settings - Fork 21
minor fixes to issues detected on fugaku installation #484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -46,6 +46,10 @@ namespace libcloudphxx | |||||
| tpl_t tpl | ||||||
| ) //noexcept | ||||||
| { | ||||||
| #if !defined(__NVCC__) | ||||||
| using std::abs; | ||||||
| #endif | ||||||
|
|
||||||
| // copy values into local variables | ||||||
| // variables that are not modified | ||||||
| const real_t sstp_dlt_rv = thrust::get<5>(thrust::get<0>(tpl)); | ||||||
|
|
@@ -160,9 +164,9 @@ namespace libcloudphxx | |||||
|
|
||||||
| if(sstp_cond_try > 1) // check for convergence | ||||||
| { | ||||||
| if((cuda::std::abs(drw2_new * 2 - drw2) <= sstp_cond_adapt_drw2_eps * rw2) // drw2 relative to rw2 converged | ||||||
| && cuda::std::abs(drw2 < sstp_cond_adapt_drw2_max * rw2)) // otherwise for small droplets (near activation?) drw2_new == 2*drw already for 2 substeps, but we ativate too many droplets | ||||||
| // if(cuda::std::abs(drw2_new * 2 - drw2) <= tol * drw2) // drw2 converged | ||||||
| if((abs(drw2_new * 2 - drw2) <= sstp_cond_adapt_drw2_eps * rw2) // drw2 relative to rw2 converged | ||||||
| && abs(drw2 < sstp_cond_adapt_drw2_max * rw2)) // otherwise for small droplets (near activation?) drw2_new == 2*drw already for 2 substeps, but we ativate too many droplets | ||||||
|
||||||
| && abs(drw2 < sstp_cond_adapt_drw2_max * rw2)) // otherwise for small droplets (near activation?) drw2_new == 2*drw already for 2 substeps, but we ativate too many droplets | |
| && (abs(drw2_new) < sstp_cond_adapt_drw2_max * rw2)) // otherwise for small droplets (near activation?) drw2_new == 2*drw already for 2 substeps, but we ativate too many droplets |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This
returnstatement appears to be missing a closing)for the outerreal_t(cast, which will fail to compile. Even with the parenthesis fixed, casting the unit-bearing expression toreal_twould be incorrect here since the function returnsquantity<si::temperature, real_t>; the previous form(scalar) * si::kelvinis the appropriate pattern.