-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28291 from grunerjmeier/BlockRestrictionDebugOutput
add BlockRestrictionDebugOutput
- Loading branch information
Showing
9 changed files
with
575 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
framework/doc/content/source/outputs/BlockRestrictionDebugOutput.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# BlockRestrictionDebugOutput | ||
|
||
!syntax description /Outputs/BlockRestrictionDebugOutput | ||
|
||
## Overview | ||
|
||
The BlockRestrictionDebugOutput object is, as the name suggests, designed to write out | ||
information regarding block-restriction of Moose objects for debugging purposes. Please | ||
refer to the [Debug/index.md] for more information. | ||
|
||
!syntax parameters /Outputs/BlockRestrictionDebugOutput | ||
|
||
!syntax inputs /Outputs/BlockRestrictionDebugOutput | ||
|
||
!syntax children /Outputs/BlockRestrictionDebugOutput |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
//* This file is part of the MOOSE framework | ||
//* https://www.mooseframework.org | ||
//* | ||
//* All rights reserved, see COPYRIGHT for full restrictions | ||
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT | ||
//* | ||
//* Licensed under LGPL 2.1, please see LICENSE for details | ||
//* https://www.gnu.org/licenses/lgpl-2.1.html | ||
|
||
#pragma once | ||
|
||
// MOOSE includes | ||
#include "Output.h" | ||
|
||
// Forward declarations | ||
class NonlinearSystemBase; | ||
/** | ||
* A class for producing various debug related outputs | ||
* | ||
* This class may be used from inside the [Outputs] block or via the [Debug] block (preferred) | ||
*/ | ||
class BlockRestrictionDebugOutput : public Output | ||
{ | ||
public: | ||
static InputParameters validParams(); | ||
|
||
/** | ||
* Get the supported scopes of output (e.g., variables, etc.) | ||
*/ | ||
static MultiMooseEnum getScopes(std::string default_scopes = ""); | ||
|
||
BlockRestrictionDebugOutput(const InputParameters & parameters); | ||
|
||
protected: | ||
/// multi-enum of object types to show the block-restriction for | ||
const MultiMooseEnum & _scope; | ||
|
||
/// Reference to MOOSE's nonlinear system | ||
const NonlinearSystemBase & _nl; | ||
|
||
/// Reference to libMesh system | ||
const System & _sys; | ||
|
||
/** | ||
* Perform the debugging output | ||
*/ | ||
virtual void output() override; | ||
|
||
/** | ||
* Prints block-restriction information | ||
*/ | ||
void printBlockRestrictionMap() const; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.