-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
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
Allow ParseVar to parse file paths containing spaces. #2558
Allow ParseVar to parse file paths containing spaces. #2558
Conversation
@@ -2070,68 +2070,95 @@ SUBROUTINE GetWords ( Line, Words, NumWords, NumFound ) | |||
CHARACTER(*), INTENT(IN) :: Line !< The string to search. | |||
CHARACTER(*), INTENT(OUT) :: Words(NumWords) !< The array of found words. | |||
INTEGER, OPTIONAL, INTENT(OUT) :: NumFound !< The number of words found | |||
LOGICAL, OPTIONAL, INTENT(OUT) :: IgnoreQuotes !< Flag to ignore quotes (process as whitespace) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be INTENT(IN)
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that should! Good catch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed directly on rc-3.5.5
with a62d877
This PR is ready to be merged.
Feature or improvement description
This PR attempts to add support for file paths containing spaces when the paths are parsed with
ParseVar
. TheIsPath
optional argument was added toParseChVar
so this flag can be added instances whereParseVar
is use to parse a path. This required modifications toGetWords
to respect or ignore single or double quotes.Related issue, if one exists
#2552
Impacted areas of the software
NWTC_IO.f90
and AeroDyn, HydroDyn, InflowWind input reading functions.