Skip to content

Commit 30d336c

Browse files
committed
Trim file_path string in pio_reader errmsg.
1 parent 0d574fc commit 30d336c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/physics/utils/pio_reader.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ subroutine open_netcdf_file(this, file_path, errmsg, errcode)
6565

6666
if(this%sima_pio_fh%is_file_open) then
6767
errcode = 1
68-
errmsg = "Trying to reuse pio_reader already used for: '"//this%sima_pio_fh%file_path//"'"
68+
errmsg = "Trying to reuse pio_reader already used for: '"//trim(this%sima_pio_fh%file_path)//"'"
6969
return
7070
end if
7171

0 commit comments

Comments
 (0)