def test_get_value_at_indices():
    model = BmiHeat()
    model.initialize()

    z0 = model.get_value_ptr("plate_surface__temperature")
    z1 = model.get_value_at_indices("plate_surface__temperature", [0, 2, 4])

    assert_array_almost_equal(z0.take((0, 2, 4)), z1)
Example #2
0
def test_get_value_at_indices():
    model = BmiHeat()
    model.initialize()

    z0 = model.get_value_ref('plate_surface__temperature')
    z1 = model.get_value_at_indices('plate_surface__temperature', [0, 2, 4])

    assert_array_almost_equal(z0.take((0, 2, 4)), z1)