Skip to content

Fix veg_lai and veg_cw type declaration: integer -> real#205

Merged
josephzhang8 merged 1 commit into
masterfrom
fix/veg-lai-cw-type
Dec 8, 2025
Merged

Fix veg_lai and veg_cw type declaration: integer -> real#205
josephzhang8 merged 1 commit into
masterfrom
fix/veg-lai-cw-type

Conversation

@jreniel
Copy link
Copy Markdown
Member

@jreniel jreniel commented Dec 8, 2025

These variables are incorrectly declared as integers but are used as real values (e.g., veg_cw=1.5). When users specify float values in param.nml (such those in the example_inputs/param.nml), Fortran fails to parse the namelist:

  Error termination. Backtrace:
  At line 537 of file .../src/Hydro/schism_init.F90 (unit = 15, file = './/param.nml')
  Fortran runtime error: Cannot match namelist object name .

Moving veg_lai and veg_cw from integer to real(rkind) declaration block fixes the issue by making the declarations consistent.

These variables are incorrectly declared as integers but are used as
real values (e.g., veg_cw=1.5). When users specify float values in
param.nml, Fortran fails to parse the namelist:

  Error termination. Backtrace:
  At line 537 of file .../src/Hydro/schism_init.F90 (unit = 15, file = './/param.nml')
  Fortran runtime error: Cannot match namelist object name

Move veg_lai and veg_cw from integer to real(rkind) declaration block.
@jreniel jreniel requested a review from josephzhang8 December 8, 2025 03:22
@josephzhang8 josephzhang8 merged commit 5877cd1 into master Dec 8, 2025
@josephzhang8 josephzhang8 deleted the fix/veg-lai-cw-type branch December 8, 2025 10:14
tomsail pushed a commit to tomsail/schism that referenced this pull request May 22, 2026
)

These variables are incorrectly declared as integers but are used as
real values (e.g., veg_cw=1.5). When users specify float values in
param.nml, Fortran fails to parse the namelist:

  Error termination. Backtrace:
  At line 537 of file .../src/Hydro/schism_init.F90 (unit = 15, file = './/param.nml')
  Fortran runtime error: Cannot match namelist object name

Move veg_lai and veg_cw from integer to real(rkind) declaration block.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants