Skip to content

Commit

Permalink
mdal: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Mar 19, 2019
1 parent e868d07 commit a7a8517
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions external/mdal/frmts/mdal_xdmf.cpp
Expand Up @@ -152,7 +152,7 @@ size_t MDAL::XdmfFunctionDataset::scalarData( size_t indexStart, size_t count, d
assert( group()->isScalar() ); //checked in C API interface
assert( mType != FunctionType::Join );

if ( mType == FunctionType::Substract )
if ( mType == FunctionType::Subtract )
return substractFunction( indexStart, count, buffer );

if ( mType == FunctionType::Flow )
Expand Down Expand Up @@ -487,11 +487,11 @@ MDAL::DatasetGroups MDAL::DriverXdmf::parseXdmfXml( )
else if ( function == "$0-$1" )
{
reversed = true;
type = XdmfFunctionDataset::Substract;
type = XdmfFunctionDataset::Subtract;
}
else if ( function == "$1-$0" )
{
type = XdmfFunctionDataset::Substract;
type = XdmfFunctionDataset::Subtract;
}
else if ( ( function == "JOIN($0,$1,0*$1)" ) || ( function == "JOIN($0,$1,0)" ) )
{
Expand Down
2 changes: 1 addition & 1 deletion external/mdal/frmts/mdal_xdmf.hpp
Expand Up @@ -105,7 +105,7 @@ namespace MDAL
enum FunctionType
{
Join = 1, //!< vector: [$0, $1] from 2 scalars
Substract, //!< scalar: $1 - $0, e.g. calculate relative depth
Subtract, //!< scalar: $1 - $0, e.g. calculate relative depth
Flow, //!< scalar: flow velocity (abs) = sqrt($0/($2-$3)*$0/($2-$3) + $1/($2-$3)*$1/($2-$3))
};

Expand Down

0 comments on commit a7a8517

Please sign in to comment.