src/petscvector/algebra/vector/wrappersub.cpp
/* PetscVectorWrapperSub constructor with given IS = create subvector */
PetscVectorWrapperSub constructor with given IS = create subvector
PetscVectorWrapperSub constructor with given IS = create subvector
PetscVectorWrapperSub::PetscVectorWrapperSub(Vec new_inner_vector, IS new_subvector_is, bool new_free_is){
	if(DEBUG_MODE_PETSCVECTOR >= 100) std::cout << "(WrapperSub)CONSTRUCTOR: WrapperSub(inner_vec, IS)" << std::endl;
	free_is = new_free_is;
	inner_vector = new_inner_vector; 
	subvector_is = new_subvector_is;
	if(DEBUG_MODE_PETSCVECTOR >= 100) std::cout << " - get subvector from original vector" << std::endl;
	TRYCXX( VecGetSubVector(inner_vector, subvector_is, &subvector) );
}
PetscVectorWrapperSub :: PetscVectorWrapperSub ( Vec new_inner_vector , IS new_subvector_is , bool new_free_is ) { if ( DEBUG_MODE_PETSCVECTOR >= 100 ) std :: cout << " " << std :: endl ; free_is = new_free_is ; inner_vector = new_inner_vector ; subvector_is = new_subvector_is ; if ( DEBUG_MODE_PETSCVECTOR >= 100 ) std :: cout << " " << std :: endl ; TRYCXX ( VecGetSubVector ( inner_vector , subvector_is , & subvector ) ) ; }
PetscVectorWrapperSub constructor with given IS = create subvector
PetscVectorWrapperSub constructor with given IS = create subvector
/* free index set during destruction ? */ /* store old inner vector - will be used in the destructor to return subvector */ /* copy IS */ /* get subvector, restore it in destructor */