Merge pull request #77 from joakim-hove/template-cmp
Implemented float comparison with templates
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user