Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 3 : //* 4 : //* All rights reserved, see COPYRIGHT for full restrictions 5 : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT 6 : //* 7 : //* Licensed under LGPL 2.1, please see LICENSE for details 8 : //* https://www.gnu.org/licenses/lgpl-2.1.html 9 : 10 : #pragma once 11 : 12 : #include "NonlinearThread.h" 13 : #include "MooseObjectTagWarehouse.h" 14 : 15 : #include "libmesh/elem_range.h" 16 : 17 : // Forward declarations 18 : class FEProblemBase; 19 : class NonlinearSystemBase; 20 : class IntegratedBCBase; 21 : class DGKernelBase; 22 : class InterfaceKernelBase; 23 : class Kernel; 24 : class FVElementalKernel; 25 : 26 : class ComputeJacobianThread : public NonlinearThread 27 : { 28 : public: 29 : ComputeJacobianThread(FEProblemBase & fe_problem, const std::set<TagID> & tags); 30 : 31 : // Splitting Constructor 32 : ComputeJacobianThread(ComputeJacobianThread & x, Threads::split split); 33 : 34 : virtual ~ComputeJacobianThread(); 35 : 36 : virtual void postElement(const Elem * /*elem*/) override; 37 : 38 : void join(const ComputeJacobianThread & /*y*/); 39 : 40 : protected: 41 : const std::set<TagID> & _tags; 42 : 43 : void determineObjectWarehouses() override; 44 : void accumulateNeighbor() override; 45 : virtual void accumulateNeighborLower() override; 46 : virtual void accumulateLower() override; 47 0 : virtual void accumulate() override {} 48 : 49 0 : virtual void compute(ResidualObject &) override { mooseError("Not implemented"); }; 50 : void compute(KernelBase & kernel) override; 51 : void compute(FVElementalKernel & kernel) override; 52 : void compute(IntegratedBCBase & bc) override; 53 : void compute(DGKernelBase & dg, const Elem * neighbor) override; 54 : void compute(InterfaceKernelBase & ik) override; 55 : using NonlinearThread::computeOnInternalFace; 56 : virtual void computeOnInternalFace() override; 57 : 58 2951 : std::string objectType() const override { return "Jacobian"; } 59 : };