Skip to content

Commit

Permalink
remove error managemennt, correct whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
arng40 committed Dec 16, 2024
1 parent 0c6ea97 commit b23bcf3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 22 deletions.
17 changes: 1 addition & 16 deletions src/coreComponents/common/format/table/TableData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,8 @@
namespace geos
{

void TableData::addRow( std::vector< TableData::CellData > const & rows )
void TableData::addRow( std::vector< TableData::CellData > const & row )
{
if( m_rows.size() != 0 && rows.size() != m_rows[m_rows.size() - 1].size() )
{
string msg = "Remarks : some cells may be missing";
std::cout << '\n';
if( std::find( m_errorsMsg.begin(), m_errorsMsg.end(), msg ) == m_errorsMsg.end())
{
m_errorsMsg.push_back( msg );
}
}

m_rows.push_back( rows );
}

Expand All @@ -61,11 +51,6 @@ std::vector< std::vector< TableData::CellData > > const & TableData::getTableDat
return m_rows;
}

std::vector< string > const & TableData::getErrorMsgs() const
{
return m_errorsMsg;
}

void TableData2D::collectTableValues( arraySlice1d< real64 const > rowAxisValues,
arraySlice1d< real64 const > columnAxisValues,
arrayView1d< real64 const > values )
Expand Down
3 changes: 0 additions & 3 deletions src/coreComponents/common/format/table/TableData.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,6 @@ class TableData
/// vector containing all rows with cell values
std::vector< std::vector< CellData > > m_rows;

/// store error if there are any inconsistencies related to the table
std::vector< string > m_errorsMsg;

};

/**
Expand Down
2 changes: 1 addition & 1 deletion src/coreComponents/common/format/table/TableFormatter.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class TableFormatter
public:
/// Represent the TableData values
using RowsCellInput = std::vector< std::vector< TableData::CellData > >;
/// Represent the Table (header or values) structured
/// Represent the Table (header or values) structured
using CellLayoutRows = std::vector< std::vector< TableLayout::CellLayout > >;


Expand Down
4 changes: 2 additions & 2 deletions src/coreComponents/common/format/table/TableLayout.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class TableLayout

/**
* @brief Set the column visibility.
* @param CellType Cell type to apply to hide the colmun
* @param CellType Cell type to apply to hide the colmun
* @return The current column .
*/
Column & setVisibility( CellType celltype );
Expand Down Expand Up @@ -434,7 +434,7 @@ class TableLayout

/**
* @brief Get the max depth of a column
* @return The max column depth
* @return The max column depth
*/
size_t getMaxDepth() const;

Expand Down

0 comments on commit b23bcf3

Please sign in to comment.