Hello PETSc users,

I have a VECNEST norm issue and would appreciate help.

I create a nest vector:
VecCreateNest(PETSC_COMM_WORLD, 2, NULL, subG, &G);

But:
VecNorm(G, NORM_2, &nG) returns 0

While the sub-vectors are clearly nonzero:
VecNestGetSubVec(G,0,&v0); VecNorm(v0,NORM_2,&n0); // n0 > 0
VecNestGetSubVec(G,1,&v1); VecNorm(v1,NORM_2,&n1); // n1 > 0

Can someone give a hint on what might go wrong?

Thanks,

M

Reply via email to