Skip to content

Commit

Permalink
Move and update sync-mode tag to synchronize
Browse files Browse the repository at this point in the history
  • Loading branch information
davidscn committed Aug 9, 2023
1 parent eec70ff commit 34c2762
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/mapping_tester/setup-test.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
2
]
},
"syncmode": false,
"synchronize": false,
"meshes": {
"A": {
"coarse_mesh": "${TEST_LOCATION}/coarse_mesh.vtk"
Expand Down
4 changes: 2 additions & 2 deletions tools/mapping-tester/config-template.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0"?>

<precice-configuration {% if syncmode %} sync-mode="1" {% endif %} dimensions="3">
<precice-configuration dimensions="3">

<log>
<sink type="file" output="debug.log" filter="" format='%TimeStamp(format="%H:%M:%S.%f")%|%Participant%|%Rank%|%Module%|l%Line%|%Function%|%Severity%%Message%' />
</log>

<profiling mode="all" flush-every="0" />
<profiling mode="all" flush-every="0" {% if synchronize %} synchronize="1" {% endif %} />

<!-- Data fields that are exchanged between the solvers -->
<data:scalar name="Data" />
Expand Down
4 changes: 2 additions & 2 deletions tools/mapping-tester/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def as_iter(something):
def generateCases(setup):
meshes = setup["general"]["meshes"]
network = setup["general"].get("network", "lo")
syncmode = setup["general"].get("syncmode", "false")
syncmode = setup["general"].get("synchronize", "false")

cases = []
for group in setup["groups"]:
Expand Down Expand Up @@ -65,7 +65,7 @@ def generateCases(setup):
},
},
"network": network,
"syncmode": syncmode,
"synchronize": syncmode,
}
)

Expand Down

0 comments on commit 34c2762

Please sign in to comment.