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)
47 x.set(i,
j, (*reporterVectors[i])[
j]);
54 std::vector<std::vector<Real> *> reporterVectors)
58 (*reporterVectors[i])[
j] =
x(i,
j);
void copyPetscVectorIntoReporter(const libMesh::PetscVector< Number > &x, std::vector< std::vector< Real > *> reporterVectors)
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)
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
void copyReporterIntoPetscMatrix(const std::vector< std::vector< Real > *> reporterVectors, libMesh::PetscMatrix< Number > &x)
auto index_range(const T &sizable)