Skip to content

Commit 4aa085f

Browse files
committed
#2878 Added missing trim() calls to verbose output.
1 parent 06e0257 commit 4aa085f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

lib/extract/netcdf/extract_netcdf_base.jinja

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ contains
222222
call this%PSyDataBaseType%PreStart(module_name, region_name, &
223223
num_pre_vars, num_post_vars)
224224
if (this%verbosity >= 1) then
225-
write(stderr,*) "Opening ", trim(module_name//"-"//region_name//".nc")
225+
write(stderr,*) "Opening ", trim(module_name) // "-" // &
226+
trim(region_name) // ".nc"
226227
endif
227228

228229

@@ -275,8 +276,8 @@ contains
275276

276277
call this%PSyDataBaseType%PreEndDeclaration()
277278
if (this%verbosity >= 1) then
278-
write(stderr,*) "Ending definition ", this%module_name // &
279-
"-"//this%region_name//".nc"
279+
write(stderr,*) "Ending definition ", trim(this%module_name) // &
280+
"-"//trim(this%region_name)//".nc"
280281
endif
281282
retval = CheckError(nf90_enddef(this%ncid))
282283

@@ -297,8 +298,8 @@ contains
297298

298299
integer :: retval
299300
if (this%verbosity >= 1) then
300-
write(stderr,*) "Closing ", this%module_name//"-" //&
301-
this%region_name//".nc"
301+
write(stderr,*) "Closing ", trim(this%module_name) // "-" // &
302+
trim(this%region_name) // ".nc"
302303
endif
303304
retval = CheckError(nf90_close(this%ncid))
304305
call this%PSyDataBaseType%PostEnd()

0 commit comments

Comments
 (0)