We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For example support temperature-like conversions with offset, e.g.
y = f * x
y = offset + f * x
f(x)
The current alias-conversion formula is implemented into the most base uom_symbol class that looks like
uom_symbol
type :: uom_symbol integer :: exponent real :: factor real :: offset type(string) :: symbol endtype uom_symbol
As a matter of fact, currently only multiplicative-like conversion are supported
direct: f(x) = offset + factor * x inverse: f(x) = (x - offset) / factor
This should/could be generalized by a procedure pointer attribute customizable by user, e.g.
type :: uom_symbol integer :: exponent real :: factor real :: offset type(string) :: symbol procedure (generic_conversion_interface), pointer, nopass :: generic_conversion => null() endtype uom_symbol interface function generic_conversion_interface(x, inverse) real, intent (in) :: x logical, intent(in), optional :: inverse real :: generic_conversion_interface end function generic_conversion_interface end interface
The uom_symbol gramar must be modified to take into account this new scenario, e.g.
grammar: @user A
that means that the symbol A has a conversion(s) formula supplied by user.
A
The problem is how the user can supply these formula, uom_symbol being the most basic (almost hidden to user) class...
The text was updated successfully, but these errors were encountered:
Done in new 0.8.3
Sorry, something went wrong.
szaghi
No branches or pull requests
For example support temperature-like conversions with offset, e.g.
supported conversions
y = f * x
y = offset + f * x
f(x)
user providedhow to implement generic f(x) user-provided alias-conversion formula
The current alias-conversion formula is implemented into the most base
uom_symbol
class that looks likeAs a matter of fact, currently only multiplicative-like conversion are supported
This should/could be generalized by a procedure pointer attribute customizable by user, e.g.
The
uom_symbol
gramar must be modified to take into account this new scenario, e.g.that means that the symbol
A
has a conversion(s) formula supplied by user.The problem is how the user can supply these formula,
uom_symbol
being the most basic (almost hidden to user) class...The text was updated successfully, but these errors were encountered: