You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the registry the timestep_for_physics variable is defined with a kind of kind_phys. However, when that variable is set with the SE and null dycores it assumes that the kind is r8, and does no conversion from the get_step_size function, which technically returns an integer. This can result in compiler warnings and non-explicit data type conversions.
What are the steps to reproduce the bug?
Look at the stepon_timestep_init subroutine for both the SE and null (none) dycore options.
The solution for this bug is to keep the kind as kind_phys and do an explicit real(get_step_size(), kind_phys) conversion so that everything is explicitly kind_phys. There may also need to be explicit kind conversions for dtime_phys elsewhere if the timestep is used in other parts of the dycore as well (which usually assume r8).
The text was updated successfully, but these errors were encountered:
nusbaume
added
bug
Something isn't working correctly
misc
Issue that can be included in a miscellaneous PR
labels
Nov 6, 2024
What happened?
In the registry the
timestep_for_physics
variable is defined with a kind ofkind_phys
. However, when that variable is set with the SE and null dycores it assumes that the kind isr8
, and does no conversion from theget_step_size
function, which technically returns an integer. This can result in compiler warnings and non-explicit data type conversions.What are the steps to reproduce the bug?
Look at the
stepon_timestep_init
subroutine for both the SE and null (none) dycore options.What CAM-SIMA hash were you using?
e69640a
What machine were you running CAM-SIMA on?
Other (please explain below)
What compiler were you using?
Other (please specify below)
Path to a case directory, if applicable
No response
Will you be addressing this bug yourself?
Any Software Engineer can do this
Extra info
The solution for this bug is to keep the kind as
kind_phys
and do an explicitreal(get_step_size(), kind_phys)
conversion so that everything is explicitlykind_phys
. There may also need to be explicit kind conversions fordtime_phys
elsewhere if the timestep is used in other parts of the dycore as well (which usually assumer8
).The text was updated successfully, but these errors were encountered: