Skip to content

Commit 15ad874

Browse files
mjrenomjreno
authored andcommitted
name adjustment for internal global attrs
1 parent fb55626 commit 15ad874

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Utilities/Export/DisNCStructured.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -640,10 +640,10 @@ subroutine add_global_att(this)
640640
call nf_verify(nf90_put_att(this%ncid, NF90_GLOBAL, 'source', &
641641
this%annotation%source), this%nc_fname)
642642
! export type (MODFLOW 6)
643-
call nf_verify(nf90_put_att(this%ncid, NF90_GLOBAL, 'modflow6_grid', &
643+
call nf_verify(nf90_put_att(this%ncid, NF90_GLOBAL, 'modflow_grid', &
644644
this%annotation%grid), this%nc_fname)
645645
! MODFLOW 6 model type
646-
call nf_verify(nf90_put_att(this%ncid, NF90_GLOBAL, 'modflow6_model', &
646+
call nf_verify(nf90_put_att(this%ncid, NF90_GLOBAL, 'modflow_model', &
647647
this%annotation%model), this%nc_fname)
648648
! generation datetime
649649
call nf_verify(nf90_put_att(this%ncid, NF90_GLOBAL, 'history', &

src/Utilities/Export/MeshNCModel.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ subroutine add_global_att(this)
158158
call nf_verify(nf90_put_att(this%ncid, NF90_GLOBAL, 'source', &
159159
this%annotation%source), this%nc_fname)
160160
! export type (MODFLOW 6)
161-
call nf_verify(nf90_put_att(this%ncid, NF90_GLOBAL, 'modflow6_grid', &
161+
call nf_verify(nf90_put_att(this%ncid, NF90_GLOBAL, 'modflow_grid', &
162162
this%annotation%grid), this%nc_fname)
163163
! MODFLOW 6 model type
164-
call nf_verify(nf90_put_att(this%ncid, NF90_GLOBAL, 'modflow6_model', &
164+
call nf_verify(nf90_put_att(this%ncid, NF90_GLOBAL, 'modflow_model', &
165165
this%annotation%model), this%nc_fname)
166166
! generation datetime
167167
call nf_verify(nf90_put_att(this%ncid, NF90_GLOBAL, 'history', &

src/Utilities/Idm/netcdf/NCContextBuild.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ subroutine add_package_var(modeltype, modelname, nc_vars, input_name, varid, &
116116
end if
117117
end subroutine add_package_var
118118

119-
!> @brief verify global attribute modflow6_grid is present and return value
119+
!> @brief verify global attribute modflow_grid is present and return value
120120
!<
121121
function verify_global_attr(modeltype, modelname, input_name, nc_fname, ncid) &
122122
result(grid)
@@ -132,7 +132,7 @@ function verify_global_attr(modeltype, modelname, input_name, nc_fname, ncid) &
132132
grid = ''
133133

134134
! verify expected mf6_modeltype file attribute
135-
if (nf90_get_att(ncid, NF90_GLOBAL, "modflow6_grid", &
135+
if (nf90_get_att(ncid, NF90_GLOBAL, "modflow_grid", &
136136
grid) == NF90_NOERR) then
137137
! set grid to upper case
138138
call upcase(grid)

0 commit comments

Comments
 (0)