FEI Package Browser (Single Doxygen Collection)
Version of the Day
Toggle main menu visibility
Loading...
Searching...
No Matches
base
fei_SlaveVariable.hpp
Go to the documentation of this file.
1
#ifndef _SlaveVariable_hpp_
2
#define _SlaveVariable_hpp_
3
4
/*--------------------------------------------------------------------*/
5
/* Copyright 2005 Sandia Corporation. */
6
/* Under the terms of Contract DE-AC04-94AL85000, there is a */
7
/* non-exclusive license for use of this work by or on behalf */
8
/* of the U.S. Government. Export of this program may require */
9
/* a license from the United States Government. */
10
/*--------------------------------------------------------------------*/
11
16
class
SlaveVariable
{
17
public
:
19
SlaveVariable
()
20
:
nodeID_
(-1),
fieldID_
(-1),
offset_
(0){
21
masterNodes_
=
new
std::vector<GlobalID>;
masterFields_
=
new
std::vector<int>;
22
weights_
=
new
std::vector<double>;
23
}
24
26
~SlaveVariable
() {
delete
masterNodes_
;
delete
masterFields_
;
delete
weights_
;}
27
28
GlobalID
getNodeID
() {
return
(
nodeID_
);}
29
void
setNodeID
(
GlobalID
nid) {
nodeID_
= nid;}
30
31
int
getFieldID
() {
return
(
fieldID_
);}
32
void
setFieldID
(
int
fid) {
fieldID_
= fid;}
33
34
int
getFieldOffset
() {
return
(
offset_
);}
35
void
setFieldOffset
(
int
foff) {
offset_
= foff;}
36
37
const
std::vector<GlobalID>*
getMasterNodeIDs
() {
return
(
masterNodes_
);}
38
const
std::vector<int>*
getMasterFields
() {
return
(
masterFields_
);}
39
const
std::vector<double>*
getWeights
() {
return
(
weights_
);}
40
41
void
addMasterNodeID
(
GlobalID
masterNode)
42
{
masterNodes_
->push_back(masterNode);}
43
44
void
addMasterField
(
int
masterField)
45
{
masterFields_
->push_back(masterField);}
46
47
void
addWeight
(
double
weight)
48
{
weights_
->push_back(weight);}
49
50
private
:
51
GlobalID
nodeID_
;
52
int
fieldID_
;
53
int
offset_
;
54
55
std::vector<GlobalID>*
masterNodes_
;
56
std::vector<int>*
masterFields_
;
57
std::vector<double>*
weights_
;
58
};
59
60
#endif
SlaveVariable::setNodeID
void setNodeID(GlobalID nid)
Definition
fei_SlaveVariable.hpp:29
SlaveVariable::SlaveVariable
SlaveVariable()
Definition
fei_SlaveVariable.hpp:19
SlaveVariable::getNodeID
GlobalID getNodeID()
Definition
fei_SlaveVariable.hpp:28
SlaveVariable::getMasterNodeIDs
const std::vector< GlobalID > * getMasterNodeIDs()
Definition
fei_SlaveVariable.hpp:37
SlaveVariable::nodeID_
GlobalID nodeID_
Definition
fei_SlaveVariable.hpp:51
SlaveVariable::setFieldID
void setFieldID(int fid)
Definition
fei_SlaveVariable.hpp:32
SlaveVariable::masterNodes_
std::vector< GlobalID > * masterNodes_
Definition
fei_SlaveVariable.hpp:55
SlaveVariable::fieldID_
int fieldID_
Definition
fei_SlaveVariable.hpp:52
SlaveVariable::addMasterField
void addMasterField(int masterField)
Definition
fei_SlaveVariable.hpp:44
SlaveVariable::addWeight
void addWeight(double weight)
Definition
fei_SlaveVariable.hpp:47
SlaveVariable::~SlaveVariable
~SlaveVariable()
Definition
fei_SlaveVariable.hpp:26
SlaveVariable::setFieldOffset
void setFieldOffset(int foff)
Definition
fei_SlaveVariable.hpp:35
SlaveVariable::getMasterFields
const std::vector< int > * getMasterFields()
Definition
fei_SlaveVariable.hpp:38
SlaveVariable::masterFields_
std::vector< int > * masterFields_
Definition
fei_SlaveVariable.hpp:56
SlaveVariable::weights_
std::vector< double > * weights_
Definition
fei_SlaveVariable.hpp:57
SlaveVariable::offset_
int offset_
Definition
fei_SlaveVariable.hpp:53
SlaveVariable::getWeights
const std::vector< double > * getWeights()
Definition
fei_SlaveVariable.hpp:39
SlaveVariable::getFieldID
int getFieldID()
Definition
fei_SlaveVariable.hpp:31
SlaveVariable::getFieldOffset
int getFieldOffset()
Definition
fei_SlaveVariable.hpp:34
SlaveVariable::addMasterNodeID
void addMasterNodeID(GlobalID masterNode)
Definition
fei_SlaveVariable.hpp:41
GlobalID
int GlobalID
Definition
fei_defs.h:60
Generated by
1.17.0