-
Notifications
You must be signed in to change notification settings - Fork 24
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
0 indexed meshes(#114) #120
Merged
Merged
Changes from 5 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
1328c7a
adding darcy equation
zasexton 813262d
darcy equation can be built but generates a trivially zero solution
zasexton 4e7d748
commenting files to find mesh indexing error
zasexton e5ff25c
correcting gN, gE, and IEN after reading meshes
zasexton a737609
Merge branch 'SimVascular:main' into 0-indexed-meshes(#114)
zasexton 2121667
removing IEN resetting in vtk_xml.cpp since this functionality is mov…
zasexton a9d4d97
Merge remote-tracking branch 'origin/0-indexed-meshes(#114)' into 0-i…
zasexton 8e11b75
adding general parameters for unsteady darcy problem
zasexton 6621f6f
added final version of the hash map for gN, gE, and IEN setting for f…
zasexton ca53ab3
adding binary mask permutation for non-tet elements (#114)
zasexton fd04be0
adding boundary node counter-clockwise ordering to element matching (…
zasexton 7b4dd90
Merge branch 'SimVascular:main' into 0-indexed-meshes(#114)
zasexton 0858ce0
completed 2D darcy general model formulation for (#71)
zasexton 7a97ef6
adding scientific notation and 16 precision to global node matching (…
zasexton 7cbf43a
Merge branch 'Tissue-perfusion-model-#71' into 0-indexed-meshes(#114)
zasexton dbfd582
Revert "Merge branch 'Tissue-perfusion-model-#71' into 0-indexed-mesh…
zasexton ca9ff01
encapsulating hash map generation (#114)
zasexton b9b7e94
Merge branch 'SimVascular:main' into 0-indexed-meshes(#114)
zasexton 7ed7fd0
remove commented lines performing un-encapsulated hash map generation
zasexton 3555c55
adding error checking for duplicate nodes during hash map generation …
zasexton 6a26966
Merge remote-tracking branch 'origin/0-indexed-meshes(#114)' into 0-i…
zasexton 1f5733a
Merge branch 'main' into 0-indexed-meshes(#114)
ktbolt 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 contains 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 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
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.
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.
std::to_string()
only converts to six significant digits. If you want to use strings then you will need to usestd::stringstream
andstd::setprecision()
.It would be faster (?) and use less memory but a bit more complicated to map the coordinates into an integer index.
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, I can include this. Is there a certain precision that we should set by default?
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.
Assuming a precision that will convert a double exactly is the problem with using strings, would need to set it to 16 maybe but then the strings would be 18 bytes, larger using
std::scientific
.I think a better solution is to map the coordinates to an integer index into a map of some sort.
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've changed the unsorted_map keys for the global nodes to be constructed as strings from 16 precision scientific format of the coordinates using
std::scientific
andstd::set_precision
. Maybe we can change this to an integer map later on...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.
@zasexton Good, we can refine the code later if needed.