Skip to content

Vertex-only API#1322

Merged
fsimonis merged 32 commits intoprecice:developfrom
fsimonis:vertex-only-api
Nov 28, 2022
Merged

Vertex-only API#1322
fsimonis merged 32 commits intoprecice:developfrom
fsimonis:vertex-only-api

Conversation

@fsimonis
Copy link
Copy Markdown
Member

@fsimonis fsimonis commented Jun 14, 2022

Main changes of this PR

This PR removes all edge ids from the API and converts setMeshXWithEdges functions to setMeshX.
The API now guarantees the creation of implicit connectivity information.

This PR is based on #1312.

Motivation and additional information

See #1321

This only ports the integration tests to the edge-less API.
A further step would be to remove Mesh::createTriangle(Edge&, Edge&, Edge&), which impacts many tests.

Author's checklist

  • I added a changelog file with make changelog if there are user-observable changes since the last release.
  • I ran make format to ensure everything is formatted correctly.
  • I sticked to C++14 features.
  • I sticked to CMake version 3.16.3.
  • I squashed / am about to squash all commits that should be seen as one.

Reviewers' checklist

  • Does the changelog entry make sense? Is it formatted correctly?
  • Do you understand the code changes?

@fsimonis fsimonis added the breaking change Breaks backwards compatibility and users need to act label Jun 14, 2022
@fsimonis fsimonis added the usability This issue will make preCICE easier for non-expert users label Jun 14, 2022
@fsimonis fsimonis added this to the Version 3.0.0 milestone Jun 14, 2022
@fsimonis fsimonis requested a review from uekerman June 14, 2022 09:43
Comment thread src/precice/impl/SolverInterfaceImpl.cpp
@fsimonis fsimonis force-pushed the vertex-only-api branch 2 times, most recently from cd84888 to 1635075 Compare June 29, 2022 13:13
@fsimonis fsimonis marked this pull request as ready for review November 16, 2022 14:40
@fsimonis
Copy link
Copy Markdown
Member Author

@uekerman I added bulk functions #469 as well, bindings and tests.

@fsimonis fsimonis mentioned this pull request Nov 18, 2022
7 tasks
Copy link
Copy Markdown
Member

@uekerman uekerman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty clean already. I tried to have a thorough look, but I did not try it out.
A bit concerning is still the limited test coverage for the bindings -> We might find issues while porting adapters.

Comment thread docs/changelog/1322.md Outdated
Comment thread docs/changelog/1322.md Outdated
Comment thread src/precice/SolverInterface.hpp
Comment thread src/precice/impl/SolverInterfaceImpl.cpp Outdated
Comment thread src/mesh/Tetrahedron.cpp
Comment thread extras/bindings/fortran/src/SolverInterfaceFortran.cpp Outdated
Comment thread extras/bindings/fortran/src/SolverInterfaceFortran.cpp Outdated
Comment thread tests/serial/mapping-nearest-projection/helpers.hpp Outdated
Comment thread tests/serial/mapping-nearest-projection/helpers.cpp
Copy link
Copy Markdown
Member

@uekerman uekerman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good to go from my side, but I did not try it out.

@fsimonis fsimonis merged commit ec11b6e into precice:develop Nov 28, 2022
@fsimonis fsimonis deleted the vertex-only-api branch November 28, 2022 12:55
@fsimonis fsimonis mentioned this pull request Nov 28, 2022
7 tasks
IshaanDesai pushed a commit to precice/PreCICE.jl that referenced this pull request Mar 16, 2023
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change Breaks backwards compatibility and users need to act usability This issue will make preCICE easier for non-expert users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants