mirror of
https://github.com/LCPQ/DEHam
synced 2024-12-22 04:13:44 +01:00
add error checking
This commit is contained in:
parent
5185407a4c
commit
39996be82e
@ -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]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user