Merge pull request #77 from joakim-hove/template-cmp

Implemented float comparison with templates
This commit is contained in:
Atgeirr Flø Rasmussen
2016-02-19 11:41:00 +01:00
5 changed files with 112 additions and 125 deletions

View File

@@ -153,7 +153,7 @@ namespace Opm {
if (other.hasCellData( key )) {
const auto& other_data = other.getCellData( key );
if (!cmp::double_vector_equal( data , other_data ))
if (!cmp::vector_equal<double>( data , other_data ))
return false;
} else
return false;
@@ -165,7 +165,7 @@ namespace Opm {
if (other.hasFaceData( key )) {
const auto& other_data = other.getFaceData( key );
if (!cmp::double_vector_equal( data , other_data ))
if (!cmp::vector_equal<double>( data , other_data ))
return false;
} else
return false;