Skip to content

OLAF: Fix incorrect VTK grid output filename on first write#3389

Merged
andrew-platt merged 2 commits into
OpenFAST:rc-5.0.1from
RBergua:OLAF_VTK_filenames
Jul 15, 2026
Merged

OLAF: Fix incorrect VTK grid output filename on first write#3389
andrew-platt merged 2 commits into
OpenFAST:rc-5.0.1from
RBergua:OLAF_VTK_filenames

Conversation

@RBergua

@RBergua RBergua commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

This PR is ready to be merged.

Feature or improvement description
Fixes an issue in FVW_CalcOutput where OLAF's VTK grid output filename on first write was always 0, regardless of when it was actually called. For example, previously, if WrVTK = 0 and TStart > 0, the code would still name the first grid file 000000000.vtk instead of the correct step index.

With this change, there is a new logic: m%FirstCall is initialized True and changed to False unconditionally at the end of the first FVW_UpdateStates call. So, it properly identifies the true first FVW_CalcOutput call (t = 0) regardless of WrVTK or nGridOut settings.

This change is implemented in lines 1540–1541. Additionally, trailing whitespace previously present in the file has been removed.

Related issue, if one exists
#3386

Impacted areas of the software
OLAF output VTK filename.

@andrew-platt andrew-platt left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I haven't double checked all the logic, but your testing shows this now works as expected.

@andrew-platt andrew-platt added this to the v5.0.1 milestone Jul 15, 2026
@andrew-platt andrew-platt merged commit aec21e9 into OpenFAST:rc-5.0.1 Jul 15, 2026
38 of 39 checks passed
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.

2 participants