Panzer Version of the Day
Loading...
Searching...
No Matches
Panzer_ResponseBase.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_ResponseBase_hpp__
12#define __Panzer_ResponseBase_hpp__
13
14#include <string>
15
17
18namespace panzer {
19
20// *** Derive, do not modify this interface ***
21
28public:
29
35 ResponseBase(const std::string & responseName) :
36 responseName_(responseName) {}
37
38 virtual ~ResponseBase() {}
39
42 std::string getName() const { return responseName_; }
43
47 std::string getLookupName() const { return buildLookupName(responseName_); }
48
52 static std::string buildLookupName(const std::string & responseName)
53 { return "RESPONSE_"+responseName; }
54
56 virtual void ghostToGlobal(int)
57 { scatterResponse(); }
58
59 virtual void initializeData()
61
63 virtual void scatterResponse() = 0;
64
65 virtual void initializeResponse() = 0;
66
67private:
68
69 std::string responseName_;
70
71 // hide these methods
74};
75
76}
77
78#endif
static std::string buildLookupName(const std::string &responseName)
virtual void scatterResponse()=0
Prepare the response for access by the user (do global communication)
ResponseBase(const std::string &responseName)
std::string getLookupName() const
std::string getName() const
virtual void ghostToGlobal(int)
Inherited from GlobalEvaluationData,.
ResponseBase(const ResponseBase &)
virtual void initializeResponse()=0