Skip to content
Snippets Groups Projects
Commit 697a0f81 authored by Karsten Rink's avatar Karsten Rink
Browse files

removed trailing whitespaces

parent d81541de
No related branches found
No related tags found
No related merge requests found
...@@ -83,7 +83,7 @@ std::array<std::size_t,4> const n_obj_params = { 8, 6, 5, 15 }; ...@@ -83,7 +83,7 @@ std::array<std::size_t,4> const n_obj_params = { 8, 6, 5, 15 };
SwmmInterface* SwmmInterface::create(std::string const& file_name) SwmmInterface* SwmmInterface::create(std::string const& file_name)
{ {
if (file_name.length() < 5) if (file_name.length() < 5)
return nullptr; return nullptr;
if (!(SwmmInterface::isSwmmInputFile(file_name) || SwmmInterface::isSwmmOutputFile(file_name))) if (!(SwmmInterface::isSwmmInputFile(file_name) || SwmmInterface::isSwmmOutputFile(file_name)))
...@@ -174,7 +174,6 @@ bool SwmmInterface::isSwmmOutputFile(std::string const& out_file_name) ...@@ -174,7 +174,6 @@ bool SwmmInterface::isSwmmOutputFile(std::string const& out_file_name)
ERR ("SWMMInterface: Could not open input file %s.", out_file_name.c_str()); ERR ("SWMMInterface: Could not open input file %s.", out_file_name.c_str());
return false; return false;
} }
in.close(); in.close();
return true; return true;
} }
...@@ -876,7 +875,7 @@ std::size_t SwmmInterface::getNTimeSteps() const ...@@ -876,7 +875,7 @@ std::size_t SwmmInterface::getNTimeSteps() const
return n_time_steps; return n_time_steps;
} }
bool SwmmInterface::addResultsToMesh(MeshLib::Mesh &mesh, SwmmObject const swmm_type, bool SwmmInterface::addResultsToMesh(MeshLib::Mesh &mesh, SwmmObject const swmm_type,
std::string const& vec_name, std::vector<double> const& data) std::string const& vec_name, std::vector<double> const& data)
{ {
if (!(swmm_type == SwmmObject::NODE) || (swmm_type == SwmmObject::LINK)) if (!(swmm_type == SwmmObject::NODE) || (swmm_type == SwmmObject::LINK))
...@@ -971,7 +970,7 @@ std::vector<double> SwmmInterface::getArrayAtTimeStep(SwmmObject obj_type, std:: ...@@ -971,7 +970,7 @@ std::vector<double> SwmmInterface::getArrayAtTimeStep(SwmmObject obj_type, std::
return data; return data;
} }
INFO ("Fetching \"%s\"-data for time step %d...", INFO ("Fetching \"%s\"-data for time step %d...",
getArrayName(obj_type, var_idx, SWMM_Npolluts).c_str(), time_step); getArrayName(obj_type, var_idx, SWMM_Npolluts).c_str(), time_step);
for (std::size_t i=0; i<n_objects; ++i) for (std::size_t i=0; i<n_objects; ++i)
......
...@@ -54,7 +54,7 @@ enum class SwmmObject ...@@ -54,7 +54,7 @@ enum class SwmmObject
* number of nodes, links or subcatchments but only ever one system. * number of nodes, links or subcatchments but only ever one system.
* The interface can convert the SWMM input data into a geometry or a (line-)mesh. * The interface can convert the SWMM input data into a geometry or a (line-)mesh.
* For meshes, also output data can be added to nodes and elements. * For meshes, also output data can be added to nodes and elements.
* The interface also provides routines for returning data as vectors as well as convenience * The interface also provides routines for returning data as vectors as well as convenience
* methods for outputting data into CSV files. CSV files will either contain all parameters for one * methods for outputting data into CSV files. CSV files will either contain all parameters for one
* object at all time steps or all parameters for all objects of a given type at one timestep. * object at all time steps or all parameters for all objects of a given type at one timestep.
*/ */
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
namespace BaseLib { namespace BaseLib {
/** /**
* Splits a string into a vector of strings. This method only works for string seperation * Splits a string into a vector of strings. This method only works for string seperation
* recognised by the std::stringstream iterator such as ' ' or '\t'. * recognised by the std::stringstream iterator such as ' ' or '\t'.
* \param str String to be splitted * \param str String to be splitted
* \return Vector of strings * \return Vector of strings
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment