OGS
ParallelVectorMatrixAssembler.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
10
12{
14{
15public:
17 AbstractJacobianAssembler& jacobian_assembler);
18
21 LocalAssemblerInterface> const& local_assemblers,
22 std::vector<std::size_t> const* const active_elements,
23 std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_tables,
24 const double t, double const dt, std::vector<GlobalVector*> const& xs,
25 std::vector<GlobalVector*> const& x_prevs, int const process_id,
26 GlobalVector& b, GlobalMatrix& Jac);
27
28 void assemble(
30 LocalAssemblerInterface> const& local_assemblers,
31 std::vector<std::size_t> const* const active_elements,
32 std::vector<NumLib::LocalToGlobalIndexMap const*> const& dof_tables,
33 const double t, double const dt, std::vector<GlobalVector*> const& xs,
34 std::vector<GlobalVector*> const& x_prevs, int const process_id,
36
37private:
41
42 int const num_threads_;
43};
44
45} // namespace ProcessLib::Assembly
MathLib::EigenMatrix GlobalMatrix
MathLib::EigenVector GlobalVector
Base class for Jacobian assemblers.
void assemble(BaseLib::PolymorphicRandomAccessContainerView< LocalAssemblerInterface > const &local_assemblers, std::vector< std::size_t > const *const active_elements, std::vector< NumLib::LocalToGlobalIndexMap const * > const &dof_tables, const double t, double const dt, std::vector< GlobalVector * > const &xs, std::vector< GlobalVector * > const &x_prevs, int const process_id, GlobalMatrix &M, GlobalMatrix &K, GlobalVector &b)
ParallelVectorMatrixAssembler(AbstractJacobianAssembler &jacobian_assembler)
void assembleWithJacobian(BaseLib::PolymorphicRandomAccessContainerView< LocalAssemblerInterface > const &local_assemblers, std::vector< std::size_t > const *const active_elements, std::vector< NumLib::LocalToGlobalIndexMap const * > const &dof_tables, const double t, double const dt, std::vector< GlobalVector * > const &xs, std::vector< GlobalVector * > const &x_prevs, int const process_id, GlobalVector &b, GlobalMatrix &Jac)
Writes global matrices to disk for debugging purposes.
Writes local matrices to disk for debugging purposes.