Changeset 13609


Ignore:
Timestamp:
Sep 27, 2019 8:01:46 AM (2 months ago)
Author:
randersson
Message:

#5819 Fixed issue with index that was changed in previous commit, also added another setUp() that was missing in test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-5819/Python/src/tests_jmodelica/initialization/test_KINsolver_options.py

    r13603 r13609  
    231231        test if user can set variable scaling.
    232232        """
     233        self.setUp()
    233234        self.model.set('_iteration_variable_scaling', 0)
    234235        self.model.initialize()
     
    251252        log = parse_jmi_log(self.log_file_name)
    252253        solves = gather_solves(log)
    253         result = solves[1].block_solves[0].iterations[0].residual_scaling
     254        result = solves[0].block_solves[0].iterations[0].residual_scaling
    254255        expected = N.array([1., 1.])
    255256        err_msg = "Arrays are supposed to be different but are actually equal. Result={}\nExpected={}".format(result, expected)
Note: See TracChangeset for help on using the changeset viewer.