Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_Workset_Builder_decl.hpp
Go to the documentation of this file.
1// @HEADER
2// ***********************************************************************
3//
4// Panzer: A partial differential equation assembly
5// engine for strongly coupled complex multiphysics systems
6// Copyright (2011) Sandia Corporation
7//
8// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
9// the U.S. Government retains certain rights in this software.
10//
11// Redistribution and use in source and binary forms, with or without
12// modification, are permitted provided that the following conditions are
13// met:
14//
15// 1. Redistributions of source code must retain the above copyright
16// notice, this list of conditions and the following disclaimer.
17//
18// 2. Redistributions in binary form must reproduce the above copyright
19// notice, this list of conditions and the following disclaimer in the
20// documentation and/or other materials provided with the distribution.
21//
22// 3. Neither the name of the Corporation nor the names of the
23// contributors may be used to endorse or promote products derived from
24// this software without specific prior written permission.
25//
26// THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY
27// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
28// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE
30// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
31// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
32// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
33// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
34// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
35// NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
36// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37//
38// Questions? Contact Roger P. Pawlowski (rppawlo@sandia.gov) and
39// Eric C. Cyr (eccyr@sandia.gov)
40// ***********************************************************************
41// @HEADER
42
43
44#ifndef __Panzer_Workset_Builder_hpp__
45#define __Panzer_Workset_Builder_hpp__
46
47#include <vector>
48#include <map>
49
50#include "Teuchos_RCP.hpp"
51
52#include "PanzerDiscFE_config.hpp"
54
55namespace panzer {
56
57 class Workset;
58 class WorksetDetails;
59
60 template<typename ArrayT>
61 Teuchos::RCP<std::vector<Workset> >
63 const std::string & elementBlock,
64 const std::vector<std::size_t>& local_cell_ids,
65 const ArrayT& vertex_coordinates);
66
67 template<typename ArrayT>
68 Teuchos::RCP<std::map<unsigned,Workset> >
70 const std::string & elementBlock,
71 const std::vector<std::size_t>& local_cell_ids,
72 const std::vector<std::size_t>& local_side_ids,
73 const ArrayT& vertex_coordinates,
74 const bool populate_value_arrays = true);
75
76 template<typename ArrayT>
77 Teuchos::RCP<std::map<unsigned,panzer::Workset> >
78 buildBCWorkset(const WorksetNeeds & needs_a,
79 const std::string & blockid_a,
80 const std::vector<std::size_t>& local_cell_ids_a,
81 const std::vector<std::size_t>& local_side_ids_a,
82 const ArrayT& vertex_coordinates_a,
83 const panzer::WorksetNeeds & needs_b,
84 const std::string & blockid_b,
85 const std::vector<std::size_t>& local_cell_ids_b,
86 const std::vector<std::size_t>& local_side_ids_b,
87 const ArrayT& vertex_coordinates_b);
88
95 template<typename ArrayT>
96 Teuchos::RCP<std::vector<Workset> >
98 const std::string & eblock_a,
99 const std::vector<std::size_t>& local_cell_ids_a,
100 const std::vector<std::size_t>& local_side_ids_a,
101 const ArrayT& vertex_coordinates_a,
102 const WorksetNeeds & needs_b,
103 const std::string & eblock_b,
104 const std::vector<std::size_t>& local_cell_ids_b,
105 const std::vector<std::size_t>& local_side_ids_b,
106 const ArrayT& vertex_coordinates_b);
107
108 template<typename ArrayT>
109 std::vector<Workset>::iterator
110 buildEdgeWorksets(const std::vector<std::size_t> & cell_indices,
111 const WorksetNeeds & needs_a,
112 const std::string & eblock_a,
113 const std::vector<std::size_t>& local_cell_ids_a,
114 const std::vector<std::size_t>& local_side_ids_a,
115 const ArrayT& vertex_coordinates_a,
116 const WorksetNeeds & needs_b,
117 const std::string & eblock_b,
118 const std::vector<std::size_t>& local_cell_ids_b,
119 const std::vector<std::size_t>& local_side_ids_b,
120 const ArrayT& vertex_coordinates_b,
121 std::vector<Workset>::iterator beg);
122
139 void populateValueArrays(std::size_t num_cells,
140 bool isSide,
141 const WorksetNeeds & pb,
143 const Teuchos::RCP<WorksetDetails> other_details = Teuchos::null);
144}
145
146#endif
void populateValueArrays(std::size_t num_cells, bool isSide, const WorksetNeeds &needs, WorksetDetails &details, const Teuchos::RCP< WorksetDetails > other_details)
Teuchos::RCP< std::vector< Workset > > buildWorksets(const WorksetNeeds &needs, const std::string &elementBlock, const std::vector< std::size_t > &local_cell_ids, const ArrayT &vertex_coordinates)
Teuchos::RCP< std::map< unsigned, Workset > > buildBCWorkset(const WorksetNeeds &needs, const std::string &elementBlock, const std::vector< std::size_t > &local_cell_ids, const std::vector< std::size_t > &local_side_ids, const ArrayT &vertex_coordinates, const bool populate_value_arrays=true)
Teuchos::RCP< std::vector< Workset > > buildEdgeWorksets(const WorksetNeeds &needs_a, const std::string &eblock_a, const std::vector< std::size_t > &local_cell_ids_a, const std::vector< std::size_t > &local_side_ids_a, const ArrayT &vertex_coordinates_a, const WorksetNeeds &needs_b, const std::string &eblock_b, const std::vector< std::size_t > &local_cell_ids_b, const std::vector< std::size_t > &local_side_ids_b, const ArrayT &vertex_coordinates_b)