I am using ROMS 3.7 (svn 678) checked out 31/07/2013
I have come across a few coding errors/omissions in various parts of the Adjoint model codes when trying to compile for my specific case study.
The errors are cpp defintion specific, so may not have arisen to date on the bundled test cases.
They relate to UV_VIS4 / TS_MPDATA / TCLIMATOLOGY and are;
ad_pre_step3d.F: from line 1604
should include the code between the ***-> <-*** markers, below:
Code: Select all
DO k=1,N(ng)-1
****-> DO i=Istr,Iend <-****
cff1=MAX(W(i,j,k),0.0_r8)
cff2=MIN(W(i,j,k),0.0_r8)
!> tl_FC(i,k)=tl_cff1*t(i,j,k ,nstp,itrc)+ &
!> & cff1*tl_t(i,j,k ,nstp,itrc)+ &
!> & tl_cff2*t(i,j,k+1,nstp,itrc)+ &
!> & cff2*tl_t(i,j,k+1,nstp,itrc)
!>
ad_t(i,j,k ,nstp,itrc)=ad_t(i,j,k ,nstp,itrc)+ &
& cff1*ad_FC(i,k)
ad_t(i,j,k+1,nstp,itrc)=ad_t(i,j,k+1,nstp,itrc)+ ***->&<-***
& cff2*ad_FC(i,k)
...
...
Code: Select all
# ifdef UV_VIS4
USE mod_ncparam
# endif
Code: Select all
IF (.not.(CompositeGrid(iwest,ng).or.EWperiodic(ng))) THEN
IF (DOMAIN(ng)%Western_Edge(tile)) THEN
IF (ad_LBC(iwest,isUbar,ng)%closed) THEN
...
...
Code: Select all
USE mod_ncparam
Code: Select all
IF (.not.(CompositeGrid(iwest,ng).or.EWperiodic(ng))) THEN
IF (DOMAIN(ng)%Western_Edge(tile)) THEN
IF (ad_LBC(iwest,isUvel,ng)%closed) THEN
...
...
Code: Select all
IF (.not.(CompositeGrid(iwest,ng).or.EWperiodic(ng))) THEN
IF (DOMAIN(ng)%Western_Edge(tile)) THEN
IF (ad_LBC(iwest,isUvel,ng)%closed) THEN
...
...
Code: Select all
# ifdef ANA_TCLIMA
CALL ana_tclima (ng, tile, iADM)
# else
ic=0
DO itrc=1,NT(ng)
...
...
I'm not too sure how to log these as tickets, etc, so hopefully they can be passed on through here.
Regards,
Alan.