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

Deprecate PdiEvent::and_with #756

Closed
tpadioleau opened this issue Jan 15, 2025 · 2 comments · Fixed by #757
Closed

Deprecate PdiEvent::and_with #756

tpadioleau opened this issue Jan 15, 2025 · 2 comments · Fixed by #757
Labels

Comments

@tpadioleau
Copy link
Member

We have both PdiEvent::with and PdiEvent::and_with. I am not convined of the benefit in practice as it is still readable to chain with calls

PdiEvent("event")
    .with("data1", data1)
    .with("data2", data2);

I strongly suggest we keep a single version.

@tpadioleau tpadioleau added the pdi label Jan 15, 2025
@tpadioleau
Copy link
Member Author

@EmilyBourne any opinion on this ?

@EmilyBourne
Copy link
Collaborator

I would tend to agree with you. I don't see a reason to have 2 methods that do the same thing.

In Gyselalib++ we are using:
https://github.com/gyselax/gyselalibxx/blob/86d95abd5672362c600714d6cb4c5abbd0dc9c7c/src/geometryXYVxVy/time_integration/predcorr.cpp#L58-L62

but probably we are just copying across whatever was done the first time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants