56 REAL(
sp),
ALLOCATABLE ::
uatts(:,:),
vatts(:,:),
utts(:,:,:),
vtts(:,:,:),
eltts(:,:)
66 REAL(
sp),
ALLOCATABLE ::
ut(:,:),
vt(:,:)
140 INTEGER :: I,ITMP,J,J1,I1,IERR
142 INTEGER,
ALLOCATABLE :: TEMP(:)
143 INTEGER,
ALLOCATABLE :: NODE_OB(:),CELL_OB(:)
144 INTEGER :: k,NCNT,itemp
145 INTEGER,
ALLOCATABLE :: temp1(:)
146 REAL(SP),
ALLOCATABLE :: RTEMP1(:,:),RTEMP2(:,:),RTEMP3(:,:,:),RTEMP4(:,:,:)
147 INTEGER :: i2,i3,ii,JN
148 REAL(SP):: DELTX,DELTY,XTMP1,YTMP1,AA1,BB1,CC1,AA2,BB2,CC2
150 ALLOCATE(node_ob(0:mt)); node_ob = 0
151 ALLOCATE(cell_ob(0:nt)); cell_ob = 0
166 cell_ob(
nbve(j,i)) = 1
171 ALLOCATE(temp(ne)); temp = zero
177 IF(cell_ob(ia) == 1 .OR. cell_ob(ib) == 1)
THEN 187 ALLOCATE(temp(ncv)); temp = zero
193 IF(node_ob(ia) == 1 .OR. node_ob(ib) == 1)
THEN 211 CALL fopen(
inmf, trim(input_dir)//trim(casename)//
'_meanflow.dat' ,
"cfr")
212 CALL fopen(
intcell,trim(input_dir)//trim(casename)//
'_tide_cell.dat' ,
"cfr")
213 CALL fopen(
intnode,trim(input_dir)//trim(casename)//
'_tide_node.dat' ,
"cfr")
214 CALL fopen(
intelel,trim(input_dir)//trim(casename)//
'_tide_el.dat' ,
"cfr")
215 CALL fopen(
intuv, trim(input_dir)//trim(casename)//
'_tide_uv.dat' ,
"cfr")
245 CALL fopen(111,trim(input_dir)//trim(casename)//
'_elj_obc.dat',
"cfr")
250 READ(111,*,iostat=
ios)
254 IF(ncnt == 0)
CALL fatal_error(
"JULIAN TIDE SELECTED BUT NO DATA IN FILE")
257 ALLOCATE(
elo_tm%TIMES(ncnt))
305 DEALLOCATE(rtemp1,rtemp2,rtemp3,rtemp4)
449 IF(
nbe(ii,1) == 0 .and.
isonb(
nv(ii,1)) /= 2)
THEN 454 cc1 = -aa1*
vx(
nv(ii,2))-bb1*
vy(
nv(ii,2))
455 ELSE IF(
nbe(ii,2) == 0 .and.
isonb(
nv(ii,2)) /= 2)
THEN 460 cc1 = -aa1*
vx(
nv(ii,3))-bb1*
vy(
nv(ii,3))
461 ELSE IF(
nbe(ii,3) == 0 .and.
isonb(
nv(ii,3)) /= 2)
THEN 466 cc1 = -aa1*
vx(
nv(ii,1))-bb1*
vy(
nv(ii,1))
468 print*,
'something is wrong here 1' 474 cc2 = -aa2*
xc(ii)-bb2*
yc(ii)
476 xtmp1 = -(cc1*bb2-cc2*bb1)/(aa1*bb2-aa2*bb1)
477 ytmp1 = -(cc1*aa2-cc2*aa1)/(bb1*aa2-bb2*aa1)
479 dltn(i) = sqrt((
xc(ii)-xtmp1)**2+(
yc(ii)-ytmp1)**2)
496 REAL(SP) :: FACT,UFACT,TIME1
525 REAL(SP) :: FACT,UFACT,TIME1
528 time1=seconds(inttime-starttime)-dti
623 INTEGER,
INTENT(IN) :: KTT
648 uantf(i) = (cc*
uatf(j1) +
uarknt(i)*(1.0_sp-alpha_rk(ktt)*dte/coef))/cp
649 vantf(i) = (cc*
vatf(j1) +
varknt(i)*(1.0_sp-alpha_rk(ktt)*dte/coef))/cp
680 INTEGER,
INTENT(IN) :: KTT
695 unt(i,k) = (cc*
ut(j1,k) +
untb(i,k)*(1.0_sp-dti/coef))/cp
696 vnt(i,k) = (cc*
vt(j1,k) +
vntb(i,k)*(1.0_sp-dti/coef))/cp
724 CHARACTER(LEN=*) :: MSG
726 INTEGER,
PARAMETER :: CELL1=59
727 INTEGER,
PARAMETER :: CELL2=229
748 CHARACTER(LEN=*) :: MSG
750 INTEGER,
PARAMETER :: NODE1=30
751 INTEGER,
PARAMETER :: NODE2=115
real(sp), dimension(:), allocatable, target va
real(sp), dimension(:,:), allocatable untb
real(sp), dimension(:), allocatable eltdt
subroutine bcond_bki_2d(KTT)
real(sp), dimension(:), allocatable, target d1
real(sp), dimension(:), allocatable uapf
integer, dimension(:), allocatable i_obc_cell
real(sp), dimension(:), allocatable vanp
subroutine test_cell(INDEX, MSG)
real(sp), dimension(:,:), allocatable, target v
real(sp), dimension(:,:), allocatable vntb
real(sp), dimension(:,:,:), allocatable utts
integer, dimension(:), allocatable i_mfcell_n
real(sp), dimension(:), allocatable uan
real(sp), dimension(:), allocatable van
integer, dimension(:), allocatable i_tidenode_n
real(sp), dimension(:), allocatable vapf
real(sp), dimension(:), allocatable, target yc
real(sp), dimension(:), allocatable elp
integer, dimension(:), allocatable i_obc_node
real(sp), dimension(:,:), allocatable eltts
integer, dimension(:,:), allocatable obc_lst
real(sp), dimension(:), allocatable varkn
subroutine test_node(INDEX, MSG)
real(sp), dimension(:), allocatable uanp
real(sp), dimension(:,:), allocatable un
real(sp), dimension(:), allocatable uanf
real(sp), dimension(:), allocatable elrkt
real(sp), dimension(:,:), allocatable ut
real(sp), dimension(:,:), allocatable uatts
real(sp), dimension(:), allocatable dltn
real(sp), dimension(:,:), allocatable, target u
real(sp), dimension(:), allocatable uantf
integer, dimension(:,:), allocatable, target iec
real(sp), dimension(:), allocatable elt
real(sp), dimension(:), allocatable uatf
real(sp), dimension(:), allocatable uarknt
integer, dimension(:,:), allocatable, target niec
real(sp), dimension(:,:), allocatable vn
integer, dimension(:), allocatable cobedge_lst
real(sp), dimension(:), allocatable uap
real(sp), dimension(:,:), allocatable vnt
real(sp), dimension(:), allocatable, target vx
real(sp), dimension(:), allocatable, target grav_e
real(sp), dimension(:), allocatable, target vaf
real(sp), dimension(:), allocatable vanpf
real(sp), dimension(:), allocatable, target vy
integer, dimension(:), allocatable i_tidecell_gl
integer, dimension(:), allocatable, target ntve
real(sp), dimension(:), allocatable uarkn
real(sp), dimension(:), allocatable uanpf
integer, dimension(:,:), allocatable, target nbe
integer, dimension(:), allocatable i_obc_n
real(sp), dimension(:), allocatable vantf
subroutine bcond_bki_3d(KTT)
subroutine alloc_obc2_data
integer, dimension(:,:), allocatable, target nv
integer, dimension(5) ibcn
real(sp), dimension(:), allocatable vanf
real(sp), dimension(:,:), allocatable vt
real(sp), dimension(:), allocatable uant
real(sp), dimension(:,:), allocatable unt
real(sp), dimension(:), allocatable elrkp
real(sp), dimension(:), allocatable, target ua
real(sp), dimension(:), allocatable vant
real(sp), dimension(:,:), allocatable vatts
real(sp), dimension(:,:), allocatable unb
real(sp), dimension(:), allocatable uat
real(sp), dimension(:), allocatable elpf
integer, dimension(:,:), allocatable, target nbve
integer, dimension(:), allocatable i_obc_cell2
integer, dimension(:), allocatable i_obc_node2
real(sp), dimension(:), allocatable, target xc
real(sp), dimension(:), allocatable, target uaf
real(sp), dimension(:), allocatable eltf
integer, dimension(:), allocatable nobedge_lst
real(sp), dimension(:,:), allocatable vnb
subroutine bracket(TMAP, STIME, L1, L2, FACT, BACT, IERR)
real(sp), dimension(:), allocatable varknt
real(sp), dimension(:), allocatable vat
real(sp), dimension(:,:,:), allocatable vtts
subroutine set_bndry_meanflow
integer, dimension(:), allocatable, target isonb
integer, dimension(:), allocatable i_tidenode_gl
real(sp), dimension(:), allocatable vap
integer, dimension(:), allocatable i_tidecell_n
real(sp), dimension(:), allocatable vatf