Opened 17 years ago

Closed 17 years ago

#25 closed bug (Fixed)

Declaration problem in cgradient.h

Reported by: m.hadfield Owned by: arango
Priority: major Milestone: Release ROMS/TOMS 3.1
Component: Nonlinear Version: 3.1
Keywords: Cc:

Description

In file cgradient.h, subroutine read_state.F, the explicit-shape version of the declaration for argument s_t is

real(r8), intent(inout) :: s_t(LBi:UBi,LBj:UBj,N(ng),NT(ng))

This has only 4 dimensions, whereas the corresponding assumed-shape declaration has 5:

real(r8), intent(inout) :: s_t(LBi:,LBj:,:,:,:)

I think the correct explicit-shape declaration is

real(r8), intent(inout) :: s_t(LBi:UBi,LBj:UBj,N(ng),2,NT(ng))

Corrected file attached.

Attachments (1)

cgradient.h (113.7 KB ) - added by m.hadfield 17 years ago.

Download all attachments as: .zip

Change History (2)

by m.hadfield, 17 years ago

Attachment: cgradient.h added

comment:1 by arango, 17 years ago

Resolution: fixed
Status: newclosed

This array needs to be declared as:

real(r8), intent(inout) :: s_t(LBi:UBi,LBj:UBj,N(ng),3,NT(ng))

Note: See TracTickets for help on using tickets.