1% =========================================================================== %
2%> @brief convert a direction to a number
4%> @param dir direction to convert (positive, negative)
13%> %> @copyright see the file @ref LICENSE in the root directory of the repository
14% =========================================================================== %
27 error("The direction %s does not correspond to a number", dir)
function direction2num(in dir)
convert a direction to a number