32
32
'nstep' ,
33
33
'nforce' ,
34
34
'nparas' ,
35
+ 'dt' ,
35
36
]
36
37
37
38
@@ -71,7 +72,7 @@ def DCheck_valid_step(dir_array, str_processor, step0, step1, dstep):
71
72
return valid_step_array
72
73
73
74
def DMerge_and_Compress_SGT (dir_array , str_processor , NSPEC , names_GLL_arr , index_GLL_arr ,
74
- step0 , step1 , dstep , save_dir , n_dim = 3 , n_paras = 6 , encoding_level = 8 ):
75
+ step0 , step1 , dstep , save_dir , dt , n_dim = 3 , n_paras = 6 , encoding_level = 8 ):
75
76
'''
76
77
* Merge the SGT in global with encoding, and compression,
77
78
* according to the selected GLL points indicated by the 'names_GLL_arr' and 'index_GLL_arr'
@@ -96,6 +97,7 @@ def DMerge_and_Compress_SGT(dir_array, str_processor, NSPEC, names_GLL_arr, inde
96
97
:param step1: The ending step, not in second. (int), eg: 6000
97
98
:param dstep: The interval of the time step, not in second. (int), eg: 10
98
99
:param save_dir: The output directory for saving the bin and info file.
100
+ :param save_dir: The time interval of the SGT data.
99
101
:param n_dim: The number of Unit forces, which is restricted to 3.
100
102
:param n_paras: The number of the components in each SGT, which is restricted to 6.
101
103
:param encoding_level: The encoding level. To convert the float to INT.
@@ -221,6 +223,8 @@ def DMerge_and_Compress_SGT(dir_array, str_processor, NSPEC, names_GLL_arr, inde
221
223
f .attrs [SGT_ATTRS [1 ]] = n_step
222
224
f .attrs [SGT_ATTRS [2 ]] = n_dim
223
225
f .attrs [SGT_ATTRS [3 ]] = n_paras
226
+ f .attrs [SGT_ATTRS [4 ]] = dt
227
+ f .attrs ['version' ]= 'v1.0'
224
228
225
229
return True
226
230
0 commit comments