Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7E7C3EC9D for ; Tue, 19 Mar 2013 13:13:20 +0000 (UTC) Received: (qmail 14159 invoked by uid 500); 19 Mar 2013 13:13:19 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 13098 invoked by uid 500); 19 Mar 2013 13:13:18 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 12914 invoked by uid 99); 19 Mar 2013 13:13:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Mar 2013 13:13:16 +0000 Date: Tue, 19 Mar 2013 13:13:16 +0000 (UTC) From: "Luc Maisonobe (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (MATH-950) event state not updated if an unrelated event triggers a RESET_STATE during ODE integration MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Luc Maisonobe created MATH-950: ---------------------------------- Summary: event state not updated if an unrelated event triggers a RESET_STATE during ODE integration Key: MATH-950 URL: https://issues.apache.org/jira/browse/MATH-950 Project: Commons Math Issue Type: Bug Affects Versions: 3.1.1 Reporter: Luc Maisonobe Assignee: Luc Maisonobe Priority: Critical Fix For: 3.2 When an ODE solver manages several different event types, there are some unwanted side effects. If one event handler asks for a RESET_STATE (for integration state) when its eventOccurred method is called, the other event handlers that did not trigger an event in the same step are not updated correctly, due to an early return. As a result, when the next step is processed with a reset integration state, the forgotten event still refer to the start date of the previous state. This implies that when these event handlers will be checked for In some cases, the function defining an event g(double t, double[] y) is called with state parameters y that are completely wrong. In one case when the y array should have contained values between -1 and +1, one function call got values up to 1.0e20. The attached file reproduces the problem. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira