Giter Club home page Giter Club logo

Comments (7)

palderman avatar palderman commented on July 29, 2024

Hi @ponraj1,

The error you are getting often means that the model is somewhere dividing by zero.

What branch/version number are you running? I think we've fixed a few of these types of errors recently. You might try pulling a more recent version to see if the error is still persistent.

Also, have you tried using a debugger (see e.g. https://cs.baylor.edu/~donahoo/tools/gdb/tutorial.html) to set a breakpoint at on line 621 of ETPHR.for? You could then inspect the values of the variables on that line and determine which values are problematic.

from dssat-csm-os.

ponraj1 avatar ponraj1 commented on July 29, 2024

Hi @palderman Thanks a lot for getting back to me. I am using version 4.7.5.042. I will try to find the bug using the debugger which you mentioned.

from dssat-csm-os.

ponraj1 avatar ponraj1 commented on July 29, 2024

Hi @palderman, I think the error happened because of the methods chosen in the model for Photosynthesis (Leaf PhotoSynthesis response curve - hourly). I have tried changing to the Canopy curve (daily), it worked.

However, this error is happening only with forage crops. It might need a check with the forage crops photosynthesis module.

Thanks for supporting me to solve the issue.

Best, Ponraj

from dssat-csm-os.

palderman avatar palderman commented on July 29, 2024

Hi @ponraj1 , were you able to run the model with a debugger? It would be helpful to know what variable is the source of the issue. Looking at the line 621 of ETPHR.for for version v4.7.42 it seems like LFMAX might be the culprit:

IF (LFMAX .GT. 0.0 .AND. (QEFF*PARLF/LFMAX) .LT. 20.) THEN

You might also check the value for LFMAX for the cultivar you are using.

I believe the canopy photosynthesis option for the forage model is less well tested than the leaf level option. Just keep that in mind as you proceed. @chporter, would you agree with that?

from dssat-csm-os.

chporter avatar chporter commented on July 29, 2024

@palderman , yes I think that the forage modelers are using the leaf level option.
The current CSM v4.8 has already fixed this issue. I'm looping in @fabiooliveira72, who can verify.

from dssat-csm-os.

fabiooliveira72 avatar fabiooliveira72 commented on July 29, 2024

Hi @chporter and @palderman, I will verify this. Thank you

from dssat-csm-os.

fabiooliveira72 avatar fabiooliveira72 commented on July 29, 2024

Hi @ponraj1!

I would like to know if you still have this problem.

I checked this issue with PGLEAF and it was already fixed with this commit:
8dc7c73
&&
2c5eabb

Version v4.8.0.10 was correct this issue.

We are closing this issue on Friday.

Thank you,

Fabio Oliveira

from dssat-csm-os.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.