preCICE
v3.1.2
Loading...
Searching...
No Matches
src
action
tests
TestAction.py
Go to the documentation of this file.
1
myIteration = 0
2
3
#
4
# This function is called first. Its parameters are the source data, followed
5
# by the target data, which are omitted (selectively or both) if not mentioned
6
# in the preCICE configuration.
7
def
performAction
(time, sourceData, targetData):
8
9
for
i
in
range(targetData.size):
10
targetData[i] = sourceData[i] + 1
11
12
global
myIteration
13
for
i
in
range(targetData.size):
14
targetData[i] += myIteration
15
myIteration += 1
TestAction.performAction
performAction(time, sourceData, targetData)
Definition
TestAction.py:7