Skip to content

Commit ebcfac5

Browse files
committed
io.py: we remove unnecessary groups to reduce final output file size
1 parent ce91df2 commit ebcfac5

File tree

1 file changed

+21
-21
lines changed
  • RKLM_Python/management

1 file changed

+21
-21
lines changed

RKLM_Python/management/io.py

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ def __init__(self,ud,restart=False):
3737
self.SUFFIX = self.ud.output_suffix
3838
if restart: self.OLD_SUFFIX = self.ud.old_suffix
3939

40-
self.PATHS = [ 'buoy',
40+
self.PATHS = [ #'buoy',
4141
# 'dp2_c',
4242
# 'dp2_nodes',
4343
# 'dpdim',
44-
'drhoY',
45-
'dT',
46-
'dY',
44+
# 'drhoY',
45+
# 'dT',
46+
# 'dY',
4747
# 'p',
4848
# 'p2_c',
4949
'p2_nodes',
@@ -54,10 +54,10 @@ def __init__(self,ud,restart=False):
5454
# 'u',
5555
# 'v',
5656
# 'w',
57-
'vortz',
57+
# 'vortz',
5858
# 'vorty',
59-
'Y',
60-
'rhs'
59+
# 'Y',
60+
# 'rhs'
6161
]
6262

6363
self.io_create_file(self.PATHS,restart)
@@ -135,20 +135,20 @@ def write_all(self,Sol,mpv,elem,node,th,name):
135135
self.populate(name,'rhow',Sol.rhow)
136136
self.populate(name,'rhoX',Sol.rhoX)
137137

138-
if hasattr(Sol,'rhov_half'):
139-
self.populate(name,'rhov_half',Sol.rhov_half)
140-
if hasattr(Sol,'rhou_half'):
141-
self.populate(name,'rhou_half',Sol.rhou_half)
142-
if hasattr(Sol,'rhow_half'):
143-
self.populate(name,'rhow_half',Sol.rhow_half)
144-
if hasattr(Sol,'rhoX_half'):
145-
self.populate(name,'rhoX_half',Sol.rhoX_half)
146-
if hasattr(Sol,'rhoY_half'):
147-
self.populate(name,'rhoY_half',Sol.rhoY_half)
148-
if hasattr(Sol,'rho_half'):
149-
self.populate(name,'rho_half',Sol.rho_half)
150-
if hasattr(mpv,'p2_nodes_half'):
151-
self.populate(name,'p2_nodes_half',mpv.p2_nodes_half)
138+
# if hasattr(Sol,'rhov_half'):
139+
# self.populate(name,'rhov_half',Sol.rhov_half)
140+
# if hasattr(Sol,'rhou_half'):
141+
# self.populate(name,'rhou_half',Sol.rhou_half)
142+
# if hasattr(Sol,'rhow_half'):
143+
# self.populate(name,'rhow_half',Sol.rhow_half)
144+
# if hasattr(Sol,'rhoX_half'):
145+
# self.populate(name,'rhoX_half',Sol.rhoX_half)
146+
# if hasattr(Sol,'rhoY_half'):
147+
# self.populate(name,'rhoY_half',Sol.rhoY_half)
148+
# if hasattr(Sol,'rho_half'):
149+
# self.populate(name,'rho_half',Sol.rho_half)
150+
# if hasattr(mpv,'p2_nodes_half'):
151+
# self.populate(name,'p2_nodes_half',mpv.p2_nodes_half)
152152
# self.populate(name,'buoy',Sol.rhoX / Sol.rho)
153153

154154

0 commit comments

Comments
 (0)