Skip to content
Permalink
Browse files

mdal: fix typo

  • Loading branch information
jef-n committed Mar 19, 2019
1 parent e868d07 commit a7a851727c5ab8abd7c3aff0d307467af66c6596
Showing with 4 additions and 4 deletions.
  1. +3 −3 external/mdal/frmts/mdal_xdmf.cpp
  2. +1 −1 external/mdal/frmts/mdal_xdmf.hpp
@@ -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 )
@@ -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)" ) )
{
@@ -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))
};

0 comments on commit a7a8517

Please sign in to comment.
You can’t perform that action at this time.