www.mooseframework.org
Public Member Functions | List of all members
AddSlaveFluxVectorAction Class Reference

#include <AddSlaveFluxVectorAction.h>

Inheritance diagram for AddSlaveFluxVectorAction:
[legend]

Public Member Functions

 AddSlaveFluxVectorAction (const InputParameters &params)
 
virtual void act ()
 

Detailed Description

Definition at line 17 of file AddSlaveFluxVectorAction.h.

Constructor & Destructor Documentation

◆ AddSlaveFluxVectorAction()

AddSlaveFluxVectorAction::AddSlaveFluxVectorAction ( const InputParameters &  params)

Definition at line 24 of file AddSlaveFluxVectorAction.C.

24  : Action(params)
25 {
26 }

Member Function Documentation

◆ act()

void AddSlaveFluxVectorAction::act ( )
virtual

Definition at line 29 of file AddSlaveFluxVectorAction.C.

30 {
31  _problem->getNonlinearSystemBase().addVector("slave_flux", false, GHOSTED);
32  _problem->getNonlinearSystemBase().zeroVectorForResidual("slave_flux");
33 
34  // It is risky to apply this optimization to contact problems
35  // since the problem configuration may be changed during Jacobian
36  // evaluation. We therefore turn it off for all contact problems so that
37  // PETSc-3.8.4 or higher will have the same behavior as PETSc-3.8.3 or older.
38  if (!_problem->isSNESMFReuseBaseSetbyUser())
39  _problem->setSNESMFReuseBase(false, false);
40 }

The documentation for this class was generated from the following files: