Skip to content

Commit e9e1865

Browse files
committed
Merge branch 'version_output' into develop (PR #1273)
This merge adds a new 'version' global attribute to all netCDF stream output files. The value of the attribute is taken from the domain%core%modelVersion variable, which ultimately comes from the version attribute in a core's Registry.xml file. Example attributes in an output file, including the new 'version' attribute, are shown below. // global attributes: :model_name = "mpas" ; :core_name = "atmosphere" ; :version = "8.2.2" ; :source = "MPAS" ; * version_output: Add a new 'version' global attribute to all netCDF stream output files
2 parents 37aa961 + f96efac commit e9e1865

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/driver/mpas_subdriver.F

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ subroutine add_stream_attributes(domain)
512512
513513
call MPAS_stream_mgr_add_att(domain % streamManager, 'model_name', domain % core % modelName)
514514
call MPAS_stream_mgr_add_att(domain % streamManager, 'core_name', domain % core % coreName)
515+
call MPAS_stream_mgr_add_att(domain % streamManager, 'version', domain % core % modelVersion)
515516
call MPAS_stream_mgr_add_att(domain % streamManager, 'source', domain % core % source)
516517
call MPAS_stream_mgr_add_att(domain % streamManager, 'Conventions', domain % core % Conventions)
517518
call MPAS_stream_mgr_add_att(domain % streamManager, 'git_version', domain % core % git_version)

0 commit comments

Comments
 (0)