Skip to content

Commit c596db5

Browse files
mjrenomjreno
authored andcommitted
add filename to warnings
1 parent 161638a commit c596db5

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/Utilities/Export/DisNCStructured.f90

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ subroutine dis_export_init(this, modelname, modeltype, modelfname, nc_fname, &
145145
this%chunk_x = -1
146146
write (warnmsg, '(a)') 'Ignoring user provided NetCDF chunking &
147147
&parameters. Define chunk_time, chunk_x, chunk_y and chunk_z input &
148-
&parameters to see an effect.'
148+
&parameters to see an effect in file "'//trim(nc_fname)//'".'
149149
call store_warning(warnmsg)
150150
end if
151151

@@ -156,7 +156,8 @@ subroutine dis_export_init(this, modelname, modeltype, modelfname, nc_fname, &
156156
this%latlon = .true.
157157
if (this%wkt /= '') then
158158
write (warnmsg, '(a)') 'Ignoring user provided NetCDF wkt parameter &
159-
&as longitude and latitude arrays have been provided.'
159+
&as longitude and latitude arrays have been provided. &
160+
&Applies to file "'//trim(nc_fname)//'".'
160161
call store_warning(warnmsg)
161162
this%wkt = ''
162163
this%gridmap_name = ''
@@ -168,7 +169,8 @@ subroutine dis_export_init(this, modelname, modeltype, modelfname, nc_fname, &
168169
if (this%wkt /= '') then
169170
if (this%dis%angrot /= DZERO) then
170171
write (warnmsg, '(a)') 'WKT parameter set with structured rotated &
171-
&grid. Projected coordinates will have grid local values.'
172+
&grid. Projected coordinates will have grid local values. &
173+
&Applies to file "'//trim(nc_fname)//'".'
172174
call store_warning(warnmsg)
173175
end if
174176
end if

src/Utilities/Export/MeshNCModel.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ subroutine mesh_init(this, modelname, modeltype, modelfname, nc_fname, &
128128
this%chunk_face = -1
129129
this%chunk_time = -1
130130
write (warnmsg, '(a)') 'Ignoring user provided NetCDF chunking parameter. &
131-
&Define chunk_time and chunk_face input parameters to see an effect.'
131+
&Define chunk_time and chunk_face input parameters to see an effect in &
132+
&file "'//trim(nc_fname)//'".'
132133
call store_warning(warnmsg)
133134
end if
134135

0 commit comments

Comments
 (0)