Cardinal
Loading...
Searching...
No Matches
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{
26public:
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
47 const Real & scaling() const { return _scaling; }
48
49protected:
51 const Real & _scaling;
52
54 unsigned int _usrwrk_slot;
55
57 unsigned int _offset;
58
66 static std::map<unsigned int, unsigned int> _counter;
67};
Definition NekTransferBase.h:32
Base class for transferring scalars (single numbers) between NekRS and MOOSE.
Definition ScalarTransferBase.h:25
ScalarTransferBase(const InputParameters &parameters)
const unsigned int offset() const
Definition ScalarTransferBase.h:41
unsigned int _usrwrk_slot
Slot in usrwrk to write the scalar value.
Definition ScalarTransferBase.h:54
const unsigned int usrwrkSlot() const
Definition ScalarTransferBase.h:35
const Real & scaling() const
Definition ScalarTransferBase.h:47
unsigned int _offset
Offset in the slot to write the scalar value.
Definition ScalarTransferBase.h:57
static std::map< unsigned int, unsigned int > _counter
Definition ScalarTransferBase.h:66
const Real & _scaling
A multiplier to apply to the value passed in.
Definition ScalarTransferBase.h:51
static InputParameters validParams()