Number,
LinearAlgebra::distributed::Vector<Number, MemorySpace::CUDA>>
mf(mf_data, coef_size);
- LinearAlgebra::distributed::Vector<Number, MemorySpace::CUDA> in_dev(
- owned_set, MPI_COMM_WORLD);
- LinearAlgebra::distributed::Vector<Number, MemorySpace::CUDA> out_dev(
- owned_set, MPI_COMM_WORLD);
+ LinearAlgebra::distributed::Vector<Number, MemorySpace::CUDA> in_dev;
+ LinearAlgebra::distributed::Vector<Number, MemorySpace::CUDA> out_dev;
+ mf_data.initialize_dof_vector(in_dev);
+ mf_data.initialize_dof_vector(out_dev);
LinearAlgebra::ReadWriteVector<Number> rw_in(owned_set);
for (unsigned int i = 0; i < in_dev.local_size(); ++i)
fe_degree,
Number,
LinearAlgebra::distributed::Vector<Number, MemorySpace::CUDA>>
- mf(mf_data, coef_size, false);
- LinearAlgebra::distributed::Vector<Number, MemorySpace::CUDA> in_dev(
- owned_set, MPI_COMM_WORLD);
- LinearAlgebra::distributed::Vector<Number, MemorySpace::CUDA> out_dev(
- owned_set, MPI_COMM_WORLD);
+ mf(mf_data, coef_size, false);
+ LinearAlgebra::distributed::Vector<Number, MemorySpace::CUDA> in_dev;
+ LinearAlgebra::distributed::Vector<Number, MemorySpace::CUDA> out_dev;
+ mf_data.initialize_dof_vector(in_dev);
+ mf_data.initialize_dof_vector(out_dev);
LinearAlgebra::ReadWriteVector<Number> rw_in(owned_set);
for (unsigned int i = 0; i < in_dev.local_size(); ++i)
{