Commit 48647056 authored by jannick.wolters's avatar jannick.wolters
Browse files

removed compiler warnings

parent cf127ebb
Pipeline #138446 passed with stage
in 18 minutes and 41 seconds
......@@ -5,7 +5,7 @@
class LaxFriedrichsFlux : public NumericalFlux
{
double _dt;
// double _dt;
public:
/**
......
......@@ -72,6 +72,6 @@ class MNSolver : public SolverBase
// Helper
/*! @brief Computes the radiative flux from the solution vector of the moment system */
void ComputeRadFlux();
void ComputeRadFlux() override;
};
#endif // MNSOLVER_H
......@@ -54,7 +54,7 @@ class PNSolver : public SolverBase
void IterPostprocessing( unsigned idx_pseudotime ) override;
// Helper
void ComputeRadFlux();
void ComputeRadFlux() override;
// Initialization of the Solver
/*! @brief parameter functions for setting up system matrix
......
......@@ -33,7 +33,7 @@ class SNSolver : public SolverBase
void virtual IterPostprocessing( unsigned idx_pseudotime ) override;
// Helper
void ComputeRadFlux();
void ComputeRadFlux() override;
// --- Member variables ---
};
......
......@@ -694,7 +694,7 @@ bool Config::TokenizeString( string& str, string& option_name, vector<string>& o
pos = str.find( "=" );
if( pos == string::npos ) {
string errmsg = "Error in Config::TokenizeString(): line in the configuration file with no \"=\" sign. ";
errmsg += "\nLook for: \n str.length() = " + str.length();
errmsg += "\nLook for: \n str.length() = " + std::to_string(str.length());
spdlog::error( errmsg );
throw( -1 );
}
......
......@@ -197,7 +197,8 @@ Mesh* LoadSU2MeshFromFile( const Config* settings ) {
getline( ifs, line );
if( line.find( "MARKER_TAG", 0 ) != std::string::npos ) {
markerTag = line.substr( line.find( "=" ) + 1 );
auto end_pos = std::remove_if( markerTag.begin(), markerTag.end(), isspace );
auto end_pos = std::remove_if(
markerTag.begin(), markerTag.end(), []( char c ) { return std::isspace( static_cast<unsigned char>( c ) ); } );
markerTag.erase( end_pos, markerTag.end() );
btype = settings->GetBoundaryType( markerTag );
if( btype == BOUNDARY_TYPE::INVALID ) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment