コード例 #1
0
void EigenSparseVector<T>::insert (const DenseSubVector<T>& V,
				   const std::vector<numeric_index_type>& dof_indices)
{
  libmesh_assert_equal_to (V.size(), dof_indices.size());

  for (unsigned int i=0; i<V.size(); i++)
    this->set (dof_indices[i], V(i));
}
コード例 #2
0
void EpetraVector<T>::insert (const DenseSubVector<T>& v,
			      const std::vector<unsigned int>& dof_indices)
{
  libmesh_assert_equal_to (v.size(), dof_indices.size());

  for (unsigned int i=0; i < v.size(); ++i)
    this->set (dof_indices[i], v(i));
}
コード例 #3
0
void DistributedVector<T>::insert (const DenseSubVector<T>& V,
                                   const std::vector<numeric_index_type>& dof_indices)
{
  libmesh_assert_equal_to (V.size(), dof_indices.size());
  libmesh_assert (this->initialized());
  libmesh_assert_equal_to (_values.size(), _local_size);
  libmesh_assert_equal_to ((_last_local_index - _first_local_index), _local_size);

  for (unsigned int i=0; i<V.size(); i++)
    this->set (dof_indices[i], V(i));
}