Changeset 14066


Ignore:
Timestamp:
Nov 14, 2019 8:05:02 PM (3 weeks ago)
Author:
Christian Andersson
Message:

Updated ticket:5720 after review

Location:
branches/dev-cw-ii
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-cw-ii/Python/src/tests_jmodelica/test_fmi.py

    r14008 r14066  
    246246        model.set("_cs_solver",2) #Set the no state solver
    247247
    248         nose.tools.assert_raises(Exception, model.initialize)
     248        #The model has states and thus an exception should be raised
     249        nose.tools.assert_raises(Exception, model.initialize)
    249250
    250251    @testattr(stddist_full = True)
  • branches/dev-cw-ii/Python/src/tests_jmodelica/test_fmi_2.py

    r14008 r14066  
    188188        model.set("_cs_solver",2) #Set the no state solver
    189189
     190        #The model has states and thus an exception should be raised
    190191        nose.tools.assert_raises(Exception, model.initialize)
    191192   
  • branches/dev-cw-ii/RuntimeLibrary/src/jmi/jmi_ode_no_state.c

    r14008 r14066  
    3333    size_t k;
    3434   
    35     jmi_real_t* event_indicators = 0;
    36     jmi_real_t* event_indicators_previous = 0;
     35    jmi_real_t* event_indicators = NULL;
     36    jmi_real_t* event_indicators_previous = NULL;
    3737   
    38     if(sizes.event_indicators) {
     38    if(sizes.event_indicators > 0) {
    3939        event_indicators          = solver->event_indicators;
    4040        event_indicators_previous = solver->event_indicators_previous;
  • branches/dev-cw-ii/RuntimeLibrary/src/jmi/jmi_ode_no_state.h

    r12187 r14066  
    1919
    2020
    21 /** \file jmi_ode_cvode.h
    22  *  \brief Structures and functions for handling an explicit EULER ODE solver.
     21/** \file jmi_ode_no_state.h
     22 *  \brief Structures and functions for handling an ODE solver without any states.
    2323 */
    2424
Note: See TracChangeset for help on using the changeset viewer.