Cardinal
ScalarTransferBase.h
Go to the documentation of this file.
1 /********************************************************************/
2 /* SOFTWARE COPYRIGHT NOTIFICATION */
3 /* Cardinal */
4 /* */
5 /* (c) 2021 UChicago Argonne, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by UChicago Argonne, LLC */
9 /* Under Contract No. DE-AC02-06CH11357 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* Prepared by Battelle Energy Alliance, LLC */
13 /* Under Contract No. DE-AC07-05ID14517 */
14 /* With the U. S. Department of Energy */
15 /* */
16 /* See LICENSE for full restrictions */
17 /********************************************************************/
18 
19 #pragma once
20 
21 #include "NekTransferBase.h"
22 
25 {
26 public:
27  static InputParameters validParams();
28 
29  ScalarTransferBase(const InputParameters & parameters);
30 
35  const unsigned int usrwrkSlot() const { return _usrwrk_slot; }
36 
41  const unsigned int offset() const { return _offset; }
42 
43 protected:
45  const Real & _scaling;
46 
48  unsigned int _usrwrk_slot;
49 
51  unsigned int _offset;
52 
60  static std::map<unsigned int, unsigned int> _counter;
61 };
unsigned int _offset
Offset in the slot to write the scalar value.
Definition: ScalarTransferBase.h:51
Definition: NekTransferBase.h:31
unsigned int _usrwrk_slot
Slot in usrwrk to write the scalar value.
Definition: ScalarTransferBase.h:48
const unsigned int usrwrkSlot() const
Definition: ScalarTransferBase.h:35
const Real & _scaling
A multiplier to apply to the value passed in.
Definition: ScalarTransferBase.h:45
Base class for transferring scalars (single numbers) between NekRS and MOOSE.
Definition: ScalarTransferBase.h:24
static std::map< unsigned int, unsigned int > _counter
Definition: ScalarTransferBase.h:60
ScalarTransferBase(const InputParameters &parameters)
static InputParameters validParams()
const unsigned int offset() const
Definition: ScalarTransferBase.h:41