It is only a problem when the southern boundary is closed while the northern boundary is open.
Changing:
Code: Select all
IF (tl_LBC(isouth,isUbar,ng)%acquire) THEN
allocate ( BOUNDARY(ng) % tl_ubar_north(LBi:UBi) )
END IF
to:
Code: Select all
IF (tl_LBC(inorth,isUbar,ng)%acquire) THEN
allocate ( BOUNDARY(ng) % tl_ubar_north(LBi:UBi) )
END IF
Ann Kristin