SPH
Functions
Common.cpp File Reference
#include "Common.h"
#include "quantities/Iterate.h"

Go to the source code of this file.

Functions

NAMESPACE_SPH_BEGIN Outcome areFilesIdentical (const Path &path1, const Path &path2)
 Checks whether the two files are identical (to the bit). More...
 
Outcome areFilesApproxEqual (const Path &path1, const Path &path2)
 Checks if two .ssf files are almost equal (may have eps-differences in quantities). More...
 
void measureRun (const Path &file, Function< void()> run)
 

Function Documentation

◆ areFilesApproxEqual()

Outcome areFilesApproxEqual ( const Path path1,
const Path path2 
)

Checks if two .ssf files are almost equal (may have eps-differences in quantities).

Todo:
also materials

Definition at line 29 of file Common.cpp.

◆ areFilesIdentical()

NAMESPACE_SPH_BEGIN Outcome areFilesIdentical ( const Path path1,
const Path path2 
)

Checks whether the two files are identical (to the bit).

Definition at line 6 of file Common.cpp.

◆ measureRun()

void measureRun ( const Path file,
Function< void()>  run 
)

Definition at line 67 of file Common.cpp.