[petsc-users] example to use GetVecType

Dominik Szczerba dominik at itis.ethz.ch
Mon Dec 12 07:27:58 CST 2011


Is there a C example how to use GetVecType?
I am trying to do something like

	// VecType* type;
	char type[1024];
	ierr = VecGetType(b, type);
	ierr = PetscSynchronizedFPrintf(PETSC_COMM_WORLD, stderr, "%s\n",
type); CHKERRQ(ierr);

but always get this or another error like cannot convert 'char*' to
'const char**' or similar.

Many thanks
Dominik


More information about the petsc-users mailing list