mdal: fix typo

This commit is contained in:
Juergen E. Fischer 2019-03-19 20:10:20 +01:00
parent e868d07f58
commit a7a851727c
2 changed files with 4 additions and 4 deletions

View File

@ -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( group()->isScalar() ); //checked in C API interface
assert( mType != FunctionType::Join ); assert( mType != FunctionType::Join );
if ( mType == FunctionType::Substract ) if ( mType == FunctionType::Subtract )
return substractFunction( indexStart, count, buffer ); return substractFunction( indexStart, count, buffer );
if ( mType == FunctionType::Flow ) if ( mType == FunctionType::Flow )
@ -487,11 +487,11 @@ MDAL::DatasetGroups MDAL::DriverXdmf::parseXdmfXml( )
else if ( function == "$0-$1" ) else if ( function == "$0-$1" )
{ {
reversed = true; reversed = true;
type = XdmfFunctionDataset::Substract; type = XdmfFunctionDataset::Subtract;
} }
else if ( function == "$1-$0" ) else if ( function == "$1-$0" )
{ {
type = XdmfFunctionDataset::Substract; type = XdmfFunctionDataset::Subtract;
} }
else if ( ( function == "JOIN($0,$1,0*$1)" ) || ( function == "JOIN($0,$1,0)" ) ) else if ( ( function == "JOIN($0,$1,0*$1)" ) || ( function == "JOIN($0,$1,0)" ) )
{ {

View File

@ -105,7 +105,7 @@ namespace MDAL
enum FunctionType enum FunctionType
{ {
Join = 1, //!< vector: [$0, $1] from 2 scalars 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)) Flow, //!< scalar: flow velocity (abs) = sqrt($0/($2-$3)*$0/($2-$3) + $1/($2-$3)*$1/($2-$3))
}; };