mirror of
https://github.com/LCPQ/DEHam
synced 2024-12-22 04:13:44 +01:00
values instead
This commit is contained in:
parent
2ca11527b5
commit
5185407a4c
@ -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 = VecGetValue(xr, 1, i, value);
|
||||
ierr = VecGetValues(xr, 1, i, value);
|
||||
PetscPrintf(PETSC_COMM_WORLD," Element # = %d Value = %18f \n", i, value[0]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user