<div dir="ltr">Dear PETSC users,<div><br></div><div>Using C++, I tried to build a very large sparse matrix and had a problem shown below. Indices of the matrix should be "long int" rather than "int" but PETSC does not allow this. How could I dodge this problem? Thanks for your comments.</div><div><br></div><div>Regards,</div><div>Evan</div><div><br></div><div><div>fe.cpp(2009): error: argument of type "long *" is incompatible with parameter of type "const PetscInt={int} *"</div><div>                ierr=MatSetValues(Bseq, 1, &mat_b_i_partitioned[i], 1, &mat_b_j_partitioned[i], &mat_b_val_partitioned[i], ADD_VALUES); </div></div></div>