9 static const Path REFERENCE_DIR =
Path(
"/home/pavel/projects/astro/sph/src/cli/problems/reference/");
23 std::cout << std::endl;
28 std::cout << int(progress * 100) <<
"%" << std::endl;
double Float
Precision used withing the code. Use Float instead of float or double where precision is important.
#define NAMESPACE_SPH_END
Wrapper of pointer that deletes the resource from destructor.
Object representing a path on a filesystem.
Trigger executing given action every period.
ProgressLog(const Float period)
virtual AutoPtr< ITrigger > action(Storage &UNUSED(storage), Statistics &stats) override
Object holding various statistics about current run.
TValue get(const StatisticsId idx) const
Returns value of a statistic.
Container storing all quantities used within the simulations.
Outcome areFilesIdentical(const Path &path1, const Path &path2)
Checks whether the two files are identical (to the bit).
void measureRun(const Path &file, Function< void()> run)
Outcome areFilesApproxEqual(const Path &path1, const Path &path2)
Checks if two .ssf files are almost equal (may have eps-differences in quantities).