import logging import pytest from cymsim.config import SimulationConfig, default_config logging.getLogger("cymsim").setLevel(logging.WARNING) @pytest.fixture(scope="session") def coarse_config() -> SimulationConfig: """A 20 mm mesh with few dents: fast enough for CPU tests, still the full model.""" cfg = default_config("mallet") cfg.mesh.element_size = 0.02 cfg.imperfections.n_dents = 50 cfg.numerics.duration = 0.02 cfg.numerics.steps_per_block = 500 cfg.numerics.n_progress = 2 return cfg