precice / aste

Artificial Solver Testing Environment
GNU General Public License v3.0
10 stars 11 forks source link

ASTE assumes data name Data, ignoring CLI option #190

Open MakisH opened 1 week ago

MakisH commented 1 week ago

I am calling ASTE as:

$ precice-aste-run -p A --mesh Generator-Mesh --data "Color" -c ../precice-config.xml 
---[ASTE:A:0] INFO : ASTE Running in mapping test mode
---[preCICE:A:0] INFO : This is preCICE version 3.1.2
---[precice]  This is preCICE version 3.1.2
---[preCICE:A:0] INFO : Revision info: v3.1.1-5-g1305035d
---[precice]  Revision info: v3.1.1-5-g1305035d
---[preCICE:A:0] INFO : Build type: Debug
---[precice]  Build type: Debug
---[preCICE:A:0] INFO : Configuring preCICE with configuration "../precice-config.xml"
---[precice]  Configuring preCICE with configuration "../precice-config.xml"
---[preCICE:A:0] INFO : I am participant "A"
---[precice]  I am participant "A"
---[preCICE:A:0] ERROR : The given data "Data" is unknown to preCICE mesh "A-Mesh". This mesh only knows data "Color".
---[precice] ERROR:  The given data "Data" is unknown to preCICE mesh "A-Mesh". This mesh only knows data "Color".

The ../precice-config.xml only uses data with the name Color, no mention of "Data" in any file in my workspace:

  <data:scalar name="Color" />

  <mesh name="A-Mesh" dimensions="2">
    <use-data name="Color" />
  </mesh>

  <mesh name="B-Mesh" dimensions="2">
    <use-data name="Color" />
  </mesh>

The mesh file I use also only mentions "Color" and not "Data" anywhere.

If in my precice-config.xml, I set the data name to "Data", then this works. So, the CLI option for --data probably only concerns the mesh file, and not the configuration. We probably need to clearly document all these assumptions on https://precice.org/tooling-aste.html