Skip to content

Commit

Permalink
updated naming logic
Browse files Browse the repository at this point in the history
  • Loading branch information
VanLaareN committed Jan 19, 2025
1 parent 6cfe0d9 commit 9501020
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions controller_utils/precice_struct/PS_PreCICEConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def write_precice_xml_config(self, filename:str, log:UT_PCErrorLogging, sync_mod
mystr = "vector"
pass
data_tag = etree.SubElement(precice_configuration_tag, etree.QName("data:"+mystr),
name=coupling_quantity.instance_name)
name=coupling_quantity.name)
pass

# 2 meshes
Expand All @@ -194,7 +194,7 @@ def write_precice_xml_config(self, filename:str, log:UT_PCErrorLogging, sync_mod
mesh_tag = etree.SubElement(precice_configuration_tag, "mesh", name=mesh.name, dimensions=str(dimensionality))
for quantities_name in mesh.quantities:
quant = mesh.quantities[quantities_name]
quant_tag = etree.SubElement(mesh_tag, "user-data", name=quant.instance_name)
quant_tag = etree.SubElement(mesh_tag, "use-data", name=quant.instance_name)

# 3 participants
for solver_name in self.solvers:
Expand Down Expand Up @@ -222,7 +222,7 @@ def write_precice_xml_config(self, filename:str, log:UT_PCErrorLogging, sync_mod
for q_name in solver.quantities_read:
q = solver.quantities_read[q_name]
read_tag = etree.SubElement(solver_tag,
"read-data", name=q.instance_name, mesh_name=solvers_mesh_name)
"read-data", name=q.name, mesh_name=solvers_mesh_name)
for other_solvers_name in q.list_of_solvers:
other_solver = q.list_of_solvers[other_solvers_name]
# consistent only read
Expand All @@ -245,7 +245,7 @@ def write_precice_xml_config(self, filename:str, log:UT_PCErrorLogging, sync_mod
for q_name in solver.quantities_write:
q = solver.quantities_write[q_name]
write_tag = etree.SubElement(solver_tag,
"write-data", name=q.instance_name, mesh_name=solvers_mesh_name)
"write-data", name=q.name, mesh_name=solvers_mesh_name)
for other_solvers_name in q.list_of_solvers:
other_solver = q.list_of_solvers[other_solvers_name]
# conservative only write
Expand Down

0 comments on commit 9501020

Please sign in to comment.