https://mooseframework.inl.gov
PorousFlowConnectedNodesTest.h
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 #pragma once
11 
12 #include "gtest/gtest.h"
14 
15 class PorousFlowConnectedNodesTest : public ::testing::Test
16 {
17 protected:
18  void SetUp()
19  {
21  _n1.addGlobalNode(1);
22  _n1.addGlobalNode(12);
23  _n1.addGlobalNode(123);
24  _n1.addGlobalNode(1234);
26  _n1.addConnection(1, 1);
27  _n1.addConnection(1, 12);
28  _n1.addConnection(1, 123);
29  _n1.addConnection(1, 123);
30  _n1.addConnection(1, 1234);
31  _n1.addConnection(123, 1234);
32  _n1.addConnection(12, 1234);
34 
36  _n2.addGlobalNode(2);
37  _n2.addGlobalNode(4);
38  _n2.addGlobalNode(6);
39  }
40 
43 };
void addConnection(dof_id_type global_node_from, dof_id_type global_node_to)
Specifies that global_node_to is connected to global_node_from.
void finalizeAddingConnections()
Signal that all global node IDs have been added to the internal data structures.
Class designed to hold node ID information and information about nodal connectivity.
void finalizeAddingGlobalNodes()
Signal that all global node IDs have been added to the internal data structures.
void addGlobalNode(dof_id_type global_node_ID)
Add the given global_node_ID to the internal data structures If the global node ID has already been a...