-
Notifications
You must be signed in to change notification settings - Fork 101
feat: Additional information on the table log perforation #3966
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
arng40
wants to merge
38
commits into
develop
Choose a base branch
from
feat/dudes/perforations-table-detail
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
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
d764bca
Merge remote-tracking branch 'origin/develop' into feat/dudes/perfora…
arng40 87a4eec
first attempt new version of log table perforation
arng40 5638062
doxygen + add const
arng40 3b7ade4
remove logPerfo header
arng40 dbee251
revert modif on wellElementSubRegion
arng40 b6f5ca6
new method to get cell id & region / subregion
arng40 f10caa5
wip MPI for table perfo
arng40 7dcac44
Merge remote-tracking branch 'origin/develop' into feat/dudes/perfora…
arng40 f29df71
MPI gather string - code MPI duplicate with negative pressure cell
arng40 673eae7
Merge remote-tracking branch 'origin/develop' into feat/dudes/perfora…
arng40 c09f8bf
Squashed commit of the following:
arng40 66863a1
1st version mpi table
arng40 d6128ee
new version mpi table : sorted
arng40 254f20e
add sorting method
arng40 4600be3
extract outputLine function
arng40 bbae597
sorted mpi table
arng40 77b28da
use sorting method
arng40 863e969
add test in invert comparator
arng40 2b80760
fix sort method + doxygen + add rank column
arng40 ff7e66d
remove mpi code
arng40 ef3e09c
Merge remote-tracking branch 'origin/develop' into feat/dudes/perfora…
arng40 0261d8f
refactor gatherString using gatherBuffer
arng40 86e5cd7
fix test
arng40 6d1a918
fix typo remove unused header
arng40 9c9fdd1
minor clean
arng40 805c7b1
ranaming, reorg variable first step
arng40 7400922
some cleanup
arng40 d2925fb
doxygen
arng40 ebdadd8
Improve structure 🎨
arng40 b0eb0f6
Remove code :fire:
arng40 57d5802
Fix a bug. :bug:
arng40 ec41004
Merge remote-tracking branch 'origin/develop' into feat/dudes/perfora…
arng40 a06b548
Merge branch 'develop' into feat/dudes/perforations-table-detail
arng40 763103a
:green_heart: uncrustify
arng40 bfdf8c5
:lipstick: set rank column to the right
arng40 d15042d
:label: renaming & cde style
arng40 44ac609
Squashed commit of the following:
arng40 824deb6
Squashed commit of the following:
arng40 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 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 |
|---|---|---|
|
|
@@ -24,6 +24,7 @@ | |
| #include "common/DataTypes.hpp" | ||
| #include "common/format/Format.hpp" | ||
| #include "TableTypes.hpp" | ||
| #include <cstddef> | ||
|
|
||
| namespace geos | ||
| { | ||
|
|
@@ -54,6 +55,13 @@ class TableData | |
| */ | ||
| bool operator<( TableData const & other ) const; | ||
|
|
||
| /** | ||
| * @brief Comparison operator for data rows | ||
| * @param comparingTable The tableData values to compare | ||
| * @return The comparison result | ||
| */ | ||
| bool operator==( TableData const & comparingTable ) const; | ||
|
|
||
| /** | ||
| * @brief Representing a data in TableData | ||
| */ | ||
|
|
@@ -63,20 +71,7 @@ class TableData | |
| CellType type; | ||
| /// The cell value | ||
| string value; | ||
|
|
||
| /// @cond DO_NOT_DOCUMENT | ||
| bool operator==( CellData const & other ) const | ||
| { | ||
| return value == other.value; | ||
| } | ||
|
|
||
| bool operator<( CellData const & other ) const | ||
| { | ||
| return value < other.value; | ||
| } | ||
| ///@endcond | ||
| }; | ||
|
|
||
| /// Alias for table data rows with cells values | ||
| using DataRows = stdVector< stdVector< CellData > >; | ||
|
|
||
|
|
@@ -129,14 +124,6 @@ class TableData | |
| DataRows & getCellsData() | ||
| { return m_rows; } | ||
|
|
||
| /** | ||
| * @brief Comparison operator for data rows | ||
| * @param comparingTable The tableData values to compare | ||
| * @return The comparison result | ||
| */ | ||
| inline bool operator==( TableData const & comparingTable ) const | ||
| { return getCellsData() == comparingTable.getCellsData(); } | ||
|
|
||
| /** | ||
| * @brief Get all error messages | ||
| * @return The list of error messages | ||
|
|
@@ -148,8 +135,16 @@ class TableData | |
| * @brief Get all error messages | ||
| * @return The list of error messages | ||
| */ | ||
|
|
||
| TableErrorListing & getErrorsList() | ||
| { return *m_errors; } | ||
|
|
||
| /** | ||
| * @brief Gather all the TableData rows to the rank 0 | ||
| * @param func The callable comparison function object to sort TableData rows, by default none | ||
| */ | ||
| template< typename SortingFunc = std::nullptr_t > | ||
| void gatherRowsRank0( SortingFunc && func ); | ||
|
|
||
| private: | ||
| /// @brief vector containing all rows with cell values | ||
|
|
@@ -302,5 +297,17 @@ void TableData2D::addCell( real64 const rowValue, real64 const columnValue, T co | |
| m_data.get_inserted( rowValue ).get_inserted( columnValue ) = GEOS_FMT( "{}", value ); | ||
| } | ||
|
|
||
| // Custom Comp function; | ||
| namespace tabledatasorting | ||
|
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.
|
||
| { | ||
| /** | ||
| * @brief Compare two string number string by in ascending numerical order. | ||
| * @param a The string to compare | ||
| * @param b The string to compare | ||
| * @return True if a is greater than b | ||
| */ | ||
| bool positiveNumberStringComp( string_view a, string_view b ); | ||
| } | ||
|
|
||
| } | ||
| #endif /* GEOS_COMMON_FORMAT_TABLE_TABLEDATA_HPP */ | ||
Oops, something went wrong.
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.
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.
By declaring this in the CPP instead of in the HPP, you're basically constraining the templated type
FUNCto bestd::function< void(string_view) >. What about removing the template and be explicit on the expected type in the HPP?