Changeset 13727


Ignore:
Timestamp:
Oct 10, 2019 7:11:10 PM (6 weeks ago)
Author:
Christian Andersson
Message:

Changed default value of ncp to 500. Related to ticket:5857

Location:
PyFMI/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • PyFMI/trunk/CHANGELOG

    r13689 r13727  
    22
    33--- PyFMI-2.5.5 ---
     4    * Changed default ncp value from '0' to '500' (ticket:5857)
    45    * Changed default value for the sparse solver in CVode (if the
    56      systemsize is >100 and the non-zero pattern is less than 15% then
  • PyFMI/trunk/src/pyfmi/fmi_algorithm_drivers.py

    r13689 r13727  
    6565            Number of communication points. If ncp is zero, the solver will
    6666            return the internal steps taken.
    67             Default: '0'
     67            Default: '500'
    6868
    6969        initialize --
     
    169169        _defaults= {
    170170            'solver': 'CVode',
    171             'ncp':0,
     171            'ncp':500,
    172172            'initialize':True,
    173173            'sensitivities':None,
  • PyFMI/trunk/tests/test_fmi.py

    r13689 r13727  
    522522            run_case(True, "SPARSE", PYFMI_JACOBIAN_SPARSE_SIZE_LIMIT+1, {"Dep": [1]*PYFMI_JACOBIAN_SPARSE_SIZE_LIMIT})
    523523            run_case(True, "SPARSE", PYFMI_JACOBIAN_SPARSE_SIZE_LIMIT+1, {"Dep": [1]*PYFMI_JACOBIAN_SPARSE_SIZE_LIMIT}, True)
     524       
     525        @testattr(stddist = True)
     526        def test_ncp_option(self):
     527            model = Dummy_FMUModelME2([], "NoState.Example1.fmu", os.path.join(file_path, "files", "FMUs", "XML", "ME2.0"), _connect_dll=False)
     528            opts = model.simulate_options()
     529            assert opts["ncp"] == 500, opts["ncp"]
    524530           
    525531class Test_FMUModelME2:
Note: See TracChangeset for help on using the changeset viewer.