Panzer  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Panzer_STK_LineMeshFactory.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Panzer: A partial differential equation assembly
4 // engine for strongly coupled complex multiphysics systems
5 //
6 // Copyright 2011 NTESS and the Panzer contributors.
7 // SPDX-License-Identifier: BSD-3-Clause
8 // *****************************************************************************
9 // @HEADER
10 
11 #ifndef __Panzer_STK_LineMeshFactory_hpp__
12 #define __Panzer_STK_LineMeshFactory_hpp__
13 
15 #include <Panzer_STK_Interface.hpp>
16 
17 namespace panzer_stk {
18 
19 class STK_Interface;
20 
26 public:
29 
32 
34  Teuchos::RCP<STK_Interface> buildMesh(stk::ParallelMachine parallelMach) const;
35 
36  virtual Teuchos::RCP<STK_Interface> buildUncommitedMesh(stk::ParallelMachine parallelMach) const;
37  virtual void completeMeshConstruction(STK_Interface & mesh,stk::ParallelMachine parallelMach) const;
38 
41 
44 
46  Teuchos::Tuple<std::size_t,2> procRankToProcTuple(std::size_t procRank) const;
47 
48 protected:
50 
51  void buildMetaData(stk::ParallelMachine parallelMach,STK_Interface & mesh) const;
52  void buildElements(stk::ParallelMachine parallelMach,STK_Interface & mesh) const;
53  void buildBlock(stk::ParallelMachine machRank,int xBlock,STK_Interface & mesh) const;
54 
55  std::pair<int,int> determineXElemSizeAndStart(int xBlock,unsigned int size,unsigned int rank) const;
56 
57  void addSideSets(STK_Interface & mesh) const;
58 
59  double x0_;
60  double xf_;
61 
62  int xBlocks_;
63 
64  int nXElems_;
65 
66  mutable unsigned int machRank_, machSize_;
68 };
69 
70 }
71 
72 #endif
void buildMetaData(stk::ParallelMachine parallelMach, STK_Interface &mesh) const
Teuchos::Tuple< std::size_t, 2 > procRankToProcTuple(std::size_t procRank) const
what is the 2D tuple describe this processor distribution
Teuchos::Tuple< std::size_t, 2 > procTuple_
virtual Teuchos::RCP< STK_Interface > buildUncommitedMesh(stk::ParallelMachine parallelMach) const
void buildBlock(stk::ParallelMachine machRank, int xBlock, STK_Interface &mesh) const
Teuchos::RCP< STK_Interface > buildMesh(stk::ParallelMachine parallelMach) const
Build the mesh object.
std::pair< int, int > determineXElemSizeAndStart(int xBlock, unsigned int size, unsigned int rank) const
Teuchos::RCP< const Teuchos::ParameterList > getValidParameters() const
From ParameterListAcceptor.
virtual void completeMeshConstruction(STK_Interface &mesh, stk::ParallelMachine parallelMach) const
void buildElements(stk::ParallelMachine parallelMach, STK_Interface &mesh) const
void addSideSets(STK_Interface &mesh) const
void setParameterList(const Teuchos::RCP< Teuchos::ParameterList > &paramList)
From ParameterListAcceptor.