Skip to content

Commit f96efac

Browse files
committed
Add 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.
1 parent 37aa961 commit f96efac

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)