Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Fixed issue that was causing the param file reading to fail when read…
Browse files Browse the repository at this point in the history
…ing in a netcdf input file
  • Loading branch information
daminton committed Oct 14, 2021
1 parent b22c205 commit de04c00
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/io/io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ module subroutine io_param_reader(self, unit, iotype, v_list, iostat, iomsg)
iostat = -1
return
end if
if ((param%in_type /= REAL8_TYPE) .and. (param%in_type /= "ASCII")) then
if ((param%in_type /= REAL8_TYPE) .and. (param%in_type /= "ASCII") .and. (param%in_type /= NETCDF_FLOAT_TYPE) .and. (param%in_type /= NETCDF_DOUBLE_TYPE)) then
write(iomsg,*) 'Invalid input file type:',trim(adjustl(param%in_type))
iostat = -1
return
Expand Down Expand Up @@ -948,7 +948,9 @@ module subroutine io_param_writer(self, unit, iotype, v_list, iostat, iomsg)
call io_param_writer_one("OUT_FORM", param%out_form, unit)
call io_param_writer_one("OUT_STAT", "APPEND", unit)
end if
call io_param_writer_one("PARTICLE_OUT", param%particle_out, unit)
if ((param%out_type /= REAL4_TYPE) .and. (param%out_type /= REAL8_TYPE)) then
call io_param_writer_one("PARTICLE_OUT", param%particle_out, unit)
end if
if (param%enc_out /= "") then
call io_param_writer_one("ENC_OUT", param%enc_out, unit)
end if
Expand Down

0 comments on commit de04c00

Please sign in to comment.