Opened 10 years ago

Closed 10 years ago

#637 closed bug (Fixed)

diagnostics bug — at Version 1

Reported by: jcwarner Owned by: arango
Priority: minor Milestone: Release ROMS/TOMS 3.7
Component: Nonlinear Version: 3.7
Keywords: Cc:

Description (last modified by arango)

Not sure why this was not seen before. But most likely because the idiag index was not exceeded. There is a bug in step3d_uv.F, line 937 needs to be in an idiag loop the code now has:

# if defined DIAGNOSTICS_UV && defined MASKING
          DO k=1,N(ng)
            DO i=Istr,Iend
              DiaV3wrk(i,j,k,idiag)=DiaV3wrk(i,j,k,idiag)*vmask(i,j)
            END DO
          END DO
# endif

but it really needs to be:

# if defined DIAGNOSTICS_UV && defined MASKING
          DO k=1,N(ng)
            DO i=Istr,Iend
              DO idiag=1,NDM3d
                DiaV3wrk(i,j,k,idiag)=DiaV3wrk(i,j,k,idiag)*vmask(i,j)
              END DO
            END DO
          END DO
# endif

Change History (1)

comment:1 by arango, 10 years ago

Description: modified (diff)
Resolution: Fixed
Status: newclosed

Yes, thank you for reporting this one. The impact of this bug is very minimal since the state variables were already masked. However, it is good to correct this. I can believe that the compilers didn't pick-up this one.

Note: See TracTickets for help on using tickets.