-
Notifications
You must be signed in to change notification settings - Fork 42
Add elevation output for each Cartesian point #790
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
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -267,7 +267,7 @@ namespace WorldBuilder | |||||
| grains.unroll_into(output,entry_in_output[i_property]); | ||||||
| break; | ||||||
| } | ||||||
| case 4: | ||||||
| case 4: // tag | ||||||
| { | ||||||
| output[entry_in_output[i_property]] = static_cast<double>(tag_index); | ||||||
| break; | ||||||
|
|
@@ -295,6 +295,20 @@ namespace WorldBuilder | |||||
| //std::cout << "vel=" << output[entry_in_output[i_property]] << ":" << output[entry_in_output[i_property]+1] << ":" << output[entry_in_output[i_property]+2] << std::endl; | ||||||
| break; | ||||||
| } | ||||||
| case 7: // elevation | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this may be unrelated to your pull request, but why is elevation 7 and not 6? Why is 6 missing?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Case 6 is handled by @Djneu and is related to the density of the compositional field. |
||||||
| { | ||||||
| if(!std::isnan(output[entry_in_output[i_property]])){ | ||||||
|
||||||
| if(!std::isnan(output[entry_in_output[i_property]])){ | |
| if(std::isnan(output[entry_in_output[i_property]])){ |
Do you want to check here if the output is not a number in order to then set it to some number?
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 was a mistake. This is addressed in Commit 0599baa. Thank you!
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.
I think you created your branch from your other branch (the one used for #783) that is why this change shows up in this PR. Find me to talk about how to fix this.
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.
I have closed that pull request (used for a tutorial).