Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ASTE assumes data name Data, ignoring CLI option #190

Open
MakisH opened this issue Jul 3, 2024 · 0 comments
Open

ASTE assumes data name Data, ignoring CLI option #190

MakisH opened this issue Jul 3, 2024 · 0 comments
Labels
good first issue Starter projects for newcomer

Comments

@MakisH
Copy link
Member

MakisH commented Jul 3, 2024

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

@davidscn davidscn added the good first issue Starter projects for newcomer label Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Starter projects for newcomer
Projects
None yet
Development

No branches or pull requests

2 participants