Skip to content
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

Merged
merged 6 commits into from
Dec 12, 2024

Conversation

deslaughter
Copy link
Collaborator

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. The IsPath optional argument was added to ParseChVar so this flag can be added instances where ParseVar is use to parse a path. This required modifications to GetWords 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.

@andrew-platt andrew-platt merged commit fca18ee into OpenFAST:rc-3.5.5 Dec 12, 2024
19 checks passed
@@ -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)
Copy link
Contributor

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)?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that should! Good catch.

Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants