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