Migrate API from IDs to names#1588
Conversation
uekerman
left a comment
There was a problem hiding this comment.
Looks good already. I did, however, not have a look at every detail.
It could be dangerous to shorten meshName to mesh in the API. Users could understand they need to pass the positions here. In the Fortran bindings, meshLength sounds a lot like the number of vertices in a mesh.
Same for data vs dataName, data could be misinterpreted as the actual values.
Many tests still use "meshID" or "dataID" as variable names.
|
The argument name is actually a very good point. It also leads to many name clashes in our API functions, where we get the actual |
|
@uekerman I migrated the names in all test now. |
IshaanDesai
left a comment
There was a problem hiding this comment.
Looks solid 👍 some minor suggestions and concerns from my side.
Co-authored-by: Ishaan Desai <[email protected]>
* Remove mapWriteDataFrom (precice/precice#1222) and Vertex-only API (precice/precice#1322) * Remove `initializeData` (precice/precice#1350) * Remove `isReadDataAvailable` and `isWriteDataRequired` (precice/precice#1362) * Rename `isGradientDataRequired` (precice/precice@632b4fb) * Remove `isActionRequired` and replace with explicit calls * Adjust Solverdummies and tests * Format changes * [WIP] Use names instead of IDs related to precice/precice#1588 * Delete functions not part of the precice API * Implement API changes into tests * Format
| @@ -0,0 +1 @@ | |||
| - Removed deprecated `getDataIds()` | |||
There was a problem hiding this comment.
This changelog entry is actually important and not complete. The PR here also removes getMeshID (getDataID)
Main changes of this PR
This PR migrates the API from using IDs for meshes and data to using names instead.
This entailed:
Motivation and additional information
Incorrect meshnames now display hints for the following cases:
Incorrect data names now display hints for the following cases:
Resolves #1471
Resolves #1461
Author's checklist
pre-commithook to prevent dirty commits and usedpre-commit run --allto format old commits.make changelogif there are user-observable changes since the last release.Reviewers' checklist