-
Notifications
You must be signed in to change notification settings - Fork 46
Element groups #139
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
Open
nickmedwards
wants to merge
30
commits into
NLR-SolTrace:develop
Choose a base branch
from
nickmedwards:element_groups
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Element groups #139
Changes from all commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
832841e
changed printing behavior of optix runner
nickmedwards 6c16f46
print stuff
nickmedwards 855f4fc
disable stages for embree in simdriver
nickmedwards 89d07db
track number of loops for optix simulation
nickmedwards 1b80cce
clean up old prints
nickmedwards a6c700d
work on element groups
nickmedwards 22df451
finished group tests
nickmedwards 0489cc8
added tag for verbose to simdriver main
nickmedwards d5d811d
wrote group result struct and test to get into report_simulation
nickmedwards c8a3a9e
added counters for group result
nickmedwards 94bac64
wrote test for counters
nickmedwards bb41fd4
write group results as json
nickmedwards 6337194
added cli arg --level to simdriver main
nickmedwards 7ccc049
added writing code to simdriver/main
nickmedwards 0fbdd62
formatting and checking groups size before fetching
nickmedwards d8d31df
asked to remove in pr comment
nickmedwards 5f50b64
asked to manage group virtually above single element
nickmedwards dc59186
asked to manage group virtually, actually removed from ElementBase
nickmedwards 0114cc4
asked to make groups 32 bit
nickmedwards 03ffd6a
asked to change destructor
nickmedwards de613b3
removed dangling includes
nickmedwards 73b9a7c
asked to change write_json_file to write_group_json_file
nickmedwards a4e7b99
asked to change call signature for get_groups, forgot to change funct…
nickmedwards 533d187
convert to std::set
nickmedwards 8beb0bb
addressed pr comments about group membership to optix runner, work on…
nickmedwards 794207f
friend access to test without adding gtest to prod build
nickmedwards 6c2fbee
remove dead code
nickmedwards b11d317
finished grouped results counts test, makes sure json write doesn't t…
nickmedwards 9fa16a2
added level to simdriver/main.cpp
nickmedwards eb63797
updated test jsons for grouped optical properities changes
nickmedwards File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| #include <cstdint> | ||
| #include <map> | ||
| #include <string> | ||
| #include <vector> | ||
|
|
||
| // #include "element.hpp" | ||
|
|
||
| // #include <../../hpvm.h> | ||
|
|
||
| // SimulationResult headers | ||
| #include "group_result.hpp" | ||
|
|
||
| namespace SolTrace::Result | ||
| { | ||
| GroupResult::GroupResult(int32_t group_id, size_t n_groups) : | ||
| group_id(group_id), | ||
| absorb_count(0), | ||
| reflect_count(0), | ||
| transmit_count(0), | ||
| virtual_count(0), | ||
| absorb_sun_previous(0), | ||
| reflect_sun_previous(0), | ||
| transmit_sun_previous(0), | ||
| virtual_sun_previous(0) | ||
| { | ||
| // need extra spots in the vectors for ungrouped elements and the sun. | ||
| absorb_previous_group.resize(n_groups); | ||
| reflect_previous_group.resize(n_groups); | ||
| transmit_previous_group.resize(n_groups); | ||
| virtual_previous_group.resize(n_groups); | ||
| } | ||
|
|
||
| void GroupResult::write_json(nlohmann::ordered_json &jnode) const | ||
| { | ||
| jnode["group_id"] = group_id; | ||
| jnode["absorb_count"] = absorb_count; | ||
| jnode["reflect_count"] = reflect_count; | ||
| jnode["transmit_count"] = transmit_count; | ||
| jnode["virtual_count"] = virtual_count; | ||
| jnode["absorb_sun_previous"] = absorb_sun_previous; | ||
| jnode["reflect_sun_previous"] = reflect_sun_previous; | ||
| jnode["transmit_sun_previous"] = transmit_sun_previous; | ||
| jnode["virtual_sun_previous"] = virtual_sun_previous; | ||
| jnode["absorb_previous_group"] = absorb_previous_group; | ||
| jnode["reflect_previous_group"] = reflect_previous_group; | ||
| jnode["transmit_previous_group"] = transmit_previous_group; | ||
| jnode["virtual_previous_group"] = virtual_previous_group; | ||
| } | ||
| } |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.