Revision ef3dd81b399a4a90a236c48abc2a23d5f0940aef authored by Lars Bilke on 13 April 2023, 07:00:37 UTC, committed by Christoph Lehmann on 26 April 2023, 15:01:25 UTC
- Implementation in AddTest(), variants are automatically added. - Currently for TH2M and ThermoRichardsMechanics - Use 4 threads (ctest scheduling takes this into account too, no system overload) - Can be selected with e.g.: ctest -L ^omp
1 parent ed3d93f
AnalyticalJacobianAssembler.cpp
/**
* \file
* \copyright
* Copyright (c) 2012-2023, OpenGeoSys Community (http://www.opengeosys.org)
* Distributed under a Modified BSD License.
* See accompanying file LICENSE.txt or
* http://www.opengeosys.org/project/license
*
*/
#include "AnalyticalJacobianAssembler.h"
#include "CoupledSolutionsForStaggeredScheme.h"
#include "LocalAssemblerInterface.h"
namespace ProcessLib
{
void AnalyticalJacobianAssembler::assembleWithJacobian(
LocalAssemblerInterface& local_assembler, double const t, double const dt,
std::vector<double> const& local_x, std::vector<double> const& local_xdot,
std::vector<double>& local_M_data, std::vector<double>& local_K_data,
std::vector<double>& local_b_data, std::vector<double>& local_Jac_data)
{
local_assembler.assembleWithJacobian(t, dt, local_x, local_xdot,
local_M_data, local_K_data,
local_b_data, local_Jac_data);
}
void AnalyticalJacobianAssembler::assembleWithJacobianForStaggeredScheme(
LocalAssemblerInterface& local_assembler, double const t, double const dt,
Eigen::VectorXd const& local_x, Eigen::VectorXd const& local_xdot,
int const process_id, std::vector<double>& local_M_data,
std::vector<double>& local_K_data, std::vector<double>& local_b_data,
std::vector<double>& local_Jac_data)
{
local_assembler.assembleWithJacobianForStaggeredScheme(
t, dt, local_x, local_xdot, process_id, local_M_data, local_K_data,
local_b_data, local_Jac_data);
}
std::unique_ptr<AbstractJacobianAssembler> AnalyticalJacobianAssembler::copy()
const
{
return std::make_unique<AnalyticalJacobianAssembler>(*this);
}
} // namespace ProcessLib
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...