mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Fix bug added when adapting to new API.
Avoid using invalidated 'jacs', make copy.
This commit is contained in:
parent
a4a3505fae
commit
5ff65b40e1
@ -136,7 +136,8 @@ BOOST_AUTO_TEST_CASE(FunctionInitialisation)
|
||||
}
|
||||
|
||||
ADB::V v_copy(v);
|
||||
ADB f = ADB::function(std::move(v_copy), std::move(jacs));
|
||||
std::vector<ADB::M> jacs_copy(jacs);
|
||||
ADB f = ADB::function(std::move(v_copy), std::move(jacs_copy));
|
||||
|
||||
BOOST_REQUIRE(f.value().matrix() == v.matrix());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user