https://mooseframework.inl.gov
SubChannelSyntax.C
Go to the documentation of this file.
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 #include "SubChannelSyntax.h"
11 #include "ActionFactory.h"
12 #include "Syntax.h"
13 
14 namespace SubChannel
15 {
16 
17 void
18 associateSyntax(Syntax & syntax, ActionFactory & /*action_factory*/)
19 {
20  registerSyntax("SubChannelAddVariablesAction", "SubChannel");
21  registerSyntax("SubChannelCreateProblemAction", "SubChannel");
22 
23  registerTask("sch:build_subchannel_mesh", false);
24 
25  try
26  {
27  syntax.addDependency("sch:build_subchannel_mesh", "check_copy_nodal_vars");
28  }
30  {
31  mooseError("Cyclic Dependency Detected during addDependency() calls");
32  }
33 
34  registerSyntax("QuadSubChannelBuildMeshAction", "QuadSubChannelMesh");
35  registerSyntax("AddMeshGeneratorAction", "QuadSubChannelMesh/*");
36 
37  registerSyntax("QuadInterWrapperBuildMeshAction", "QuadInterWrapperMesh");
38  registerSyntax("AddMeshGeneratorAction", "QuadInterWrapperMesh/*");
39 
40  registerSyntax("TriSubChannelBuildMeshAction", "TriSubChannelMesh");
41  registerSyntax("AddMeshGeneratorAction", "TriSubChannelMesh/*");
42 
43  registerSyntax("TriInterWrapperBuildMeshAction", "TriInterWrapperMesh");
44  registerSyntax("AddMeshGeneratorAction", "TriInterWrapperMesh/*");
45 }
46 
47 }
void addDependency(const std::string &task, const std::string &pre_req)
void mooseError(Args &&... args)
void associateSyntax(Syntax &syntax, ActionFactory &action_factory)