mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
mdal: fix typo
This commit is contained in:
parent
e868d07f58
commit
a7a851727c
6
external/mdal/frmts/mdal_xdmf.cpp
vendored
6
external/mdal/frmts/mdal_xdmf.cpp
vendored
@ -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)" ) )
|
||||
{
|
||||
|
2
external/mdal/frmts/mdal_xdmf.hpp
vendored
2
external/mdal/frmts/mdal_xdmf.hpp
vendored
@ -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))
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user