preCICE v3.1.1
Loading...
Searching...
No Matches
TestAction.py
Go to the documentation of this file.
1myIteration = 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.
7def 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
performAction(time, sourceData, targetData)
Definition TestAction.py:7