mcellteam / mcell

MCell Monte Carlo Simulator of Cellular Microphysiology
Other
33 stars 11 forks source link

Cannot disable EPS_C warning #1

Closed jczech closed 11 years ago

jczech commented 11 years ago

This bug can be triggered using the following MDL:

WARNINGS { ALL_WARNINGS = IGNORED }
ITERATIONS = 10
TIME_STEP = 1e-6

DEFINE_SURFACE_CLASS surf {}
DEFINE_MOLECULES { V { DIFFUSION_CONSTANT_3D = 2e-6 } }
DEFINE_REACTIONS { V;@surf;->NULL [1e-4] }

INSTANTIATE world OBJECT {
    box BOX {
        CORNERS = [-0.25, -0.25, -0.25], [0.25, 0.25, 0.25]
        DEFINE_SURFACE_REGIONS {
            r {
                INCLUDE_ELEMENTS = [ALL_ELEMENTS]
                SURFACE_CLASS = surf
            }
        }
    }
    release_site RELEASE_SITE { SHAPE = world.box[r] MOLECULE = V NUMBER_TO_RELEASE = 100 }
}

Even when using "WARNINGS {ALL_WARNINGS = IGNORED}", the following is still printed:

"Warning: Probability less than EPS_C for reaction between..."

Furthermore, this message is not very meaningful for the user, and it’s questionable whether it shouldn’t even be a warning message at all.

jczech commented 11 years ago

This was fixed by the following commit:

f2ca1ca3af06c488485f30f65bd35146b71b2860