mark DADF5 file layout as stable

This commit is contained in:
Martin Diehl 2023-02-04 09:41:18 +01:00
parent d2ac306d2b
commit a45a86cfbf
2 changed files with 3 additions and 3 deletions

View File

@ -106,7 +106,7 @@ class Result:
self.version_major = f.attrs['DADF5_version_major']
self.version_minor = f.attrs['DADF5_version_minor']
if self.version_major != 0 or not 12 <= self.version_minor <= 14:
if (self.version_major != 0 or not 12 <= self.version_minor <= 14) and self.version_major != 1:
raise TypeError(f'unsupported DADF5 version "{self.version_major}.{self.version_minor}"')
if self.version_major == 0 and self.version_minor < 14:
self.export_simulation_setup = None # type: ignore

View File

@ -83,8 +83,8 @@ subroutine result_init(restart)
if (.not. restart) then
resultFile = HDF5_openFile(getSolverJobName()//'.hdf5','w')
call result_addAttribute('DADF5_version_major',0)
call result_addAttribute('DADF5_version_minor',14)
call result_addAttribute('DADF5_version_major',1)
call result_addAttribute('DADF5_version_minor',0)
call get_command_argument(0,commandLine)
call result_addAttribute('creator',trim(commandLine)//' '//DAMASKVERSION)
call result_addAttribute('created',now())