LCOV - code coverage report
Current view: top level - include/postprocessors - NumAugmentedLagrangeIterations.h (source / functions) Hit Total Coverage
Test: idaholab/moose contact: 8601ad Lines: 3 4 75.0 %
Date: 2025-07-18 13:27:36 Functions: 3 4 75.0 %
Legend: Lines: hit not hit

          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 "GeneralPostprocessor.h"
      13             : 
      14             : class AugmentedLagrangianContactProblemInterface;
      15             : 
      16             : /**
      17             :  * Get the number of extra augmented Lagrange loops around the non-linear solve. This PP will return
      18             :  * zero if the current problem is not an augmented Lagrangian problem, and for all time steps that
      19             :  * converged on the first iteration.
      20             :  */
      21             : class NumAugmentedLagrangeIterations : public GeneralPostprocessor
      22             : {
      23             : public:
      24             :   static InputParameters validParams();
      25             : 
      26             :   NumAugmentedLagrangeIterations(const InputParameters & parameters);
      27             : 
      28          26 :   virtual void initialize() override {}
      29          26 :   virtual void execute() override {}
      30          26 :   virtual void finalize() override {}
      31             : 
      32             :   virtual PostprocessorValue getValue() const override;
      33             : 
      34             :   // only needed for ElementPostprocessors and NodalPostprocessors
      35           0 :   virtual void threadJoin(const UserObject &) override {}
      36             : 
      37             : protected:
      38             :   /// Augmented Lagrange problem
      39             :   AugmentedLagrangianContactProblemInterface * const _augmented_lagrange_problem;
      40             : };

Generated by: LCOV version 1.14