src/petscvector/algebra/vector/wrappercomb.cpp
/* get value from the vector, really slow */
get value from the vector, really slow
get value from the vector really slow
int PetscVectorWrapperCombNode::get_value(int index) const{
	if(DEBUG_MODE_PETSCVECTOR >= 100) std::cout << "(WrapperCombNode)FUNCTION: get_value(int)" << std::endl;
	PetscInt ni = 1;
	PetscInt ix[1];
	PetscScalar y[1];
	ix[0] = index;
	TRYCXX( VecGetValues(this->inner_vector,ni,ix,y) );	
	return y[0];
}
int PetscVectorWrapperCombNode :: get_value ( int index ) const { if ( DEBUG_MODE_PETSCVECTOR >= 100 ) std :: cout << " " << std :: endl ; PetscInt ni = 1 ; PetscInt ix [ 1 ] ; PetscScalar y [ 1 ] ; ix [ 0 ] = index ; TRYCXX ( VecGetValues ( this -> inner_vector , ni , ix , y ) ) ; return y [ 0 ] ; }
get value from the vector, really slow
get value from the vector really slow