Skip to content
Snippets Groups Projects
Commit 6e0e1937 authored by Carl Philipp Klemm's avatar Carl Philipp Klemm
Browse files

Range: add prining function

parent b19aedd1
No related branches found
No related tags found
No related merge requests found
......@@ -12,8 +12,9 @@ struct DataPoint
fvalue omega;
};
struct Range
class Range
{
public:
fvalue start;
fvalue end;
size_t count;
......@@ -42,6 +43,7 @@ struct Range
}
Range(fvalue startI, fvalue endI, size_t countI, bool logI = false, char typeI = 'x'): start(startI), end(endI), count(countI), log(logI), type(typeI){}
Range() = default;
void print(int level) const;
};
bool saveToDisk(const std::vector<DataPoint>& data, std::string fileName);
......
......@@ -24,3 +24,8 @@ bool eis::saveToDisk(const std::vector<DataPoint>& data, std::string fileName)
file.close();
return true;
}
void eis::Range::print(int level) const
{
Log(static_cast<Log::Level>(level))<<"Range for "<<type<<' '<<start<<'-'<<end<<' '<<count<<" steps";
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment