Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PySDM/backends/impl_thrust_rtc/test_helpers/cpp2python.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def make(self):
power, sqrt,
arctanh as atanh,
arcsinh as asinh,
sinh,
sinh, tanh,
maximum, minimum,
where, # TODO #1295
)
Expand Down
2 changes: 1 addition & 1 deletion PySDM/formulae.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__( # pylint: disable=too-many-locals
seed: int = None,
fastmath: bool = True,
diffusion_coordinate: str = "WaterMassLogarithm",
saturation_vapour_pressure: str = "FlatauWalkoCotton",
saturation_vapour_pressure: str = "MurphyKoop2005",
latent_heat_vapourisation: str = "Kirchhoff",
latent_heat_sublimation: str = "MurphyKoop2005",
hygroscopicity: str = "KappaKoehlerLeadingTerms",
Expand Down
5 changes: 3 additions & 2 deletions tests/unit_tests/dynamics/condensation/test_diagnostics.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import numpy as np

from PySDM import Builder
from PySDM import Builder, Formulae
from PySDM.backends import CPU
from PySDM.dynamics.condensation import Condensation
from PySDM.impl.mesh import Mesh
Expand Down Expand Up @@ -79,7 +79,8 @@ def __init__( # pylint: disable=too-many-locals
rho=rho,
eta=eta,
)
builder = Builder(n_sd=n_sd, backend=backend(), environment=env)
formulae = Formulae(saturation_vapour_pressure="FlatauWalkoCotton")
builder = Builder(n_sd=n_sd, backend=backend(formulae), environment=env)

builder.add_dynamic(Condensation(max_iters=max_iters))
self.particulator = builder.build(
Expand Down
4 changes: 2 additions & 2 deletions tests/unit_tests/dynamics/test_vapour_deposition_on_ice.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,9 +234,9 @@ def test_growth_rates_against_spichtinger_and_gierens_2009_fig_5(
assert (np.diff(mass_rate) > 0).all()

assert 1.8e-15 * si.kg / si.s < dm_dt[230 * si.K][0] < 4.0e-15 * si.kg / si.s
assert 7.0e-17 * si.kg / si.s < dm_dt[200 * si.K][0] < 1.0e-16 * si.kg / si.s
assert 6.0e-17 * si.kg / si.s < dm_dt[200 * si.K][0] < 1.0e-16 * si.kg / si.s
assert 1.3e-12 * si.kg / si.s < dm_dt[230 * si.K][-1] < 1.5e-12 * si.kg / si.s
assert 6.0e-14 * si.kg / si.s < dm_dt[200 * si.K][-1] < 1.2e-13 * si.kg / si.s
assert 5.0e-14 * si.kg / si.s < dm_dt[200 * si.K][-1] < 1.2e-13 * si.kg / si.s

@staticmethod
@pytest.mark.parametrize("diffusion_coordinate", DIFFUSION_COORDINATES)
Expand Down
Loading