Skip to content

Commit

Permalink
Fixed merge
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Jul 23, 2021
1 parent d681cc4 commit a735a7d
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/io/io_read_surf.f90
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ subroutine io_read_surf(user,surf)
read(LUN,rec=1) surf%dem
close(LUN)


open(LUN,file=EJCOVFILE,status='old',form='unformatted',recl=recsize,access='direct',iostat=ioerr)
if (ioerr/=0) then
write(*,*) 'Error! Cannot read file ',trim(adjustl(EJCOVFILE))
Expand All @@ -66,6 +67,17 @@ subroutine io_read_surf(user,surf)
end do
close(LUN)

open(LUN,file=TIMEFILE,status='old',form='unformatted',recl=recsize,access='direct',iostat=ioerr)
if (ioerr/=0) then
write(*,*) 'Error! Cannot read file ',trim(adjustl(DIAMFILE))
stop
end if
do i=1,user%numlayers
read(LUN,rec=i) surf%timestamp(i)
end do
close(LUN)


recsize = sizeof(stmp) * user%gridsize * user%gridsize
open(LUN,file=POSFILE,status='old',form='unformatted',recl=recsize,access='direct',iostat=ioerr)
if (ioerr/=0) then
Expand All @@ -79,7 +91,7 @@ subroutine io_read_surf(user,surf)
close(LUN)

if (user%doregotrack) call io_read_regotrack(user,surf)

!if (user%docrustal_thinning) then
! recsize=sizeof(itmp)*user%gridsize*user%gridsize
! open(LUN,file=THICKFILE,status='old',form='unformatted',recl=recsize,access='direct',iostat=ioerr)
Expand Down

0 comments on commit a735a7d

Please sign in to comment.