Skip to content

Commit f06c99f

Browse files
committed
seagrass - fixed configuration
1 parent b176df4 commit f06c99f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/extras/seagrass/seagrass.F90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ module seagrass
3535
! Original author(s): Hans Burchard & Karsten Bolding
3636
!
3737
REALTYPE, dimension(:), allocatable :: exc,vfric,grassz,xxP
38+
integer :: method
3839
character(len=PATH_MAX) :: grassfile='seagrass.dat'
3940
REALTYPE :: alpha
4041
integer :: grassind
@@ -75,7 +76,7 @@ subroutine init_seagrass()
7576

7677

7778
branch => settings_store%get_typed_child('seagrass','calculate seagrass effect on turbulence')
78-
call branch%get(i, 'method', '', options=(/option(0, 'off'), option(1, 'from file')/), default=0)
79+
call branch%get(method, 'method', '', options=(/option(0, 'off'), option(1, 'from file')/), default=0)
7980
call branch%get(grassfile, 'file', 'path to file with grass specifications', default='seagrass.dat')
8081
call branch%get(alpha, 'alpha', 'efficiency of leafes turbulence production', '',default=0._rk)
8182

0 commit comments

Comments
 (0)