Skip to content
Snippets Groups Projects
Commit 4322165a authored by Michael Kuron's avatar Michael Kuron :mortar_board:
Browse files

fix occasional NaNs in Oldroyd-B test

parent f7d2c0fd
No related branches found
No related tags found
1 merge request!103Oldroyd-B
Pipeline #37577 failed
......@@ -132,6 +132,7 @@ def test_oldroydb():
assert len(bh._boundary_object_to_boundary_info) == 1, "Restart kernel to clear boundaries"
def init():
dh.fill(ρ.name, np.nan, ghost_layers=True, inner_ghost_layers=True)
dh.fill(ρ.name, 1)
dh.fill(u.name, np.nan, ghost_layers=True, inner_ghost_layers=True)
dh.fill(u.name, 0)
......@@ -139,9 +140,12 @@ def test_oldroydb():
dh.fill(tau.name, 0)
dh.fill(tauflux.name, np.nan, ghost_layers=True, inner_ghost_layers=True)
dh.fill(tauface.name, np.nan, ghost_layers=True, inner_ghost_layers=True)
dh.fill(F.name, np.nan, ghost_layers=True, inner_ghost_layers=True)
dh.fill(F.name, 0) # needed for LB initialization
sync_tau() # force calculation inside the initialization needs neighbor taus
dh.run_kernel(init_kernel)
dh.fill(F.name, np.nan)
# In[7]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment