Skip to content

Cleanup3#21

Closed
philipnickel wants to merge 18 commits intomasterfrom
cleanup3
Closed

Cleanup3#21
philipnickel wants to merge 18 commits intomasterfrom
cleanup3

Conversation

@philipnickel
Copy link
Copy Markdown
Contributor

No description provided.

Philip Korsager Nickel and others added 18 commits November 27, 2025 07:19
- Move communicators.py and decomposition.py to mpi/
- Move runner.py and runner_helper.py to helpers/
- Rename jacobi.py to solver.py
- Update all internal imports

Structure:
  Poisson/
  ├── solver.py, kernels.py, problems.py, datastructures.py
  ├── mpi/communicators.py, decomposition.py
  └── helpers/runner.py, runner_helper.py

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Remove n_ranks=1 from MPI tests (sequential covered by test_solver)
- Combine test_no_errors + test_converged into test_runs_and_converges
- Remove duplicate convergence test from test_kernels (kept in MPI tests)
- Reduce convergence grid sizes [15,25,45] → [15,25]
- Reduce max_iter 50000 → 20000 for convergence tests

Result: 68 → 61 tests, 17.9s → 13.6s (24% faster)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Tests like "shape is (N,N,N)" and "dtype is float64" are implicitly
verified by solver convergence tests. If these were wrong, convergence
would fail.

Also fix test_kernels.py helper function removed by linter.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Mocked MPI tests don't verify real behavior - if communicators break,
integration tests will catch it. Keep test_decomposition.py (pure logic).

68 → 40 tests, 17.9s → 13.0s

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- test_solver.py: 123 → 54 lines (use fixtures, merge similar tests)
- test_mpi_integration.py: 152 → 58 lines (single fixture, flat structure)
- Remove redundant test classes and duplicate assertions

68 → 28 tests, 17.9s → 10.7s (59% fewer, 40% faster)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@philipnickel philipnickel deleted the cleanup3 branch November 28, 2025 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant