mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #416 from atgeirr/fix-eigen-resize-nnc
Fixed Eigen array dimensions must be respected in resize().
This commit is contained in:
@@ -109,7 +109,7 @@ struct HelperOps
|
||||
nnc_trans = Eigen::Map<const V>(nnc->trans().data(), numNNC);
|
||||
} else {
|
||||
nnc_trans.resize(0);
|
||||
nnc_cells.resize(0,0);
|
||||
nnc_cells.resize(0, 2); // Required to have two columns.
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user