11#include "libmesh/id_types.h"
12#include "libmesh/petsc_vector.h"
13#include "libmesh/petsc_matrix.h"
25 for (
const auto & data : reporterVectors)
26 for (
const auto & val : *data)
34 std::vector<std::vector<Real> *> reporterVectors)
37 for (
auto & data : reporterVectors)
38 for (
auto & val : *data)
45 for (
const auto i : index_range(reporterVectors))
46 for (
const auto j : index_range(*reporterVectors[i]))
47 x.set(i, j, (*reporterVectors[i])[j]);
54 std::vector<std::vector<Real> *> reporterVectors)
56 for (
const auto i : index_range(reporterVectors))
57 for (
const auto j : index_range(*reporterVectors[i]))
58 (*reporterVectors[i])[j] =
x(i, j);
const std::vector< double > x
void copyPetscMatrixIntoReporter(const libMesh::PetscMatrix< Number > &x, std::vector< std::vector< Real > * > reporterVectors)
void copyReporterIntoPetscVector(const std::vector< std::vector< Real > * > reporterVectors, libMesh::PetscVector< Number > &x)
void copyReporterIntoPetscMatrix(const std::vector< std::vector< Real > * > reporterVectors, libMesh::PetscMatrix< Number > &x)
void copyPetscVectorIntoReporter(const libMesh::PetscVector< Number > &x, std::vector< std::vector< Real > * > reporterVectors)