mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-15 22:31:56 -06:00
use std::move(), solving conflicts.
This commit is contained in:
parent
b4d834508c
commit
0d0ff9d961
@ -2396,7 +2396,7 @@ namespace detail {
|
||||
for (int block = 0; block < num_blocks; ++block) {
|
||||
fastSparseProduct(dpm_diag, p.derivative()[block], jacs[block]);
|
||||
}
|
||||
return ADB::function(pm, jacs);
|
||||
return ADB::function(std::move(pm), std::move(jacs));
|
||||
} else {
|
||||
return ADB::constant(V::Constant(n, 1.0), p.blockPattern());
|
||||
}
|
||||
@ -2424,7 +2424,7 @@ namespace detail {
|
||||
for (int block = 0; block < num_blocks; ++block) {
|
||||
fastSparseProduct(dtm_diag, p.derivative()[block], jacs[block]);
|
||||
}
|
||||
return ADB::function(tm, jacs);
|
||||
return ADB::function(std::move(tm), std::move(jacs));
|
||||
} else {
|
||||
return ADB::constant(V::Constant(n, 1.0), p.blockPattern());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user