Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
On Thursday, 7th July from 1 to 3 pm there will be a maintenance with a short downtime of GitLab.
Open sidebar
TurTLE
TurTLE
Commits
5456d7b9
Commit
5456d7b9
authored
Jan 29, 2016
by
Cristian Lalescu
Browse files
add name information to data file
parent
986af309
Changes
1
Hide whitespace changes
Inline
Side-by-side
bfps/_fluid_base.py
View file @
5456d7b9
...
@@ -388,6 +388,7 @@ class _fluid_particle_base(_code):
...
@@ -388,6 +388,7 @@ class _fluid_particle_base(_code):
assert
(
self
.
parameters
[
'niter_out'
]
%
self
.
parameters
[
'niter_part'
]
==
0
)
assert
(
self
.
parameters
[
'niter_out'
]
%
self
.
parameters
[
'niter_part'
]
==
0
)
_code
.
write_par
(
self
,
iter0
=
iter0
)
_code
.
write_par
(
self
,
iter0
=
iter0
)
with
h5py
.
File
(
os
.
path
.
join
(
self
.
work_dir
,
self
.
simname
+
'.h5'
),
'r+'
)
as
ofile
:
with
h5py
.
File
(
os
.
path
.
join
(
self
.
work_dir
,
self
.
simname
+
'.h5'
),
'r+'
)
as
ofile
:
ofile
[
'bfps_info/exec_name'
]
=
self
.
name
ofile
[
'field_dtype'
]
=
np
.
dtype
(
self
.
dtype
).
str
ofile
[
'field_dtype'
]
=
np
.
dtype
(
self
.
dtype
).
str
kspace
=
self
.
get_kspace
()
kspace
=
self
.
get_kspace
()
for
k
in
kspace
.
keys
():
for
k
in
kspace
.
keys
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment