Commit af9fcd4
Fix invalid assignment to unallocated k_v/k_g arrays
k_v and k_g are allocatable arrays that are only allocated in
s_initialize_bubbles_model when bubbles_euler .and. .not. polytropic.
Assigning a scalar to them in s_assign_default_values_to_user_inputs,
which runs before allocation, is invalid Fortran and causes a runtime
error. Remove the premature array assignments; bub_pp%k_v/k_g (scalars)
are correctly initialized and the arrays are populated from them later
in s_initialize_bubble_vars after allocation.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 20af2d3 commit af9fcd4
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
700 | 700 | | |
701 | 701 | | |
702 | 702 | | |
703 | | - | |
704 | | - | |
| 703 | + | |
| 704 | + | |
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
| |||
0 commit comments