Skip to content
Snippets Groups Projects

Fix Dirichlet boundary condition for scalar case

Merged Stephan Seitz requested to merge seitz/pystencils:fix-dirichlet into master
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • 90
    91
    92 @pytest.mark.parametrize('with_indices', ('with_indices', False))
    93 def test_dirichlet(with_indices):
    94 dh = SerialDataHandling(domain_size=(7, 7))
    95 src = dh.add_array('src', values_per_cell=3 if with_indices else 1)
    96 boundary_stencil = [(1, 0), (-1, 0), (0, 1), (0, -1)]
    97 boundary_handling = BoundaryHandling(dh, src.name, boundary_stencil)
    98 dirichlet = Dirichlet((1, 20, 3) if with_indices else 1)
    99 assert dirichlet.name == 'Dirichlet'
    100 dirichlet.name = "wall"
    101 assert dirichlet.name == 'wall'
    102
    103 for d in ('N', 'S', 'W', 'E'):
    104 boundary_handling.set_boundary(dirichlet, slice_from_direction(d, dim=2))
    105 boundary_handling()
  • Stephan Seitz added 1 commit

    added 1 commit

    • df4da009 - Fix Dirichlet boundary condition for scalar case

    Compare with previous version

  • Stephan Seitz resolved all threads

    resolved all threads

  • Stephan Seitz added 1 commit

    added 1 commit

    • e4874494 - Fix Dirichlet boundary condition for scalar case

    Compare with previous version

  • merged

  • Markus Holzer mentioned in commit 28c5a8ee

    mentioned in commit 28c5a8ee

  • Please register or sign in to reply
    Loading