2
0
mirror of https://github.com/LCPQ/DEHam synced 2024-12-22 04:13:44 +01:00

add error checking

This commit is contained in:
vijay gopal chilkuri 2016-12-21 11:56:39 +01:00
parent 5185407a4c
commit 39996be82e

View File

@ -221,7 +221,7 @@ int main(int argc,char **argv)
ierr = VecNorm(xr, NORM_2, &norm);CHKERRQ(ierr);
PetscPrintf(PETSC_COMM_WORLD," Norm = %18f \n", (double)norm);
for (i=Istart; i<Iend; i+=getdata.nnz) {
ierr = VecGetValues(xr, 1, i, value);
ierr = VecGetValues(xr, 1, i, value);CHKERRQ(ierr)
PetscPrintf(PETSC_COMM_WORLD," Element # = %d Value = %18f \n", i, value[0]);
}