Giter Club home page Giter Club logo

Comments (2)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024

Ah. I believe I figured this out. As constructed, an ITN intervention may have 
a postprandial effect specified like this (copied from the test 
scenario2ITNs.xml):

<postprandialKillingEffect baseFactor="0.10" holeFactor="0" 
holeScalingFactor="0.1" insecticideFactor="0.55" insecticideScalingFactor="0.1" 
interactionFactor="0"/>

Then, when calculating the survivalFactor in ITN.cpp (line 466),

survivalFactor = (1.-killingEffect)*invBaseSurvival,

with the parameter specifications exactly from the scenario file given above, 
it turns out, 

invBaseSurvival = 1/(1.-killingEffect),

and survivalFactor _should be_ identically unity. 

In this case, the call to assert() should not fail, but it occasionally does. I 
expect this is due to the the division in invBaseSurvival, failing at some 
tiny, tiny precision. Occasionally this is evaluated as ever so slightly 
greater than unity. I believe this causes assert() to fail. 

The author of ITN.cpp saw this, I think, with the subsequent lines including,

if ...
else if (survivalFactor > 1.0)
        return 1.0;

I've commented out the call to assert() and rebuilt. I do not dump core anymore 
and the simulations appear okay. 

Maybe this will help another user out there. 

Thanks and any comments are of course welcome! 



Original comment by [email protected] on 6 Mar 2015 at 8:44

from openmalaria.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 28, 2024
Interesting. Sounds like another case where a small tolerance is necessary.

Richard, would it be possible to send an example scenario where this fails, or 
at least do some testing?

Tobi, can you fix?

Original comment by [email protected] on 12 Mar 2015 at 8:22

from openmalaria.

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.