100 if(std::is_same<BoostArchiveType, boost::archive::text_oarchive>::value or
101 std::is_same<BoostArchiveType, boost::archive::binary_oarchive>::value)
103 print_vector_l2_norm(vector);
108 using Number =
typename VectorType::value_type;
109 if constexpr(std::is_same<std::remove_cv_t<VectorType>,
110 dealii::LinearAlgebra::distributed::Vector<Number>>::value)
112 for(
unsigned int i = 0; i < vector.locally_owned_size(); ++i)
114 archive & vector.local_element(i);
117 else if constexpr(std::is_same<std::remove_cv_t<VectorType>,
118 dealii::LinearAlgebra::distributed::BlockVector<Number>>::value)
120 for(
unsigned int i = 0; i < vector.n_blocks(); ++i)
122 for(
unsigned int j = 0; j < vector.block(i).locally_owned_size(); ++j)
124 archive & vector.block(i).local_element(j);
130 AssertThrow(
false, dealii::ExcMessage(
"Reading into this VectorType not supported."));
134 if(std::is_same<BoostArchiveType, boost::archive::text_iarchive>::value or
135 std::is_same<BoostArchiveType, boost::archive::binary_iarchive>::value)
137 print_vector_l2_norm(vector);