Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_Workset_Utilities.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_WORKSET_UTILITIES_HPP
12#define PANZER_WORKSET_UTILITIES_HPP
13
14#include "Panzer_Traits.hpp"
15#include "Panzer_Workset.hpp"
16#include <vector>
17#include <iostream>
18
19namespace panzer {
20
26 std::vector<std::string>::size_type
27 getPureBasisIndex(std::string basis_name, const panzer::Workset& workset, WorksetDetailsAccessor& wda);
28
34 std::vector<std::string>::size_type
35 getBasisIndex(std::string basis_name, const panzer::Workset& workset, WorksetDetailsAccessor& wda);
36
37 std::vector<int>::size_type
38 getIntegrationRuleIndex(int ir_degree, const panzer::Workset& workset, WorksetDetailsAccessor& wda);
39
40 void printWorkset(std::ostream& os, const panzer::Workset & workset, WorksetDetailsAccessor& wda);
41
42 // Temporarily provide non-wda versions so that Charon continues to build and work.
43 std::vector<std::string>::size_type getPureBasisIndex(std::string basis_name, const panzer::Workset& workset);
44 std::vector<std::string>::size_type getBasisIndex(std::string basis_name, const panzer::Workset& workset);
45 std::vector<int>::size_type getIntegrationRuleIndex(int ir_degree, const panzer::Workset& workset);
46 void printWorkset(std::ostream& os, const panzer::Workset & workset);
47}
48
49#endif
std::vector< std::string >::size_type getBasisIndex(std::string basis_name, const panzer::Workset &workset, WorksetDetailsAccessor &wda)
Returns the index in the workset bases for a particular BasisIRLayout name.
std::vector< std::string >::size_type getPureBasisIndex(std::string basis_name, const panzer::Workset &workset, WorksetDetailsAccessor &wda)
Returns the index in the workset bases for a particular PureBasis name.
std::vector< int >::size_type getIntegrationRuleIndex(int ir_degree, const panzer::Workset &workset, WorksetDetailsAccessor &wda)
void printWorkset(std::ostream &os, const panzer::Workset &workset, WorksetDetailsAccessor &wda)