src/petscvector/algebra/vector/wrappersub.cpp
/* get single value with given id of the vector (works only with local id), really slow */
get single value with given id of the vector (works only with local id), really slow
get single value with given id of the vector ( works only with local id ) really slow
double PetscVectorWrapperSub::get(int i)
{
	if(DEBUG_MODE_PETSCVECTOR >= 100) std::cout << "(WrapperSub)FUNCTION: get(int)" << std::endl;
	PetscInt ni = 1;
	PetscInt ix[1];
	PetscScalar y[1];
	ix[0] = i;
	TRYCXX( VecGetValues(subvector,ni,ix,y) );
	return y[0];
}
double PetscVectorWrapperSub :: get ( int i ) { if ( DEBUG_MODE_PETSCVECTOR >= 100 ) std :: cout << " " << std :: endl ; PetscInt ni = 1 ; PetscInt ix [ 1 ] ; PetscScalar y [ 1 ] ; ix [ 0 ] = i ; TRYCXX ( VecGetValues ( subvector , ni , ix , y ) ) ; return y [ 0 ] ; }
get single value with given id of the vector (works only with local id), really slow
get single value with given id of the vector ( works only with local id ) really slow