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
✨ Added timeout for
QuickSim
#654base: main
Are you sure you want to change the base?
✨ Added timeout for
QuickSim
#654Changes from 27 commits
9477cf8
35fed45
bc905b7
f188a69
65ec0a5
24c2421
4113659
72e08f4
dfb71fb
d5c5ff5
9d45592
dfaf039
af15694
74dfaab
5598bce
7a1cde8
ecb1fbb
8c6bd0a
fc8e96d
9f1d8a1
34fb825
bf2b216
aeeb5a0
7f3dd43
1a019ee
143a3f6
16efd53
0945b45
1690cea
39fa9c4
2adc077
88028b2
eed8faa
8165114
568780f
d6a3b35
27a0b28
afe1338
9281c53
db26065
10ac019
2da2e2d
7f9fda3
9d8c7bd
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.
Is it really a simulation parameter that the timeout has been reached? In
exact
, we throw an exception in the_impl
class that we then catch in the calling functionexact
and return anstd::nullopt
. I'm not 100% sure howgold
handles this. You might wanna check.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.
hmm, I see, @marcelwa! But since all our physical simulators return
sidb_simulation_result<Lyt>
, it would be weird when one would returnstd::optional
or even through an exception, right?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.
Maybe. At least for the physical design algorithms, some return a
Lyt
, and some anstd::optional<Lyt>
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.
okay! Do you think, @marcelwa, we should use
std::optional
forcharge_distributions
insidb_simulation_result
?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 could make sense. You would always return an
sidb_simulation_result
but it might not containcharge_distributions
depending on the algorithm termination. Yes, I think that checks out.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.
Great!
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.
Hmm, I am unsure because so many parts of the code had to be changed. Maybe it is better to return
std::optional<sidb_simulation_result>
. I will try it.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.
See above