WTYPE=9 is defined in mod_scalars.F as:
Code: Select all
real(r8), dimension(9) :: lmd_mu1 = &
& (/ 0.35_r8, 0.6_r8, 1.0_r8, 1.5_r8, 1.4_r8, &
& 0.42_r8, 0.37_r8, 0.33_r8, 0.0_r8 /)
The division by zero occurs in lmd_swfrac.F:
Code: Select all
fac1(i)=Zscale/lmd_mu1(Jindex)
Program received signal SIGFPE, Arithmetic exception.
0x0000000000a40422 in lmd_swfrac_tile (ng=1, tile=0, lbi=-3, ubi=8, lbj=-3, ubj=8, imins=-2, imaxs=7, jmins=-2,
jmaxs=7, zscale=-1, z=..., swdk=...) at lmd_swfrac.f90:123
123 fac1(i)=Zscale/lmd_mu1(Jindex)
ROMS runs perfectly fine when I select a different Jerlov water type.
Thanks for your time,
Pierre