Skip to content

Commit

Permalink
Merge pull request #26656 from lingzou/use-CoupledName
Browse files Browse the repository at this point in the history
Use CoupledName as an alias for std::vector<VariableName>
  • Loading branch information
lindsayad authored Jan 27, 2024
2 parents 995e101 + 2b1c0e7 commit 41d8b30
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 16 deletions.
4 changes: 4 additions & 0 deletions framework/include/utils/MooseTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -1057,6 +1057,10 @@ DerivativeStringClass(NonlinearSystemName);
/// Command line argument, specialized to handle quotes in vector arguments
DerivativeStringClass(CLIArgString);

/**
* additional MOOSE typedefs
*/
typedef std::vector<VariableName> CoupledName;
namespace Moose
{
extern const TagName SOLUTION_TAG;
Expand Down
3 changes: 0 additions & 3 deletions modules/contact/include/actions/ContactAction.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,6 @@ class ContactAction : public Action
/// Whether mortar dynamic contact constraints are to be used
const bool _mortar_dynamics;

/// Type that we use in Actions for declaring coupling
typedef std::vector<VariableName> CoupledName;

private:
/**
* Generate mesh and other Moose objects for Mortar contact
Expand Down
3 changes: 0 additions & 3 deletions modules/navier_stokes/include/actions/CNSAction.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,4 @@ class CNSAction : public Action
std::set<SubdomainID> _block_ids;
/// pressure variable name
const std::string _pressure_variable_name;

/// Type that we use in Actions for declaring coupling
typedef std::vector<VariableName> CoupledName;
};
3 changes: 0 additions & 3 deletions modules/navier_stokes/include/actions/INSAction.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,4 @@ class INSAction : public Action
std::set<SubdomainID> _block_ids;
/// pressure variable name
const std::string _pressure_variable_name;

/// Type that we use in Actions for declaring coupling
typedef std::vector<VariableName> CoupledName;
};
4 changes: 0 additions & 4 deletions modules/navier_stokes/include/base/NSFVBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ class NSFVBase : public BaseType
///@}

protected:
/// Type that we use in Actions for declaring coupling between the solutions
/// of different physics components
typedef std::vector<VariableName> CoupledName;

/// Adds NS variables
void addNSVariables();
/// Adds NS initial conditions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,4 @@ class DomainIntegralAction : public Action
* is greater than 1
*/
const bool _used_by_xfem_to_grow_crack;

/// Type that we use in Actions for declaring coupling
typedef std::vector<VariableName> CoupledName;
};

0 comments on commit 41d8b30

Please sign in to comment.