Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Proof of concept: TrixiMPIArray #1104
base: main
Are you sure you want to change the base?
Proof of concept: TrixiMPIArray #1104
Changes from 29 commits
8042a04
5da9e5c
d09b4cc
3434a58
8135d7f
987407e
e7d3db3
4e33567
eb1d9b1
c2e0b86
d58b1b5
23d4520
d8d85b7
4df8602
3528a16
6f984c0
efa08e7
80f6d59
d28c888
5ba7f9e
01186f6
96e4a3d
bce6cb7
0af5ae7
76ae70f
82e480a
5049bbb
195e1e0
4de9a6f
5277f86
53fbfbd
b549d2a
8857b7a
923c6ad
e38692b
126d54d
cdcf828
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just thinking - can we avoid this
local_length
issue if we define anorm
function that works in parallel? That might be an alternative to having to remember to uselocal_length
.A potential downside of
local_length
- that I just noticed - is that it allows users to create code that works in serial but may fail in spectacularly surprising ways if run in parallel. That is, if someone useslength
wherelocal_length
is required, it works fine in serial but may cause weird issues in parallel (especially if running with --check-bounds=no).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that's the issue of the minimally invasive approach using a global
length
. However, I would argue that users should better useeachindex
in most cases, which is fine.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, I agree -
eachindex
should be used where possible. It makes, however, for difficult-to-understand errors, and the "wrong" use oflength
might be hard to spot in reviews. I suggest to continue making it work, but then we should revisit this (or at least capture it in an issue).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another alternative would be to write our own norm function and pass that as
solve(ode, alg; kwargs..., internalnorm=our_new_norm_function)
. However, that requires yet another keyword argument we need to remember.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, especially since it would fail very late during the initialization (or even worse, just hang) if forgotten. Maybe we need our own
trixi_solve
that passes some default options to OrdinaryDiffEq.jl'ssolve
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Either this or set up some
trixi_default_kwargs()
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That might be better. We don't need to solve this right now, though, do we? Maybe we just copy the current discussion to an issue and deal with it later, once we have some more experience with the new type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, sounds good to me. I'll leave this thread open and we can continue the discussion later (#1108).