Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests for new native based lettuce version (lettucecfd#213)
* wip - moved all eq bc tests into one file * skip 1D stencil for TGV instead of returning success * moved native tests into subdirectory * added test_bounceback_bc.py * skipping all native tests already in tests/native/__init__.py * cosmetic PEP8 * fixed test_equilibrium_bc_pu.py * added test_bounce_back_boundary_not_applied_if_mask_empty * pep8 * EquilibriumOutletP and AntiBounceBackOutlet only need the flow to get context from it * removed redundant print * added test_anti_bounce_back_outlet and refactored AntiBounceBackOutlet * added test_anti_bounce_back_outlet and refactored AntiBounceBackOutlet * added test_bc_masks.py * added test_equilibrium_pressure_outlet.py * migrated test_cli.py * added test_collision_conserves_mass * migrated test_collision_conserves_momentum added optional f to flow.j() added conserving_collisions fixture * migrated test_collision_fixpoint_2x * migrated test_collision_relaxes_shear_moments * added optional f to pseudo_entropy_local * fixed minor issue with kbc collision * not using native in collision tests * removed native from bc tests which do not use Simulation * migrated test_collision_optimizes_pseudo_entropy * migrated test_collision_fixpoint_2x_MRT * removed bgk collision test as it only compared across devices, which fix_devices and fix_configuration now do * migrated test_equilibrium.py * migrated test_flow.py * migrated test_flow.py * migrated test_divergence * added test_convergence.py for pytests * PEP8 issues * PEP8 issues * skip cuda device if it is not available * skip cuda device if it is not available * skip cuda device if it is not available * reverted manipulation of device_params and instead always import fix_configuration - but skipping if use_native is True * allowing module level for pytest skip in fix_configuration * migrated test_obstacle * this should remove the PytestCollectionWarning * pep8 cosmetics * minor changes to fix forces * wip - trying to fix test_force * fixed convergence by adapting unitconverter of TGV (l_char_pu to 2*pi) * minor change to couette flow * wip - trying to fix solution of poiseuille flow for test_force * fixed poiseuille flow for test_force (reduce char_len_lu by one and use uneven grid number - this was previously done by raising grid points by one, which is not useful here, b/c grid and resolution must match) * removed deprecated test_force.py and test_lattices.py * migrated test_native_no_streaming_mask * migrated test_native_no_collision_mask * removed test_native_no_collision_mask b/c it works completely differently in new native version * made Observable an ABC class * migrated test_energy_spectrum * removed test_readme.py - we will not * migrated test_write_image * migrated test_generic_reporters * migrated test_write_vtk * migrated test_vtk_reporter_no_mask * migrated test_vtk_reporter_mask * migrated test_HDF5Reporter * removed test_save_and_load as save_checkpoint is deprecated instead, have a look at lettucecfd#119/PR lettucecfd#224 * migrated test_initialization * added optional f for flow.u() * workaround for Transform requiring deprecated lattice methods * workaround for Transform requiring deprecated lattice methods * added test_initialize_fneq * wip - copied old simulation.initialize() to try and reproduce test_initialization * pep8 cosmetics * pep8 cosmetics * migrated test_opposite * migrated test_symmetry * migrated text_weights * migrated test_first_zero * migrated test_unit.py * migrated test_torch_gradient_2d * migrated test_torch_gradient_3d * migrated test_grid_fine_to_coarse_2d * migrated test_grid_fine_to_coarse_3d and combined with 2d * combined with test_torch_gradient 2d and 3d * migrated test_pressure_poisson * removed deprecated test_streaming.py * removed deprecated bgk_initialization.py * tidied up fix_collision to automatically get all Collision subclasses * abbreviated "if is None else" * moved pressure_poisson and initialize_fneq to _flow.py * undid or-abbreviation * initializing TGV, Decaying and DoublyShear with fneq for Decaying first approximating pressure with Poisson for Decaying set optional randseed * removed deprecated conftest.py * test fneq also for decaying in 3d (not using pressure) and fixed cuda-issue for stencil.d and .cs * migrated test_moments_density stuff * migrated test_conserved_moments_d2q9 * moved mv and equilibrium to Transform and calling Transform.equilibrium with flow to get its equilibrium * migrated test_inverse_transform * added fix_transform fixture * migrated test_getitem * migrated test_moment_equilibrium_dellar * migrated test_moment_equilibrium_lallemand * migrated test_moment_equilibrium_D3Q27Hermite * migrated test_orthogonality * trying to skip cuda if not available * skipping cuda if not available on fix_device and fix_native level instead of returning different lists in device_params * skipping cuda if not available on fix_device and fix_native level instead of returning different lists in device_params * skipping cuda if not available on fix_device and fix_native level instead of returning different lists in device_params * removed conftest.py (lettucecfd#231) * Update CI.yml (lettucecfd#228) runs-on: self-hosted (workstation-mcbs) * Update CI.yml (lettucecfd#229) * Update CI.yml * Update CI.yml * Update CI.yml * removed conftest.py * renamed common.py to conftest.py for pytest to recognize it * not importing Flow to moments.py * not importing Flow to inc_quad_eq only import TorchStencil to _flow * removed default Transform imports to avoid cyclic import * pep8 cosmetics --------- Co-authored-by: Mario Bedrunka <[email protected]> * added a test for dump and load (lettucecfd#224) * added test_checkpoint and adapted poiseuille.py flow to new architecture * pep8 cosmetics * removed test_convergence.py * updated convergence() to test for convergence within range * updated convergence() to test for convergence within range * renamed common.py to conftest.py * pep8 * fixed fix_transform and test_checkpoint.py import * pep8 --------- Co-authored-by: Mario Bedrunka <[email protected]>
- Loading branch information