Update the implementation to identify region-to-region variables #551
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The type of the summary variables is inferred by looking at the string, e.g. all variables like
WWCT
andWOPT
which start withW
are well variables.Variables starting with 'R' are region properties, but for region properties there is a sub-category of variables which describe region-to-region properties. This PR updates the code to identify region-to-region properties. Previously the algorithm to detect a region to region variable was just to check the third character - and all variables with
var[2] == 'F'
were classified as region to region variables.This PR will change the classification in two ways:
It is stricter - in addition to third character we also check the fourth character - and require that
var[3] == 'T' || var[3] == 'R'
.It is more lenient - we also check for the substring
FT
orFR
one character further out in the string - i.e. starting at the fourth character in var.