Bug for big grid in CPG discretizer (C++): ValueError: vector too long

What happens: when run big models (> ~2M cells) with a corner-point geometry using c++ discretizer, DARTS fails with the message ValueError: vector too long.

How to reproduce: Run the main.py from the model in the attached archive cpg_sloping_fault.7z The model has 4M cells.

There are three c++ libraries used in the model: DARTS engines, DARTS discretizer, and opmcpg. The latest is usually installed as a requirement to DARTS python package. For compiling it with debug information, please use this repository: https://gitlab.tudelft.nl/isaifullin/opm_cpg

Edited by Ilshat Saifullin