Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fluiddyn
fluidsim
Commits
f55aaf37570d
Commit
cbd65b3b
authored
Apr 13, 2021
by
Pierre Augier
Browse files
Less np.int, np.bool & np.float
parent
6bd6d989a37a
Changes
4
Show whitespace changes
Inline
Side-by-side
fluidsim/operators/operators1d.py
View file @
f55aaf37
...
...
@@ -50,7 +50,7 @@ class OperatorsPseudoSpectral1D(OperatorsBase1D):
assert
kx_max
==
self
.
kx
.
max
()
CONDKX
=
abs
(
self
.
kx
)
>
self
.
coef_dealiasing
*
kx_max
self
.
where_dealiased
=
np
.
array
(
CONDKX
,
dtype
=
np
.
bool
)
self
.
where_dealiased
=
np
.
array
(
CONDKX
,
dtype
=
bool
)
# for spectra
self
.
nkxE
=
self
.
nx
//
2
+
1
...
...
fluidsim/solvers/models0d/lorenz/output/print_stdout.py
View file @
f55aaf37
...
...
@@ -68,7 +68,7 @@ class PrintStdOutLorenz(PrintStdOutBase):
if
nt
>
1
:
nt
-=
1
it
=
np
.
zeros
(
nt
,
dtype
=
np
.
int
)
it
=
np
.
zeros
(
nt
,
dtype
=
int
)
t
=
np
.
zeros
(
nt
)
deltat
=
np
.
zeros
(
nt
)
...
...
fluidsim/solvers/models0d/predaprey/output/print_stdout.py
View file @
f55aaf37
...
...
@@ -79,7 +79,7 @@ class PrintStdOutPredaPrey(PrintStdOutBase):
if
nt
>
1
:
nt
-=
1
it
=
np
.
zeros
(
nt
,
dtype
=
np
.
int
)
it
=
np
.
zeros
(
nt
,
dtype
=
int
)
t
=
np
.
zeros
(
nt
)
deltat
=
np
.
zeros
(
nt
)
...
...
fluidsim/solvers/sw1l/output/print_stdout.py
View file @
f55aaf37
...
...
@@ -51,7 +51,7 @@ class PrintStdOutSW1L(PrintStdOutBase):
if
nt
>
1
:
nt
-=
1
it
=
np
.
zeros
(
nt
,
dtype
=
np
.
int
)
it
=
np
.
zeros
(
nt
,
dtype
=
int
)
t
=
np
.
zeros
(
nt
)
deltat
=
np
.
zeros
(
nt
)
...
...
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