Hi, Just out of curiosity, I'm a bit confused by the parameter option MAT_NEW_NONZERO_LOCATION_ERR. It triggers an error if you try to insert/add a value in the non-zero structure, regardless of the matrix preallocation status. In what case would such an option be useful? Thank you, Thibaut