13 Commits

Author SHA1 Message Date
Jukka Aho 30a975ec9d test(mesh): cover Gmsh stub errors without the Gmsh extension
Add a focused test file asserting read_gmsh_msh raises ErrorException and
mesh_from_current_gmsh_model stays undefined until JuliaFEMGmshExt loads.

- Add test_gmsh_stub.jl with two throws checks for the weakdep path
- Include the new file from test/mesh/runtests.jl next to existing mesh tests
2026-05-11 03:02:14 +03:00
Jukka Aho 9dfc27bc68 test(mesh): slim Hex8 refinement smoke + brick volume helper check
Drive refinement through `create_structured_box_mesh` so tests stay aligned with
the dimensioned `Mesh{8,Hex8}` constructors, and keep a cheap analytic volume
sanity check for `compute_element_volume`.

- SPDX header; replace bespoke manual meshes with structured coupons + bisection counts.
2026-05-09 18:46:26 +03:00
Jukka Aho 9b275e9ca2 test(mesh): add Mesh API regression 2026-05-09 18:39:25 +03:00
Jukka Aho ace8bfe1bd test(mesh): add mesh topic runner 2026-05-09 18:39:25 +03:00
Jukka Aho c3480c59ff chore(test): delete structured mesh regression file
Remove redundant structured mesh tests superseded by domain solves.

- Drop `test/mesh/test_structured.jl`.
2026-05-09 18:28:27 +03:00
Jukka Aho ee3ade7096 chore(test): remove parametric mesh regression
Delete outdated parametric mesh coverage.

- Drop `test/mesh/test_parametric.jl`.
2026-05-09 18:28:27 +03:00
Jukka Aho 8f52df8d9b chore(test): delete mesh parallel feature stubs
Remove unmaintained parallel mesh experiments.

- Drop `test/mesh/test_parallel_features.jl`.
2026-05-09 18:28:27 +03:00
Jukka Aho 93973c563c chore(test): drop mesh coloring regression
Remove tests for deleted graph coloring helpers.

- Delete `test/mesh/test_coloring.jl`.
2026-05-09 18:28:26 +03:00
Jukka Aho 4886cef85a test(mesh): add mesh coloring test
New 20-line test file for mesh coloring:
- Tests that create_coloring produces valid graph coloring
- Validates that elements in same color don't share nodes
- Uses Abaqus mesh file (cube_tet4.inp) for testing

Essential for parallel element assembly where elements sharing
nodes must be processed in different colors to avoid race conditions.
2025-12-15 10:25:57 +02:00
Jukka Aho fde2c6a4a8 test(mesh): add parallel features test
New 297-line test file for mesh parallel features:
- Tests node and element naming (industrial ID ranges, symbolic names)
- Tests node coloring for load balancing (MPI ranks)
- Tests element coloring for graph coloring (threading)
- Tests ghost nodes and elements (MPI domain decomposition)
- Tests node and element permutation (bandwidth minimization, cache optimization)
- Tests combined features in industrial workflow
- Validates forward/inverse permutation consistency

Comprehensive test suite for parallel computing features including
MPI domain decomposition and threading support.
2025-12-15 09:04:22 +02:00
Jukka Aho 0e5641a081 test(mesh): add structured mesh generation test
New 292-line test file for structured mesh generation:
- Tests unit cube mesh creation (single and multiple elements)
- Tests structured box mesh with custom dimensions
- Tests uniform spacing verification
- Tests cantilever and thin plate mesh generation
- Tests anisotropic mesh (fine in one direction, coarse in others)
- Tests connectivity validation
- Tests integration with refinement
- Tests convergence study pattern

Comprehensive test suite for structured mesh generation utilities.
2025-12-15 08:50:32 +02:00
Jukka Aho c544c25830 test(mesh): add mesh refinement test
New 166-line test file for mesh refinement operations:
- Tests single Hex8 refinement at 1, 2, and 3 levels
- Tests rectangular Hex8 refinement (longest edge bisection)
- Tests multiple element refinement
- Tests element set preservation during refinement
- Validates element and node count after refinement
- Validates refinement along longest dimension

Tests LongestEdgeBisection strategy for adaptive mesh refinement.
2025-12-15 08:46:00 +02:00
Jukka Aho 1881787f49 test(mesh): add parametric mesh test
New 501-line test file for Mesh{T} parametric implementation:
- Tests basic construction (single and multiple elements)
- Tests construction with element sets and node sets
- Tests validation (connectivity size mismatch, node index out of range)
- Tests connectivity matrix generation
- Tests element and node set operations
- Tests surface topology extraction
- Tests mesh refinement operations
- Tests different topology types (Tet4, Hex8, Seg2, Tri6)
- Tests I/O operations (show, info)

Comprehensive test suite for type-stable parametric mesh data structure.
2025-12-15 08:44:11 +02:00