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

SOILEVAP_VIC equation different in source code than in Raven Manual #45

Open
1 task
gmerritt123 opened this issue Aug 28, 2024 · 0 comments
Open
1 task
Labels
bug Something isn't working

Comments

@gmerritt123
Copy link

Setup Information

  • Raven version: 3.8
  • Operating System: Windows

Description

I was switching out SOILEVAP_HBV for SOILEVAP_VIC. As per Raven Manual:

image

Based on this, I added VIC_EVAP_GAMMA as a soil parameter.

I got a printout in RavenErrors.txt that told me I needed to supply VIC_ZMIN, VIC_ZMAX, and VIC_ALPHA as well. I thought that was kind of odd, since it appears (via Raven Manual) that these parameters are used only for other VIC-family equations (infiltration/percolation etc.). I put in dummy values anyway and Raven ran fine.

But then as a QA check, I tried changing VIC_ZMAX, expecting to get the exact same results (since according to the Raven Manual and my setup this parameter is not used for any process). But my results changed!

Inspecting SoilEvaporation.cpp:

else if (type==SOILEVAP_VIC)

The calculation of PET used actually uses VIC_ZMIN, VIC_ZMAX and VIC_ALPHA... which explains why I needed to supply it (I found the assert-like check for them here -->

void CmvSoilEvap::GetParticipatingParamList(string *aP , class_type *aPC , int &nP) const
),

I am not certain if the Raven Manual has the governing equation incorrect, or if the source code itself is incorrectly calculating PETused, but it's definitely an inconsistency that threw me for a loop.

Steps To Reproduce

  • Build a Raven Model that uses only SOILEVAP_VIC and provide only VIC_EVAP_GAMMA as a "VIC" parameter.
  • Raven will fail to execute and state in RavenErrors.txt that you need to supply the other "VIC" parameters
  • The source code relies on these other parameters, but this is not documented in the Raven Manual

Additional context

No response

Contribution

  • I would be willing/able to open a Pull Request to address this bug.
@gmerritt123 gmerritt123 added the bug Something isn't working label Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant