Skip to content

Commit b260853

Browse files
committed
relevant for doloadstate=TRUE and large areal fractions of LUs: format errors occured for very large areas
1 parent 40f2097 commit b260853

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Hillslope/model_state_io.f90

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ subroutine save_all_conds(soil_conds_file, gw_conds_file, ic_conds_file, interfl
453453
else
454454
rtemp = 0. !in case of dummy subbasins
455455
end if
456-
WRITE(gw_file_hdle,'(2(I0,A1),F8.2,A1,F12.1)') id_subbas_extern(sb_counter), char(9),id_lu_extern(i_lu),&
456+
WRITE(gw_file_hdle,'(2(I0,A1),F8.2,A1,F0.0)') id_subbas_extern(sb_counter), char(9),id_lu_extern(i_lu),&
457457
char(9), rtemp,&
458458
char(9),area(sb_counter)*frac_lu(lu_counter,sb_counter)*1e6 !tab separated output
459459
endif
@@ -1121,7 +1121,7 @@ subroutine init_gw_conds(gw_conds_file)
11211121
do while (.TRUE.) !read whole file
11221122
IF (len(trim(error_msg))/=0) THEN !print error message, if occured
11231123
if (errors==0) then
1124-
write(*,'(A,/,3a12)')' Entities not found in current domain (ignored):','Line','subbasin','LU'
1124+
write(*,'(A,/,3a12)')' Format errors or entities not found in current domain (ignored):','Line','subbasin','LU'
11251125
end if
11261126
write(*,*)trim(error_msg)
11271127
error_msg=''
@@ -1137,7 +1137,7 @@ subroutine init_gw_conds(gw_conds_file)
11371137

11381138
READ(linestr,*, IOSTAT=i) i_subbasx,i_lux,gwvol_temp, x
11391139
IF (i/=0 .OR. isnan(0. + i_subbasx+i_lux + gwvol_temp + x)) THEN !format error
1140-
write(error_msg,'(i12,1a12,a)')line,'-',trim(linestr)
1140+
write(error_msg,'(i12,1a2,a)')line,' ',trim(linestr)
11411141
cycle !proceed with next line
11421142
END IF
11431143

@@ -1169,9 +1169,9 @@ subroutine init_gw_conds(gw_conds_file)
11691169
END DO
11701170
file_read=1
11711171
CLOSE(file_handle)
1172-
if (errors>0) then
1173-
return
1174-
end if
1172+
!if (errors>0) then
1173+
! return
1174+
!end if
11751175
end if
11761176

11771177
errors=0

0 commit comments

Comments
 (0)