Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed more merge problems
  • Loading branch information
daminton committed Jul 23, 2021
1 parent a735a7d commit 15ae06a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 17 deletions.
1 change: 0 additions & 1 deletion src/io/io_read_surf.f90
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ subroutine io_read_surf(user,surf)
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 Down
24 changes: 12 additions & 12 deletions src/io/io_updatePbar.f90
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,20 @@ subroutine io_updatePbar(message)
perc=floor(100*real(pbarpos)/real(PBARRES))
write(unit=bar(1:3),fmt="(i3)") perc
endpoint = min(ceiling(real(pbarpos*PBARSIZE)/real(PBARRES)),PBARSIZE)
do k = 1,endpoint - 1
do k = 1,endpoint !- 1
bar(6+k:6+k)=pbarchar(k:k)
end do
select case(flip)
case(1)
bar(6+endpoint:6+endpoint)="/"
case(2)
bar(6+endpoint:6+endpoint)="-"
case(3)
bar(6+endpoint:6+endpoint)="\"
case(4)
bar(6+endpoint:6+endpoint)="|"
end select
flip = flip + 1
!select case(flip)
!case(1)
! bar(6+endpoint:6+endpoint)="/"
!case(2)
! bar(6+endpoint:6+endpoint)="-"
!case(3)
! bar(6+endpoint:6+endpoint)="\"
!case(4)
! bar(6+endpoint:6+endpoint)="|"
!end select
!flip = flip + 1
if (flip > 4) flip = 1
! print the progress bar.
write(fmtlabel,'("(A1,A",I2.2,",1X,A",I2.2,",$)")') PBARSIZE+7,MESSAGESIZE
Expand Down
12 changes: 8 additions & 4 deletions src/io/io_write_surf.f90
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,12 @@ subroutine io_write_surf(user,surf)
end do
close(LUN)

open(LUN,file=TIMEFILE,status='replace',form='unformatted',recl=recsize,access='direct')
do i=1,user%numlayers
write(LUN,rec=i) surf%timestamp(i)
end do
close(LUN)

recsize = sizeof(stmp) * user%gridsize * user%gridsize
open(LUN,file=POSFILE,status='replace',form='unformatted',recl=recsize,access='direct')
do i=1,user%numlayers
Expand All @@ -61,10 +67,8 @@ subroutine io_write_surf(user,surf)
end do
close(LUN)

if (user%doregotrack) then
!call io_write_regodist(user,surf)
call io_write_regotrack(user,surf)
end if
if (user%doregotrack) call io_write_regotrack(user,surf)

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

0 comments on commit 15ae06a

Please sign in to comment.