mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Avoid unused variable warning in release build.
This commit is contained in:
parent
42511ad2e3
commit
63aae9a232
@ -174,11 +174,13 @@ namespace AutoDiff
|
|||||||
const std::vector<M>& jac)
|
const std::vector<M>& jac)
|
||||||
: val_(val), jac_(jac)
|
: val_(val), jac_(jac)
|
||||||
{
|
{
|
||||||
|
#ifndef NDEBUG
|
||||||
const int num_elem = val_.size();
|
const int num_elem = val_.size();
|
||||||
const int num_blocks = jac_.size();
|
const int num_blocks = jac_.size();
|
||||||
for (int block = 0; block < num_blocks; ++block) {
|
for (int block = 0; block < num_blocks; ++block) {
|
||||||
assert(num_elem == jac_[block].rows());
|
assert(num_elem == jac_[block].rows());
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
V val_;
|
V val_;
|
||||||
|
Loading…
Reference in New Issue
Block a user