-
Notifications
You must be signed in to change notification settings - Fork 133
Fix serial I/O missing beta for bubbles_lagrange in post_process #1274
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -476,6 +476,19 @@ contains | |
| write (2) q_cons_vf(i)%sf(0:m, 0:n, 0:p); close (2) | ||
| end do | ||
|
|
||
| ! Lagrangian beta (void fraction) written as q_cons_vf(sys_size+1) to | ||
| ! match the parallel I/O path and allow post_process to read it. | ||
| if (bubbles_lagrange) then | ||
| write (file_path, '(A,I0,A)') trim(t_step_dir)//'/q_cons_vf', & | ||
| sys_size + 1, '.dat' | ||
|
|
||
| open (2, FILE=trim(file_path), & | ||
| FORM='unformatted', & | ||
| STATUS='new') | ||
|
|
||
| write (2) beta%sf(0:m, 0:n, 0:p); close (2) | ||
| end if | ||
|
Comment on lines
+479
to
+490
|
||
|
|
||
| if (qbmm .and. .not. polytropic) then | ||
| do i = 1, nb | ||
| do r = 1, nnode | ||
|
|
||
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.
This fallback initializes
betato zero whenever the beta file is missing, for anyt_step. That can silently hide real I/O/data corruption for later steps (and yield incorrect post-processed results). Consider restricting the zero-initialization to the known pre_process-only step (e.g.,t_step == t_step_start/ the first step being processed), and keep aborting for missing beta files at other timesteps (or at least emit a clear warning).