Skip to content
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

Sunshine function divides by zero when mrtoa==0 #2

Open
aukkola opened this issue May 17, 2016 · 0 comments
Open

Sunshine function divides by zero when mrtoa==0 #2

aukkola opened this issue May 17, 2016 · 0 comments

Comments

@aukkola
Copy link
Collaborator

aukkola commented May 17, 2016

Sunshine function returns Inf when mrtoa == 0 due to division by zero:

// monthly fraction of sunlight hours
mrsun(ll,i+2) = ( (swr(ll,i+2)/mrtoa(ll,i+2))-0.25 )/0.5;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant