From e30ebac5d84071004ca9fae7b5daa28d65e34e70 Mon Sep 17 00:00:00 2001 From: David Martin Date: Mon, 23 Nov 2026 10:31:54 +0100 Subject: [PATCH 01/13] add md-flex comparison test --- .github/workflows/TestSuites.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/TestSuites.yaml b/.github/workflows/TestSuites.yaml index 7feafcc..c163219 100644 --- a/.github/workflows/TestSuites.yaml +++ b/.github/workflows/TestSuites.yaml @@ -125,6 +125,31 @@ jobs: - name: Build run: cmake --build AutoPasDM/build-ci --parallel 2 + - name: Build original md-flexible reference + if: matrix.config.name == 'GCC-Release-OMP-SingleSite' + run: | + CC=gcc CXX=g++ cmake -S AutoPas -B AutoPas/build-reference -G Ninja \ + -DCMAKE_BUILD_TYPE=Release \ + -DAUTOPAS_BUILD_EXAMPLES=ON \ + -DAUTOPAS_BUILD_TESTS=OFF \ + -DAUTOPAS_BUILD_MD_LIBRARY=ON \ + -DAUTOPAS_BUILD_SPH_LIBRARY=ON \ + -DAUTOPAS_OPENMP=ON \ + -DAUTOPAS_ENABLE_ENERGY_MEASUREMENTS=OFF \ + -DAUTOPAS_INTERNODE_TUNING=ON \ + -DMD_FLEXIBLE_MODE=SINGLESITE \ + -DMD_FLEXIBLE_USE_MPI=ON + cmake --build AutoPas/build-reference --target md-flexible --parallel 2 + + - name: Compare AutoPas and AutoPasDM simulations + if: matrix.config.name == 'GCC-Release-OMP-SingleSite' + run: | + python3 AutoPasDM/examples/md-flexible/scripts/run_load_balancing_regression.py \ + --reference AutoPas/build-reference/examples/md-flexible/md-flexible \ + --distributed AutoPasDM/build-ci/examples/md-flexible/md-flexible \ + --config AutoPasDM/examples/md-flexible/input/autopasdm_load_balancing_compare.yaml \ + --ranks 8 + - name: Run full CTest suite if: matrix.config.test_scope == 'full' run: | From a8c483620f34408b3d1fa977f6baf134d9b07549 Mon Sep 17 00:00:00 2001 From: David Martin Date: Mon, 23 Nov 2026 10:56:21 +0100 Subject: [PATCH 02/13] build autovec functor --- .github/workflows/TestSuites.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/TestSuites.yaml b/.github/workflows/TestSuites.yaml index c163219..16f4b08 100644 --- a/.github/workflows/TestSuites.yaml +++ b/.github/workflows/TestSuites.yaml @@ -137,6 +137,7 @@ jobs: -DAUTOPAS_OPENMP=ON \ -DAUTOPAS_ENABLE_ENERGY_MEASUREMENTS=OFF \ -DAUTOPAS_INTERNODE_TUNING=ON \ + -DMD_FLEXIBLE_FUNCTOR_AUTOVEC=ON \ -DMD_FLEXIBLE_MODE=SINGLESITE \ -DMD_FLEXIBLE_USE_MPI=ON cmake --build AutoPas/build-reference --target md-flexible --parallel 2 From f25b44b062962f83fee39a3b4501d477b983afba Mon Sep 17 00:00:00 2001 From: David Martin Date: Mon, 23 Nov 2026 13:56:36 +0100 Subject: [PATCH 03/13] add more comparison tests --- .github/workflows/TestSuites.yaml | 18 + .../input/autopasdm_dynamic_compare.yaml | 78 ++++ .../scripts/run_md_flexible_comparison.py | 345 ++++++++++++++++++ 3 files changed, 441 insertions(+) create mode 100644 examples/md-flexible/input/autopasdm_dynamic_compare.yaml create mode 100644 examples/md-flexible/scripts/run_md_flexible_comparison.py diff --git a/.github/workflows/TestSuites.yaml b/.github/workflows/TestSuites.yaml index 16f4b08..d7aab20 100644 --- a/.github/workflows/TestSuites.yaml +++ b/.github/workflows/TestSuites.yaml @@ -151,6 +151,24 @@ jobs: --config AutoPasDM/examples/md-flexible/input/autopasdm_load_balancing_compare.yaml \ --ranks 8 + - name: Compare 3D forces between AutoPas and AutoPasDM + if: matrix.config.name == 'GCC-Release-OMP-SingleSite' + run: | + python3 AutoPasDM/examples/md-flexible/scripts/run_md_flexible_comparison.py \ + --reference AutoPas/build-reference/examples/md-flexible/md-flexible \ + --distributed AutoPasDM/build-ci/examples/md-flexible/md-flexible \ + --config AutoPasDM/examples/md-flexible/input/autopasdm_force_compare_3d.yaml \ + --ranks 8 + + - name: Compare dynamic simulations between AutoPas and AutoPasDM + if: matrix.config.name == 'GCC-Release-OMP-SingleSite' + run: | + python3 AutoPasDM/examples/md-flexible/scripts/run_md_flexible_comparison.py \ + --reference AutoPas/build-reference/examples/md-flexible/md-flexible \ + --distributed AutoPasDM/build-ci/examples/md-flexible/md-flexible \ + --config AutoPasDM/examples/md-flexible/input/autopasdm_dynamic_compare.yaml \ + --ranks 8 + - name: Run full CTest suite if: matrix.config.test_scope == 'full' run: | diff --git a/examples/md-flexible/input/autopasdm_dynamic_compare.yaml b/examples/md-flexible/input/autopasdm_dynamic_compare.yaml new file mode 100644 index 0000000..a9a3abe --- /dev/null +++ b/examples/md-flexible/input/autopasdm_dynamic_compare.yaml @@ -0,0 +1,78 @@ +# Short dynamic AutoPas-vs-AutoPasDM regression. +# +# Run both implementations with 8 MPI ranks on a 2 x 2 x 2 process grid. +# Three particles start just below an internal rank boundary and move across +# the x, y, and z boundaries. A separate pair exercises LJ force evaluation +# while the simulation advances with a non-zero time step. + +container: [DirectSum] +traversal: [ds_sequential] +data-layout: [AoS] +newton3: [enabled] +functor: lennard-jones + +cutoff: 1.5 +verlet-skin-radius: 0.0 +tuning-strategies: [] +tuning-phases: 0 + +box-min: [0.0, 0.0, 0.0] +box-max: [8.0, 8.0, 8.0] + +deltaT: 0.002 +iterations: 100 + +boundary-type: [periodic, periodic, periodic] +subdivide-dimension: [true, true, true] +load-balancer: None + +vtk-filename: autoPasDMDynamicCompare +vtk-write-frequency: 100 +no-progress-bar: true +no-end-config: true + +Sites: + 0: + epsilon: 1.0 + sigma: 1.0 + mass: 1.0 + +Objects: + CubeGrid: + # Crosses the internal x boundary at x = 4. + 0: + particles-per-dimension: [1, 1, 1] + particle-spacing: 0.2 + bottomLeftCorner: [3.95, 1.0, 1.0] + velocity: [0.5, 0.0, 0.0] + particle-type-id: 0 + + # Crosses the internal y boundary at y = 4. + 1: + particles-per-dimension: [1, 1, 1] + particle-spacing: 0.2 + bottomLeftCorner: [1.0, 3.95, 6.5] + velocity: [0.0, 0.5, 0.0] + particle-type-id: 0 + + # Crosses the internal z boundary at z = 4. + 2: + particles-per-dimension: [1, 1, 1] + particle-spacing: 0.2 + bottomLeftCorner: [6.5, 1.0, 3.95] + velocity: [0.0, 0.0, 0.5] + particle-type-id: 0 + + # Interacting LJ pair away from the internal boundaries. + 3: + particles-per-dimension: [1, 1, 1] + particle-spacing: 0.2 + bottomLeftCorner: [1.0, 6.0, 1.0] + velocity: [0.0, 0.0, 0.0] + particle-type-id: 0 + 4: + particles-per-dimension: [1, 1, 1] + particle-spacing: 0.2 + bottomLeftCorner: [2.2, 6.0, 1.0] + velocity: [0.0, 0.0, 0.0] + particle-type-id: 0 diff --git a/examples/md-flexible/scripts/run_md_flexible_comparison.py b/examples/md-flexible/scripts/run_md_flexible_comparison.py new file mode 100644 index 0000000..f1760f6 --- /dev/null +++ b/examples/md-flexible/scripts/run_md_flexible_comparison.py @@ -0,0 +1,345 @@ +#!/usr/bin/env python3 +"""Run the same md-flexible case with reference md-flexible and AutoPasDM. + +The comparison does not require identical particle owner ranks. Inverted Pressure +uses measured local computation times, so exact adaptive boundaries can differ +between implementations and runs. This regression checks that + +1. the final owned-particle state agrees by particle ID within tolerance, and +2. optionally, both runs actually move at least one subdomain boundary. + +Example: + python3 scripts/run_md_flexible_comparison.py \ + --reference /path/to/AutoPas/build/examples/md-flexible/md-flexible \ + --distributed ./md-flexible \ + --config input/autopasdm_load_balancing_compare.yaml \ + --ranks 8 --require-load-balancing + +For SLURM, e.g. use: + --launcher 'srun -n {ranks}' +""" + +from __future__ import annotations + +import argparse +import glob +import math +import os +from pathlib import Path +import re +import shlex +import shutil +import subprocess +import sys +import tempfile +import xml.etree.ElementTree as ET + + +PARTICLE_FILE_RE = re.compile(r"_Particles_(\d+)_(\d+)\.vtu$") +RANK_FILE_RE = re.compile(r"_Ranks_(\d+)_(\d+)\.vtu$") + + +def parse_args() -> argparse.Namespace: + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--reference", required=True, type=Path, help="Original md-flexible executable") + parser.add_argument("--distributed", required=True, type=Path, help="AutoPasDM md-flexible executable") + parser.add_argument("--config", required=True, type=Path, help="YAML input shared by both runs") + parser.add_argument("--ranks", type=int, default=8, help="MPI ranks (default: 8)") + parser.add_argument( + "--require-load-balancing", + action="store_true", + help="require the decomposition boundaries to move in both runs", + ) + parser.add_argument( + "--launcher", + default="mpirun -np {ranks}", + help="MPI launcher command. {ranks} is replaced with --ranks (default: 'mpirun -np {ranks}')", + ) + parser.add_argument("--absolute-tolerance", type=float, default=1e-3) + parser.add_argument("--relative-tolerance", type=float, default=1e-4) + parser.add_argument("--boundary-move-tolerance", type=float, default=1e-6) + parser.add_argument( + "--keep-output", + type=Path, + help="Keep both run directories below this directory instead of deleting temporary output", + ) + return parser.parse_args() + + +def absolute_existing_file(path: Path, description: str) -> Path: + path = path.expanduser().resolve() + if not path.is_file(): + raise RuntimeError(f"{description} does not exist: {path}") + return path + + +def launcher_command(template: str, ranks: int) -> list[str]: + if ranks <= 0: + raise RuntimeError("--ranks must be greater than zero") + return shlex.split(template.replace("{ranks}", str(ranks))) + + +def run_case(label: str, executable: Path, config: Path, run_directory: Path, launcher: list[str]) -> None: + run_directory.mkdir(parents=True, exist_ok=True) + command = [*launcher, str(executable), "--yaml-filename", str(config)] + log_file = run_directory / "run.log" + + print(f"Running {label}:") + print(" " + shlex.join(command)) + print(f" cwd: {run_directory}") + + with log_file.open("w", encoding="utf-8") as log: + result = subprocess.run(command, cwd=run_directory, stdout=log, stderr=subprocess.STDOUT, check=False) + + if result.returncode != 0: + tail = log_file.read_text(encoding="utf-8", errors="replace").splitlines()[-40:] + raise RuntimeError( + f"{label} failed with exit code {result.returncode}. Last log lines:\n" + "\n".join(tail) + ) + + +def data_array(piece: ET.Element, name: str) -> list[str]: + for element in piece.iter("DataArray"): + if element.attrib.get("Name") == name: + return (element.text or "").split() + raise RuntimeError(f'DataArray "{name}" not found') + + +def point_coordinates(piece: ET.Element) -> list[float]: + points = next(piece.iter("Points"), None) + if points is None: + raise RuntimeError("Points element not found") + array = next(points.iter("DataArray"), None) + if array is None: + raise RuntimeError("Points DataArray not found") + return [float(value) for value in (array.text or "").split()] + + +def matching_files(root: Path, pattern: re.Pattern[str]) -> list[tuple[int, int, Path]]: + matches: list[tuple[int, int, Path]] = [] + for filename in glob.glob(str(root / "**" / "*.vtu"), recursive=True): + match = pattern.search(filename) + if match: + rank = int(match.group(1)) + iteration = int(match.group(2)) + matches.append((iteration, rank, Path(filename))) + if not matches: + raise RuntimeError(f"No matching VTK files found below {root}") + return matches + + +def first_and_final_iterations(root: Path, pattern: re.Pattern[str]) -> tuple[int, int]: + iterations = [iteration for iteration, _, _ in matching_files(root, pattern)] + return min(iterations), max(iterations) + + +def files_at_iteration(root: Path, pattern: re.Pattern[str], iteration: int) -> list[tuple[int, Path]]: + return sorted( + (rank, filename) + for file_iteration, rank, filename in matching_files(root, pattern) + if file_iteration == iteration + ) + + +def read_particle_state(root: Path) -> tuple[int, dict[int, dict[str, object]]]: + _, final_iteration = first_and_final_iterations(root, PARTICLE_FILE_RE) + result: dict[int, dict[str, object]] = {} + + for rank, filename in files_at_iteration(root, PARTICLE_FILE_RE, final_iteration): + tree = ET.parse(filename) + piece = next(tree.getroot().iter("Piece")) + + ids = [int(value) for value in data_array(piece, "ids")] + type_ids = [int(value) for value in data_array(piece, "typeIds")] + forces = [float(value) for value in data_array(piece, "forces")] + velocities = [float(value) for value in data_array(piece, "velocities")] + positions = point_coordinates(piece) + + expected_vector_values = 3 * len(ids) + if len(type_ids) != len(ids): + raise RuntimeError(f"Type-ID/ID length mismatch in {filename}") + for values, name in ((forces, "force"), (velocities, "velocity"), (positions, "position")): + if len(values) != expected_vector_values: + raise RuntimeError(f"{name}/ID length mismatch in {filename}") + + for index, particle_id in enumerate(ids): + if particle_id in result: + raise RuntimeError(f"Particle ID {particle_id} occurs more than once in final owned output") + begin = 3 * index + result[particle_id] = { + "rank": rank, + "type": type_ids[index], + "position": tuple(positions[begin : begin + 3]), + "velocity": tuple(velocities[begin : begin + 3]), + "force": tuple(forces[begin : begin + 3]), + } + + return final_iteration, result + + +def read_boxes(root: Path, iteration: int) -> dict[int, tuple[tuple[float, ...], tuple[float, ...]]]: + boxes: dict[int, tuple[tuple[float, ...], tuple[float, ...]]] = {} + for rank, filename in files_at_iteration(root, RANK_FILE_RE, iteration): + tree = ET.parse(filename) + piece = next(tree.getroot().iter("Piece")) + coordinates = point_coordinates(piece) + if len(coordinates) != 24: + raise RuntimeError(f"Expected 8 three-dimensional rank-box points in {filename}") + points = [coordinates[index : index + 3] for index in range(0, len(coordinates), 3)] + box_min = tuple(min(point[d] for point in points) for d in range(3)) + box_max = tuple(max(point[d] for point in points) for d in range(3)) + boxes[rank] = (box_min, box_max) + return boxes + + +def maximum_boundary_movement(root: Path) -> tuple[int, int, float]: + initial_iteration, final_iteration = first_and_final_iterations(root, RANK_FILE_RE) + initial_boxes = read_boxes(root, initial_iteration) + final_boxes = read_boxes(root, final_iteration) + + if set(initial_boxes) != set(final_boxes): + raise RuntimeError("Rank IDs differ between initial and final domain output") + + movement = 0.0 + for rank in initial_boxes: + for initial, final in zip(initial_boxes[rank][0] + initial_boxes[rank][1], final_boxes[rank][0] + final_boxes[rank][1]): + movement = max(movement, abs(initial - final)) + return initial_iteration, final_iteration, movement + + +def close(a: float, b: float, absolute_tolerance: float, relative_tolerance: float) -> bool: + return math.isclose(a, b, abs_tol=absolute_tolerance, rel_tol=relative_tolerance) + + +def compare_states( + reference: dict[int, dict[str, object]], + distributed: dict[int, dict[str, object]], + absolute_tolerance: float, + relative_tolerance: float, +) -> tuple[bool, int, float]: + reference_ids = set(reference) + distributed_ids = set(distributed) + if reference_ids != distributed_ids: + print("FAIL: final owned particle IDs differ.") + print(" only in reference :", sorted(reference_ids - distributed_ids)) + print(" only in distributed:", sorted(distributed_ids - reference_ids)) + return False, 0, math.inf + + ownership_changes = 0 + maximum_difference = 0.0 + failures: list[str] = [] + + for particle_id in sorted(reference_ids): + expected = reference[particle_id] + actual = distributed[particle_id] + + if expected["rank"] != actual["rank"]: + ownership_changes += 1 + if expected["type"] != actual["type"]: + failures.append(f"id={particle_id}: type {expected['type']} != {actual['type']}") + + for field in ("position", "velocity", "force"): + expected_vector = expected[field] + actual_vector = actual[field] + for component, (a, b) in enumerate(zip(expected_vector, actual_vector)): + maximum_difference = max(maximum_difference, abs(a - b)) + if not close(a, b, absolute_tolerance, relative_tolerance): + failures.append( + f"id={particle_id}: {field}[{component}] reference={a:.12g} distributed={b:.12g}" + ) + + if failures: + print("FAIL: final particle states differ beyond tolerance.") + for failure in failures[:20]: + print(" " + failure) + if len(failures) > 20: + print(f" ... and {len(failures) - 20} more") + return False, ownership_changes, maximum_difference + + return True, ownership_changes, maximum_difference + + +def main() -> int: + args = parse_args() + + try: + reference = absolute_existing_file(args.reference, "Reference executable") + distributed = absolute_existing_file(args.distributed, "Distributed executable") + config = absolute_existing_file(args.config, "Configuration") + launcher = launcher_command(args.launcher, args.ranks) + + if args.keep_output: + work_root = args.keep_output.expanduser().resolve() + if work_root.exists(): + shutil.rmtree(work_root) + work_root.mkdir(parents=True) + cleanup = None + else: + cleanup = tempfile.TemporaryDirectory(prefix="autopasdm_md_flexible_comparison_") + work_root = Path(cleanup.name) + + reference_root = work_root / "reference" + distributed_root = work_root / "distributed" + + run_case("reference md-flexible", reference, config, reference_root, launcher) + run_case("AutoPasDM md-flexible", distributed, config, distributed_root, launcher) + + boundaries_ok = True + if args.require_load_balancing: + ref_initial, ref_final, ref_movement = maximum_boundary_movement(reference_root) + autopasdm_initial, autopasdm_final, autopasdm_movement = maximum_boundary_movement(distributed_root) + + print("\nAdaptive-domain check:") + print(f" reference iterations {ref_initial}->{ref_final}, max boundary movement {ref_movement:.12g}") + print(f" distributed iterations {autopasdm_initial}->{autopasdm_final}, max boundary movement {autopasdm_movement:.12g}") + + if ref_movement <= args.boundary_move_tolerance: + print("FAIL: reference md-flexible did not measurably change its decomposition.") + boundaries_ok = False + if autopasdm_movement <= args.boundary_move_tolerance: + print("FAIL: AutoPasDM did not measurably change its decomposition.") + boundaries_ok = False + + ref_iteration, ref_particles = read_particle_state(reference_root) + autopasdm_iteration, autopasdm_particles = read_particle_state(distributed_root) + + print("\nFinal-state comparison:") + print(f" reference final iteration : {ref_iteration}") + print(f" distributed final iteration : {autopasdm_iteration}") + print(f" reference owned particles : {len(ref_particles)}") + print(f" distributed owned particles : {len(autopasdm_particles)}") + + states_ok, ownership_changes, maximum_difference = compare_states( + ref_particles, + autopasdm_particles, + args.absolute_tolerance, + args.relative_tolerance, + ) + print(f" particles owned by different ranks: {ownership_changes} (diagnostic only)") + print(f" maximum absolute component diff : {maximum_difference:.12g}") + print(f" absolute tolerance : {args.absolute_tolerance:.12g}") + print(f" relative tolerance : {args.relative_tolerance:.12g}") + + if boundaries_ok and states_ok: + if args.require_load_balancing: + print("\nPASS: both decompositions adapt and the final particle state agrees within tolerance.") + else: + print("\nPASS: the final particle state agrees within tolerance.") + result = 0 + else: + print("\nFAIL: md-flexible comparison failed.") + result = 1 + + if args.keep_output: + print(f"Output kept in: {work_root}") + if cleanup is not None: + cleanup.cleanup() + return result + + except (OSError, RuntimeError, subprocess.SubprocessError, ET.ParseError) as error: + print(f"ERROR: {error}", file=sys.stderr) + return 2 + + +if __name__ == "__main__": + sys.exit(main()) From 97de5d3a208b6e10199bb0b0326ab8126922edbe Mon Sep 17 00:00:00 2001 From: David Martin Date: Mon, 23 Nov 2026 14:15:31 +0100 Subject: [PATCH 04/13] added delta t --- examples/md-flexible/input/autopasdm_force_compare_3d.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/md-flexible/input/autopasdm_force_compare_3d.yaml b/examples/md-flexible/input/autopasdm_force_compare_3d.yaml index 8b0ad11..7aef48c 100644 --- a/examples/md-flexible/input/autopasdm_force_compare_3d.yaml +++ b/examples/md-flexible/input/autopasdm_force_compare_3d.yaml @@ -13,7 +13,8 @@ # # particle-spacing is intentionally small because every CubeGrid contains only # one particle. This prevents md-flexible from enlarging the explicitly chosen -# [0, 8]^3 periodic simulation box. +# [0, 8]^3 periodic simulation box. deltaT is tiny but non-zero: original +# md-flexible skips MPI migration and halo exchange when deltaT is exactly zero. container: [DirectSum] traversal: [ds_sequential] @@ -29,7 +30,7 @@ tuning-phases: 0 box-min: [0.0, 0.0, 0.0] box-max: [8.0, 8.0, 8.0] -deltaT: 0.0 +deltaT: 1.0e-12 iterations: 1 boundary-type: [periodic, periodic, periodic] From ae9db8e8b746323549937bc627b92f6552731815 Mon Sep 17 00:00:00 2001 From: David Martin Date: Mon, 23 Nov 2026 15:34:32 +0100 Subject: [PATCH 05/13] comparison tests for multisite, thermostat and boundaries --- .github/workflows/TestSuites.yaml | 56 +++++++++++++++ README.md | 55 +++++++++++++-- .../input/autopasdm_multisite_compare.yaml | 58 +++++++++++++++ .../scripts/run_md_flexible_comparison.py | 70 +++++++++++++------ 4 files changed, 214 insertions(+), 25 deletions(-) create mode 100644 examples/md-flexible/input/autopasdm_multisite_compare.yaml diff --git a/.github/workflows/TestSuites.yaml b/.github/workflows/TestSuites.yaml index d7aab20..04c0950 100644 --- a/.github/workflows/TestSuites.yaml +++ b/.github/workflows/TestSuites.yaml @@ -169,6 +169,62 @@ jobs: --config AutoPasDM/examples/md-flexible/input/autopasdm_dynamic_compare.yaml \ --ranks 8 + - name: Compare thermostat between AutoPas and AutoPasDM + if: matrix.config.name == 'GCC-Release-OMP-SingleSite' + run: | + output_dir="${RUNNER_TEMP}/thermostat-comparison" + python3 AutoPasDM/examples/md-flexible/scripts/run_md_flexible_comparison.py \ + --reference AutoPas/build-reference/examples/md-flexible/md-flexible \ + --distributed AutoPasDM/build-ci/examples/md-flexible/md-flexible \ + --config AutoPasDM/examples/md-flexible/input/autopasdm_thermostat_compare.yaml \ + --reference-ranks 1 \ + --distributed-ranks 4 \ + --keep-output "$output_dir" + python3 AutoPasDM/examples/md-flexible/scripts/compare_vtk_thermostat.py \ + "$output_dir/reference" "$output_dir/distributed" + + - name: Check reflective boundaries and wall forces + if: matrix.config.name == 'GCC-Release-OMP-SingleSite' + run: | + set -euo pipefail + executable="${GITHUB_WORKSPACE}/AutoPasDM/build-ci/examples/md-flexible/md-flexible" + config="${GITHUB_WORKSPACE}/AutoPasDM/examples/md-flexible/input/autopasdm_reflective_compare.yaml" + output_dir="${RUNNER_TEMP}/reflective-comparison" + mpirun -np 1 "$executable" --yaml-filename "$config" \ + --vtk-output-folder "$output_dir/np1" + mpirun -np 8 "$executable" --yaml-filename "$config" \ + --vtk-output-folder "$output_dir/np8" + python3 AutoPasDM/examples/md-flexible/scripts/compare_vtk_forces.py \ + "$output_dir/np1" "$output_dir/np8" + python3 AutoPasDM/examples/md-flexible/scripts/check_reflective_forces.py \ + "$output_dir/np8" + + - name: Build original multi-site md-flexible reference + if: matrix.config.name == 'GCC-Release-OMP-MultiSite' + run: | + CC=gcc CXX=g++ cmake -S AutoPas -B AutoPas/build-reference-multisite -G Ninja \ + -DCMAKE_BUILD_TYPE=Release \ + -DAUTOPAS_BUILD_EXAMPLES=ON \ + -DAUTOPAS_BUILD_TESTS=OFF \ + -DAUTOPAS_BUILD_MD_LIBRARY=ON \ + -DAUTOPAS_BUILD_SPH_LIBRARY=ON \ + -DAUTOPAS_OPENMP=ON \ + -DAUTOPAS_ENABLE_ENERGY_MEASUREMENTS=OFF \ + -DAUTOPAS_INTERNODE_TUNING=ON \ + -DMD_FLEXIBLE_FUNCTOR_AUTOVEC=OFF \ + -DMD_FLEXIBLE_MODE=MULTISITE \ + -DMD_FLEXIBLE_USE_MPI=ON + cmake --build AutoPas/build-reference-multisite --target md-flexible --parallel 2 + + - name: Compare multi-site simulations between AutoPas and AutoPasDM + if: matrix.config.name == 'GCC-Release-OMP-MultiSite' + run: | + python3 AutoPasDM/examples/md-flexible/scripts/run_md_flexible_comparison.py \ + --reference AutoPas/build-reference-multisite/examples/md-flexible/md-flexible \ + --distributed AutoPasDM/build-ci/examples/md-flexible/md-flexible \ + --config AutoPasDM/examples/md-flexible/input/autopasdm_multisite_compare.yaml \ + --ranks 8 + - name: Run full CTest suite if: matrix.config.test_scope == 'full' run: | diff --git a/README.md b/README.md index 47c16fa..3203545 100644 --- a/README.md +++ b/README.md @@ -135,10 +135,11 @@ ctest --test-dir build --output-on-failure ### md-flexible 3D force regression A small end-to-end regression input is available at -`examples/md-flexible/input/autopasdm_force_compare_3d.yaml`. It compares a single-rank -reference run with an eight-rank `2 x 2 x 2` decomposition and exercises internal +`examples/md-flexible/input/autopasdm_force_compare_3d.yaml`. It exercises internal face, edge, and corner interactions as well as periodic boundaries in all three -dimensions. +dimensions. The force output can be compared across AutoPasDM decompositions as shown +below. The same input is also used in CI to compare original md-flexible and AutoPasDM +with eight MPI ranks. From `build/examples/md-flexible`: @@ -159,8 +160,20 @@ python3 scripts/compare_vtk_forces.py \ force_compare_3d/np8 ``` -The comparison should report the same owned-particle IDs and forces within the -configured tolerance. +The decomposition comparison should report the same owned-particle IDs and forces +within the configured tolerance. For an original-AutoPas-vs-AutoPasDM comparison, run +from the repository root after building both MPI-enabled md-flexible executables: + +```bash +python3 examples/md-flexible/scripts/run_md_flexible_comparison.py \ + --reference /path/to/AutoPas/build/examples/md-flexible/md-flexible \ + --distributed /path/to/AutoPasDM/build/examples/md-flexible/md-flexible \ + --config examples/md-flexible/input/autopasdm_force_compare_3d.yaml \ + --ranks 8 +``` + +The comparison checks IDs, types, positions, velocities, and forces in the final +output, without requiring the same owner rank. ### md-flexible load-balancing regression @@ -181,6 +194,24 @@ python3 scripts/run_load_balancing_regression.py \ --ranks 8 ``` +The regression uses the general `run_md_flexible_comparison.py` runner and additionally +requires both load balancers to move at least one subdomain boundary. + +### md-flexible thermostat comparison + +CI compares the original one-rank thermostat run with a four-rank AutoPasDM run using +`autopasdm_thermostat_compare.yaml`. It compares particle velocities and checks that +both results reach the expected global temperature. The runner accepts different rank +counts with `--reference-ranks` and `--distributed-ranks`. + +### md-flexible dynamic simulation comparison + +`examples/md-flexible/input/autopasdm_dynamic_compare.yaml` advances a small 3D system +for 100 steps with a non-zero time step. Three particles cross internal MPI boundaries +in x, y, and z, while another pair exercises Lennard-Jones force evaluation. CI runs +this input with eight ranks in both implementations and compares the final global +particle states by ID. + ### md-flexible reflective-boundary regression The single-site md-flexible example contains a reflective-wall regression input at @@ -214,6 +245,20 @@ python3 scripts/check_reflective_forces.py reflective_compare/np8 The first script checks decomposition independence. The second checks the forces against the analytical values of the reflective regression setup. +The reflective Lennard-Jones wall force is an AutoPasDM application feature and is not +implemented by the original md-flexible reference. CI therefore checks this path within +AutoPasDM: it compares one-rank and eight-rank forces and checks the eight-rank result +against the analytical wall forces. + +### md-flexible multi-site comparison + +`examples/md-flexible/input/autopasdm_multisite_compare.yaml` contains two tri-site +molecules interacting across an internal rank corner. The short run exercises the +multi-site force calculation, torque generation, and rotational integration. CI builds +the original md-flexible reference in multi-site mode and compares the final molecular +state with an eight-rank AutoPasDM run, including quaternions, angular velocities, and +torques. + The test build can be disabled with `-DAUTOPASDM_BUILD_TESTS=OFF`. See [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) for the current architecture, diff --git a/examples/md-flexible/input/autopasdm_multisite_compare.yaml b/examples/md-flexible/input/autopasdm_multisite_compare.yaml new file mode 100644 index 0000000..0496f4e --- /dev/null +++ b/examples/md-flexible/input/autopasdm_multisite_compare.yaml @@ -0,0 +1,58 @@ +# Multi-site AutoPas-vs-AutoPasDM regression. +# +# Two three-site molecules interact across the internal x/y rank corner in an +# eight-rank 2 x 2 x 2 decomposition. The off-center site forces generate +# torques, so the run exercises translational and rotational integration. + +container: [DirectSum] +traversal: [ds_sequential] +data-layout: [AoS] +newton3: [enabled] +functor: lennard-jones + +cutoff: 2.0 +verlet-skin-radius: 0.0 +tuning-strategies: [] +tuning-phases: 0 + +box-min: [0.0, 0.0, 0.0] +box-max: [8.0, 8.0, 8.0] + +deltaT: 0.001 +iterations: 20 + +boundary-type: [periodic, periodic, periodic] +subdivide-dimension: [true, true, true] +load-balancer: None + +vtk-filename: autoPasDMMultisiteCompare +vtk-write-frequency: 20 +no-progress-bar: true +no-end-config: true + +Sites: + 0: + epsilon: 1.0 + sigma: 0.6 + mass: 1.0 + +Molecules: + 0: + site-types: [0, 0, 0] + relative-site-positions: [[0.4, 0.0, 0.0], [-0.2, 0.3464101615, 0.0], [-0.2, -0.3464101615, 0.0]] + moment-of-inertia: [0.24, 0.24, 0.48] + +Objects: + CubeGrid: + 0: + particles-per-dimension: [1, 1, 1] + particle-spacing: 0.2 + bottomLeftCorner: [3.4, 3.4, 3.5] + velocity: [0.0, 0.0, 0.0] + particle-type-id: 0 + 1: + particles-per-dimension: [1, 1, 1] + particle-spacing: 0.2 + bottomLeftCorner: [4.6, 4.6, 3.5] + velocity: [0.0, 0.0, 0.0] + particle-type-id: 0 diff --git a/examples/md-flexible/scripts/run_md_flexible_comparison.py b/examples/md-flexible/scripts/run_md_flexible_comparison.py index f1760f6..7d5109c 100644 --- a/examples/md-flexible/scripts/run_md_flexible_comparison.py +++ b/examples/md-flexible/scripts/run_md_flexible_comparison.py @@ -45,6 +45,8 @@ def parse_args() -> argparse.Namespace: parser.add_argument("--distributed", required=True, type=Path, help="AutoPasDM md-flexible executable") parser.add_argument("--config", required=True, type=Path, help="YAML input shared by both runs") parser.add_argument("--ranks", type=int, default=8, help="MPI ranks (default: 8)") + parser.add_argument("--reference-ranks", type=int, help="Override the reference MPI rank count") + parser.add_argument("--distributed-ranks", type=int, help="Override the AutoPasDM MPI rank count") parser.add_argument( "--require-load-balancing", action="store_true", @@ -105,6 +107,13 @@ def data_array(piece: ET.Element, name: str) -> list[str]: raise RuntimeError(f'DataArray "{name}" not found') +def optional_data_array(piece: ET.Element, name: str) -> list[str] | None: + for element in piece.iter("DataArray"): + if element.attrib.get("Name") == name: + return (element.text or "").split() + return None + + def point_coordinates(piece: ET.Element) -> list[float]: points = next(piece.iter("Points"), None) if points is None: @@ -151,28 +160,36 @@ def read_particle_state(root: Path) -> tuple[int, dict[int, dict[str, object]]]: ids = [int(value) for value in data_array(piece, "ids")] type_ids = [int(value) for value in data_array(piece, "typeIds")] - forces = [float(value) for value in data_array(piece, "forces")] - velocities = [float(value) for value in data_array(piece, "velocities")] - positions = point_coordinates(piece) - - expected_vector_values = 3 * len(ids) if len(type_ids) != len(ids): raise RuntimeError(f"Type-ID/ID length mismatch in {filename}") - for values, name in ((forces, "force"), (velocities, "velocity"), (positions, "position")): - if len(values) != expected_vector_values: - raise RuntimeError(f"{name}/ID length mismatch in {filename}") + + fields: dict[str, list[float]] = {"position": point_coordinates(piece)} + vector_arrays = { + "velocity": ("velocities", 3), + "force": ("forces", 3), + "quaternion": ("quaternions", 4), + "angularVelocity": ("angularVelocities", 3), + "torque": ("torques", 3), + } + for field, (array_name, components) in vector_arrays.items(): + raw_values = optional_data_array(piece, array_name) + if raw_values is not None: + fields[field] = [float(value) for value in raw_values] + + for field, values in fields.items(): + components = 4 if field == "quaternion" else 3 + if len(values) != components * len(ids): + raise RuntimeError(f"{field}/ID length mismatch in {filename}") for index, particle_id in enumerate(ids): if particle_id in result: raise RuntimeError(f"Particle ID {particle_id} occurs more than once in final owned output") - begin = 3 * index - result[particle_id] = { - "rank": rank, - "type": type_ids[index], - "position": tuple(positions[begin : begin + 3]), - "velocity": tuple(velocities[begin : begin + 3]), - "force": tuple(forces[begin : begin + 3]), - } + particle_state: dict[str, object] = {"rank": rank, "type": type_ids[index]} + for field, values in fields.items(): + components = 4 if field == "quaternion" else 3 + begin = components * index + particle_state[field] = tuple(values[begin : begin + components]) + result[particle_id] = particle_state return final_iteration, result @@ -238,9 +255,19 @@ def compare_states( if expected["type"] != actual["type"]: failures.append(f"id={particle_id}: type {expected['type']} != {actual['type']}") - for field in ("position", "velocity", "force"): + for field in ("position", "velocity", "force", "quaternion", "angularVelocity", "torque"): + if (field in expected) != (field in actual): + failures.append(f"id={particle_id}: {field} is present in only one output") + continue + if field not in expected: + continue expected_vector = expected[field] actual_vector = actual[field] + if field == "quaternion": + direct_difference = max(abs(a - b) for a, b in zip(expected_vector, actual_vector)) + negated_difference = max(abs(a + b) for a, b in zip(expected_vector, actual_vector)) + if negated_difference < direct_difference: + actual_vector = tuple(-component for component in actual_vector) for component, (a, b) in enumerate(zip(expected_vector, actual_vector)): maximum_difference = max(maximum_difference, abs(a - b)) if not close(a, b, absolute_tolerance, relative_tolerance): @@ -266,7 +293,10 @@ def main() -> int: reference = absolute_existing_file(args.reference, "Reference executable") distributed = absolute_existing_file(args.distributed, "Distributed executable") config = absolute_existing_file(args.config, "Configuration") - launcher = launcher_command(args.launcher, args.ranks) + reference_ranks = args.reference_ranks if args.reference_ranks is not None else args.ranks + distributed_ranks = args.distributed_ranks if args.distributed_ranks is not None else args.ranks + reference_launcher = launcher_command(args.launcher, reference_ranks) + distributed_launcher = launcher_command(args.launcher, distributed_ranks) if args.keep_output: work_root = args.keep_output.expanduser().resolve() @@ -281,8 +311,8 @@ def main() -> int: reference_root = work_root / "reference" distributed_root = work_root / "distributed" - run_case("reference md-flexible", reference, config, reference_root, launcher) - run_case("AutoPasDM md-flexible", distributed, config, distributed_root, launcher) + run_case("reference md-flexible", reference, config, reference_root, reference_launcher) + run_case("AutoPasDM md-flexible", distributed, config, distributed_root, distributed_launcher) boundaries_ok = True if args.require_load_balancing: From 2453d09a3fd05542add77af9a8de2ceb4dd982cb Mon Sep 17 00:00:00 2001 From: David Martin Date: Mon, 23 Nov 2026 15:47:26 +0100 Subject: [PATCH 06/13] fixed multisite functor issue --- .github/workflows/TestSuites.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/TestSuites.yaml b/.github/workflows/TestSuites.yaml index 04c0950..1d4c237 100644 --- a/.github/workflows/TestSuites.yaml +++ b/.github/workflows/TestSuites.yaml @@ -212,6 +212,9 @@ jobs: -DAUTOPAS_ENABLE_ENERGY_MEASUREMENTS=OFF \ -DAUTOPAS_INTERNODE_TUNING=ON \ -DMD_FLEXIBLE_FUNCTOR_AUTOVEC=OFF \ + -DMD_FLEXIBLE_FUNCTOR_AVX=OFF \ + -DMD_FLEXIBLE_FUNCTOR_HWY=OFF \ + -DMD_FLEXIBLE_FUNCTOR_SVE=OFF \ -DMD_FLEXIBLE_MODE=MULTISITE \ -DMD_FLEXIBLE_USE_MPI=ON cmake --build AutoPas/build-reference-multisite --target md-flexible --parallel 2 From a1cd8bb0328a33617d174e7c5723f09f1af189a7 Mon Sep 17 00:00:00 2001 From: David Martin Date: Mon, 23 Nov 2026 16:03:38 +0100 Subject: [PATCH 07/13] fix for multisite build --- .github/workflows/TestSuites.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/TestSuites.yaml b/.github/workflows/TestSuites.yaml index 1d4c237..78ca83e 100644 --- a/.github/workflows/TestSuites.yaml +++ b/.github/workflows/TestSuites.yaml @@ -211,7 +211,7 @@ jobs: -DAUTOPAS_OPENMP=ON \ -DAUTOPAS_ENABLE_ENERGY_MEASUREMENTS=OFF \ -DAUTOPAS_INTERNODE_TUNING=ON \ - -DMD_FLEXIBLE_FUNCTOR_AUTOVEC=OFF \ + -DMD_FLEXIBLE_FUNCTOR_AUTOVEC=ON \ -DMD_FLEXIBLE_FUNCTOR_AVX=OFF \ -DMD_FLEXIBLE_FUNCTOR_HWY=OFF \ -DMD_FLEXIBLE_FUNCTOR_SVE=OFF \ From 990cc68d47007ba79049c889a4c293106382d1ff Mon Sep 17 00:00:00 2001 From: David Martin Date: Mon, 23 Nov 2026 16:31:37 +0100 Subject: [PATCH 08/13] changed boundaries to check potential halo issue --- examples/md-flexible/input/autopasdm_thermostat_compare.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/md-flexible/input/autopasdm_thermostat_compare.yaml b/examples/md-flexible/input/autopasdm_thermostat_compare.yaml index a31b748..310ccd5 100644 --- a/examples/md-flexible/input/autopasdm_thermostat_compare.yaml +++ b/examples/md-flexible/input/autopasdm_thermostat_compare.yaml @@ -29,7 +29,7 @@ box-max: [8.6, 8.0, 8.0] deltaT: 0.000001 iterations: 1 -boundary-type: [periodic, none, none] +boundary-type: [none, none, none] subdivide-dimension: [true, false, false] load-balancer: None From e08699a6e24c7b669fe1d5e240a9e6938d3111ef Mon Sep 17 00:00:00 2001 From: David Martin Date: Mon, 23 Nov 2026 17:04:17 +0100 Subject: [PATCH 09/13] fix folder creation --- .github/workflows/TestSuites.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/TestSuites.yaml b/.github/workflows/TestSuites.yaml index 78ca83e..df390d9 100644 --- a/.github/workflows/TestSuites.yaml +++ b/.github/workflows/TestSuites.yaml @@ -190,6 +190,7 @@ jobs: executable="${GITHUB_WORKSPACE}/AutoPasDM/build-ci/examples/md-flexible/md-flexible" config="${GITHUB_WORKSPACE}/AutoPasDM/examples/md-flexible/input/autopasdm_reflective_compare.yaml" output_dir="${RUNNER_TEMP}/reflective-comparison" + mkdir -p "$output_dir" mpirun -np 1 "$executable" --yaml-filename "$config" \ --vtk-output-folder "$output_dir/np1" mpirun -np 8 "$executable" --yaml-filename "$config" \ From c86e4266f837bad3d404695775d7732f9da4a74f Mon Sep 17 00:00:00 2001 From: David Martin Date: Mon, 23 Nov 2026 17:22:30 +0100 Subject: [PATCH 10/13] fix two --- .github/workflows/TestSuites.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/TestSuites.yaml b/.github/workflows/TestSuites.yaml index df390d9..c8114ab 100644 --- a/.github/workflows/TestSuites.yaml +++ b/.github/workflows/TestSuites.yaml @@ -190,7 +190,7 @@ jobs: executable="${GITHUB_WORKSPACE}/AutoPasDM/build-ci/examples/md-flexible/md-flexible" config="${GITHUB_WORKSPACE}/AutoPasDM/examples/md-flexible/input/autopasdm_reflective_compare.yaml" output_dir="${RUNNER_TEMP}/reflective-comparison" - mkdir -p "$output_dir" + mkdir -p "$output_dir/np1" "$output_dir/np8" mpirun -np 1 "$executable" --yaml-filename "$config" \ --vtk-output-folder "$output_dir/np1" mpirun -np 8 "$executable" --yaml-filename "$config" \ From 73d1ccffdfec863027d76a71565ced046e7c41d3 Mon Sep 17 00:00:00 2001 From: David Martin Date: Fri, 27 Nov 2026 12:41:28 +0100 Subject: [PATCH 11/13] apply suggestions from coderabbit --- .../scripts/run_md_flexible_comparison.py | 42 +++++++++++++------ 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/examples/md-flexible/scripts/run_md_flexible_comparison.py b/examples/md-flexible/scripts/run_md_flexible_comparison.py index 7d5109c..ff33558 100644 --- a/examples/md-flexible/scripts/run_md_flexible_comparison.py +++ b/examples/md-flexible/scripts/run_md_flexible_comparison.py @@ -28,7 +28,6 @@ from pathlib import Path import re import shlex -import shutil import subprocess import sys import tempfile @@ -63,7 +62,10 @@ def parse_args() -> argparse.Namespace: parser.add_argument( "--keep-output", type=Path, - help="Keep both run directories below this directory instead of deleting temporary output", + help=( + "Keep both run directories below this directory instead of deleting temporary output. " + "The destination must be absent or empty; existing contents are never removed." + ), ) return parser.parse_args() @@ -164,14 +166,18 @@ def read_particle_state(root: Path) -> tuple[int, dict[int, dict[str, object]]]: raise RuntimeError(f"Type-ID/ID length mismatch in {filename}") fields: dict[str, list[float]] = {"position": point_coordinates(piece)} - vector_arrays = { + required_vector_arrays = { "velocity": ("velocities", 3), "force": ("forces", 3), + } + optional_vector_arrays = { "quaternion": ("quaternions", 4), "angularVelocity": ("angularVelocities", 3), "torque": ("torques", 3), } - for field, (array_name, components) in vector_arrays.items(): + for field, (array_name, _) in required_vector_arrays.items(): + fields[field] = [float(value) for value in data_array(piece, array_name)] + for field, (array_name, _) in optional_vector_arrays.items(): raw_values = optional_data_array(piece, array_name) if raw_values is not None: fields[field] = [float(value) for value in raw_values] @@ -301,8 +307,12 @@ def main() -> int: if args.keep_output: work_root = args.keep_output.expanduser().resolve() if work_root.exists(): - shutil.rmtree(work_root) - work_root.mkdir(parents=True) + if not work_root.is_dir(): + raise RuntimeError(f"Output destination exists and is not a directory: {work_root}") + if next(work_root.iterdir(), None) is not None: + raise RuntimeError(f"Output destination is not empty; refusing to overwrite: {work_root}") + else: + work_root.mkdir(parents=True) cleanup = None else: cleanup = tempfile.TemporaryDirectory(prefix="autopasdm_md_flexible_comparison_") @@ -339,12 +349,18 @@ def main() -> int: print(f" reference owned particles : {len(ref_particles)}") print(f" distributed owned particles : {len(autopasdm_particles)}") - states_ok, ownership_changes, maximum_difference = compare_states( - ref_particles, - autopasdm_particles, - args.absolute_tolerance, - args.relative_tolerance, - ) + if ref_iteration != autopasdm_iteration: + print("FAIL: final iteration numbers differ; refusing to compare particle states.") + states_ok = False + ownership_changes = 0 + maximum_difference = math.inf + else: + states_ok, ownership_changes, maximum_difference = compare_states( + ref_particles, + autopasdm_particles, + args.absolute_tolerance, + args.relative_tolerance, + ) print(f" particles owned by different ranks: {ownership_changes} (diagnostic only)") print(f" maximum absolute component diff : {maximum_difference:.12g}") print(f" absolute tolerance : {args.absolute_tolerance:.12g}") @@ -372,4 +388,4 @@ def main() -> int: if __name__ == "__main__": - sys.exit(main()) + sys.exit(main()) \ No newline at end of file From 8fcc5aff401d0cbc02c5577ace0cdf9b2c52cb1d Mon Sep 17 00:00:00 2001 From: David Martin Date: Fri, 27 Nov 2026 13:35:39 +0100 Subject: [PATCH 12/13] restructure test files --- README.md | 36 +++++++++---------- examples/md-flexible/CMakeLists.txt | 10 +++--- .../scripts/check_reflective_forces.py | 0 .../{ => tests}/scripts/compare_vtk_forces.py | 0 .../scripts/compare_vtk_thermostat.py | 0 .../scripts/run_load_balancing_regression.py | 4 +-- .../scripts/run_md_flexible_comparison.py | 6 ++-- .../autopasdm_all_load_balancer.yaml | 0 .../autopasdm_cli_checkpoint.yaml | 0 .../autopasdm_cli_checkpoint_restart.yaml | 0 .../autopasdm_dynamic_compare.yaml | 0 .../autopasdm_force_compare.yaml | 0 .../autopasdm_force_compare_3d.yaml | 0 .../autopasdm_load_balancing_compare.yaml | 2 +- .../yamlTestFiles}/autopasdm_mpi_tuning.yaml | 0 .../autopasdm_multisite_compare.yaml | 0 .../autopasdm_reflective_compare.yaml | 0 .../autopasdm_thermostat_compare.yaml | 0 18 files changed, 29 insertions(+), 29 deletions(-) rename examples/md-flexible/{ => tests}/scripts/check_reflective_forces.py (100%) rename examples/md-flexible/{ => tests}/scripts/compare_vtk_forces.py (100%) rename examples/md-flexible/{ => tests}/scripts/compare_vtk_thermostat.py (100%) rename examples/md-flexible/{ => tests}/scripts/run_load_balancing_regression.py (99%) rename examples/md-flexible/{ => tests}/scripts/run_md_flexible_comparison.py (99%) rename examples/md-flexible/{input => tests/yamlTestFiles}/autopasdm_all_load_balancer.yaml (100%) rename examples/md-flexible/{input => tests/yamlTestFiles}/autopasdm_cli_checkpoint.yaml (100%) rename examples/md-flexible/{input => tests/yamlTestFiles}/autopasdm_cli_checkpoint_restart.yaml (100%) rename examples/md-flexible/{input => tests/yamlTestFiles}/autopasdm_dynamic_compare.yaml (100%) rename examples/md-flexible/{input => tests/yamlTestFiles}/autopasdm_force_compare.yaml (100%) rename examples/md-flexible/{input => tests/yamlTestFiles}/autopasdm_force_compare_3d.yaml (100%) rename examples/md-flexible/{input => tests/yamlTestFiles}/autopasdm_load_balancing_compare.yaml (98%) rename examples/md-flexible/{input => tests/yamlTestFiles}/autopasdm_mpi_tuning.yaml (100%) rename examples/md-flexible/{input => tests/yamlTestFiles}/autopasdm_multisite_compare.yaml (100%) rename examples/md-flexible/{input => tests/yamlTestFiles}/autopasdm_reflective_compare.yaml (100%) rename examples/md-flexible/{input => tests/yamlTestFiles}/autopasdm_thermostat_compare.yaml (100%) diff --git a/README.md b/README.md index 3203545..6a54400 100644 --- a/README.md +++ b/README.md @@ -135,7 +135,7 @@ ctest --test-dir build --output-on-failure ### md-flexible 3D force regression A small end-to-end regression input is available at -`examples/md-flexible/input/autopasdm_force_compare_3d.yaml`. It exercises internal +`examples/md-flexible/tests/yamlTestFiles/autopasdm_force_compare_3d.yaml`. It exercises internal face, edge, and corner interactions as well as periodic boundaries in all three dimensions. The force output can be compared across AutoPasDM decompositions as shown below. The same input is also used in CI to compare original md-flexible and AutoPasDM @@ -148,14 +148,14 @@ rm -rf force_compare_3d/np1 force_compare_3d/np8 mkdir -p force_compare_3d/np1 force_compare_3d/np8 ./md-flexible \ - --yaml-filename input/autopasdm_force_compare_3d.yaml \ + --yaml-filename ../../../examples/md-flexible/tests/yamlTestFiles/autopasdm_force_compare_3d.yaml \ --vtk-output-folder force_compare_3d/np1 mpirun -np 8 ./md-flexible \ - --yaml-filename input/autopasdm_force_compare_3d.yaml \ + --yaml-filename ../../../examples/md-flexible/tests/yamlTestFiles/autopasdm_force_compare_3d.yaml \ --vtk-output-folder force_compare_3d/np8 -python3 scripts/compare_vtk_forces.py \ +python3 ../../../examples/md-flexible/tests/scripts/compare_vtk_forces.py \ force_compare_3d/np1 \ force_compare_3d/np8 ``` @@ -165,10 +165,10 @@ within the configured tolerance. For an original-AutoPas-vs-AutoPasDM comparison from the repository root after building both MPI-enabled md-flexible executables: ```bash -python3 examples/md-flexible/scripts/run_md_flexible_comparison.py \ +python3 examples/md-flexible/tests/scripts/run_md_flexible_comparison.py \ --reference /path/to/AutoPas/build/examples/md-flexible/md-flexible \ --distributed /path/to/AutoPasDM/build/examples/md-flexible/md-flexible \ - --config examples/md-flexible/input/autopasdm_force_compare_3d.yaml \ + --config examples/md-flexible/tests/yamlTestFiles/autopasdm_force_compare_3d.yaml \ --ranks 8 ``` @@ -177,8 +177,8 @@ output, without requiring the same owner rank. ### md-flexible load-balancing regression -`examples/md-flexible/input/autopasdm_load_balancing_compare.yaml` and -`scripts/run_load_balancing_regression.py` compare the bundled AutoPasDM +`examples/md-flexible/tests/yamlTestFiles/autopasdm_load_balancing_compare.yaml` and +`examples/md-flexible/tests/scripts/run_load_balancing_regression.py` compare the bundled AutoPasDM integration against an MPI-enabled original md-flexible build. Both decompositions must adapt and the final global particle state is compared independently of the exact owner rank, because runtime-based work measurements can produce different adaptive @@ -187,10 +187,10 @@ split positions. For example: ```bash -python3 scripts/run_load_balancing_regression.py \ +python3 examples/md-flexible/tests/scripts/run_load_balancing_regression.py \ --reference /path/to/AutoPas/build/examples/md-flexible/md-flexible \ --distributed ./md-flexible \ - --config input/autopasdm_load_balancing_compare.yaml \ + --config examples/md-flexible/tests/yamlTestFiles/autopasdm_load_balancing_compare.yaml \ --ranks 8 ``` @@ -200,13 +200,13 @@ requires both load balancers to move at least one subdomain boundary. ### md-flexible thermostat comparison CI compares the original one-rank thermostat run with a four-rank AutoPasDM run using -`autopasdm_thermostat_compare.yaml`. It compares particle velocities and checks that +`examples/md-flexible/tests/yamlTestFiles/autopasdm_thermostat_compare.yaml`. It compares particle velocities and checks that both results reach the expected global temperature. The runner accepts different rank counts with `--reference-ranks` and `--distributed-ranks`. ### md-flexible dynamic simulation comparison -`examples/md-flexible/input/autopasdm_dynamic_compare.yaml` advances a small 3D system +`examples/md-flexible/tests/yamlTestFiles/autopasdm_dynamic_compare.yaml` advances a small 3D system for 100 steps with a non-zero time step. Three particles cross internal MPI boundaries in x, y, and z, while another pair exercises Lennard-Jones force evaluation. CI runs this input with eight ranks in both implementations and compares the final global @@ -215,7 +215,7 @@ particle states by ID. ### md-flexible reflective-boundary regression The single-site md-flexible example contains a reflective-wall regression input at -`examples/md-flexible/input/autopasdm_reflective_compare.yaml`. It places particles near +`examples/md-flexible/tests/yamlTestFiles/autopasdm_reflective_compare.yaml`. It places particles near all six global faces and two opposite corners. With sigma = epsilon = 1 and a wall distance of 0.5, the expected force component from each reflective wall is exactly 24. The same setup can be compared between one rank and an eight-rank `2 x 2 x 2` @@ -228,18 +228,18 @@ rm -rf reflective_compare/np1 reflective_compare/np8 mkdir -p reflective_compare/np1 reflective_compare/np8 ./md-flexible \ - --yaml-filename input/autopasdm_reflective_compare.yaml \ + --yaml-filename ../../../examples/md-flexible/tests/yamlTestFiles/autopasdm_reflective_compare.yaml \ --vtk-output-folder reflective_compare/np1 mpirun -np 8 ./md-flexible \ - --yaml-filename input/autopasdm_reflective_compare.yaml \ + --yaml-filename ../../../examples/md-flexible/tests/yamlTestFiles/autopasdm_reflective_compare.yaml \ --vtk-output-folder reflective_compare/np8 -python3 scripts/compare_vtk_forces.py \ +python3 ../../../examples/md-flexible/tests/scripts/compare_vtk_forces.py \ reflective_compare/np1 \ reflective_compare/np8 -python3 scripts/check_reflective_forces.py reflective_compare/np8 +python3 ../../../examples/md-flexible/tests/scripts/check_reflective_forces.py reflective_compare/np8 ``` The first script checks decomposition independence. The second checks the forces @@ -252,7 +252,7 @@ against the analytical wall forces. ### md-flexible multi-site comparison -`examples/md-flexible/input/autopasdm_multisite_compare.yaml` contains two tri-site +`examples/md-flexible/tests/yamlTestFiles/autopasdm_multisite_compare.yaml` contains two tri-site molecules interacting across an internal rank corner. The short run exercises the multi-site force calculation, torque generation, and rotational integration. CI builds the original md-flexible reference in multi-site mode and compares the final molecular diff --git a/examples/md-flexible/CMakeLists.txt b/examples/md-flexible/CMakeLists.txt index b7a3327..1ec227a 100644 --- a/examples/md-flexible/CMakeLists.txt +++ b/examples/md-flexible/CMakeLists.txt @@ -225,7 +225,7 @@ if(AUTOPASDM_BUILD_TESTS) ${MPIEXEC_NUMPROC_FLAG} 2 ${MPIEXEC_PREFLAGS} $ - --yaml-filename "${CMAKE_CURRENT_SOURCE_DIR}/input/autopasdm_all_load_balancer.yaml" + --yaml-filename "${CMAKE_CURRENT_SOURCE_DIR}/tests/yamlTestFiles/autopasdm_all_load_balancer.yaml" ${MPIEXEC_POSTFLAGS} CONFIGURATIONS checkExamples ) @@ -249,7 +249,7 @@ if(AUTOPASDM_BUILD_TESTS) ${MPIEXEC_NUMPROC_FLAG} 2 ${MPIEXEC_PREFLAGS} $ - --yaml-filename "${CMAKE_CURRENT_SOURCE_DIR}/input/autopasdm_mpi_tuning.yaml" + --yaml-filename "${CMAKE_CURRENT_SOURCE_DIR}/tests/yamlTestFiles/autopasdm_mpi_tuning.yaml" ${MPIEXEC_POSTFLAGS} CONFIGURATIONS checkExamples ) @@ -278,7 +278,7 @@ if(AUTOPASDM_BUILD_TESTS) ${MPIEXEC_NUMPROC_FLAG} 2 ${MPIEXEC_PREFLAGS} $ - --yaml-filename "${CMAKE_CURRENT_SOURCE_DIR}/input/autopasdm_cli_checkpoint.yaml" + --yaml-filename "${CMAKE_CURRENT_SOURCE_DIR}/tests/yamlTestFiles/autopasdm_cli_checkpoint.yaml" --vtk-filename autopasdm-cli-checkpoint --vtk-output-folder "${MDFLEX_CHECKPOINT_TEST_OUTPUT_FOLDER}" --vtk-write-frequency 1 @@ -303,7 +303,7 @@ if(AUTOPASDM_BUILD_TESTS) ${MPIEXEC_NUMPROC_FLAG} 2 ${MPIEXEC_PREFLAGS} $ - --yaml-filename "${CMAKE_CURRENT_SOURCE_DIR}/input/autopasdm_cli_checkpoint_restart.yaml" + --yaml-filename "${CMAKE_CURRENT_SOURCE_DIR}/tests/yamlTestFiles/autopasdm_cli_checkpoint_restart.yaml" --checkpoint "${MDFLEX_CHECKPOINT_TEST_FILE}" --vtk-filename autopasdm-cli-checkpoint-restart --vtk-output-folder "${MDFLEX_CHECKPOINT_TEST_OUTPUT_FOLDER}" @@ -331,7 +331,7 @@ if(AUTOPASDM_BUILD_TESTS) ${MPIEXEC_NUMPROC_FLAG} 1 ${MPIEXEC_PREFLAGS} $ - --yaml-filename "${CMAKE_CURRENT_SOURCE_DIR}/input/autopasdm_cli_checkpoint_restart.yaml" + --yaml-filename "${CMAKE_CURRENT_SOURCE_DIR}/tests/yamlTestFiles/autopasdm_cli_checkpoint_restart.yaml" --checkpoint "${MDFLEX_CHECKPOINT_TEST_FILE}" --vtk-filename autopasdm-cli-checkpoint-restart-one-rank --vtk-output-folder "${MDFLEX_CHECKPOINT_TEST_OUTPUT_FOLDER}" diff --git a/examples/md-flexible/scripts/check_reflective_forces.py b/examples/md-flexible/tests/scripts/check_reflective_forces.py similarity index 100% rename from examples/md-flexible/scripts/check_reflective_forces.py rename to examples/md-flexible/tests/scripts/check_reflective_forces.py diff --git a/examples/md-flexible/scripts/compare_vtk_forces.py b/examples/md-flexible/tests/scripts/compare_vtk_forces.py similarity index 100% rename from examples/md-flexible/scripts/compare_vtk_forces.py rename to examples/md-flexible/tests/scripts/compare_vtk_forces.py diff --git a/examples/md-flexible/scripts/compare_vtk_thermostat.py b/examples/md-flexible/tests/scripts/compare_vtk_thermostat.py similarity index 100% rename from examples/md-flexible/scripts/compare_vtk_thermostat.py rename to examples/md-flexible/tests/scripts/compare_vtk_thermostat.py diff --git a/examples/md-flexible/scripts/run_load_balancing_regression.py b/examples/md-flexible/tests/scripts/run_load_balancing_regression.py similarity index 99% rename from examples/md-flexible/scripts/run_load_balancing_regression.py rename to examples/md-flexible/tests/scripts/run_load_balancing_regression.py index 078509f..4e45ce9 100755 --- a/examples/md-flexible/scripts/run_load_balancing_regression.py +++ b/examples/md-flexible/tests/scripts/run_load_balancing_regression.py @@ -9,10 +9,10 @@ 2. the final owned-particle state agrees by particle ID within tolerance. Example: - python3 scripts/run_load_balancing_regression.py \ + python3 tests/scripts/run_load_balancing_regression.py \ --reference /path/to/AutoPas/build/examples/md-flexible/md-flexible \ --distributed ./md-flexible \ - --config input/autopasdm_load_balancing_compare.yaml \ + --config tests/yamlTestFiles/autopasdm_load_balancing_compare.yaml \ --ranks 8 For SLURM, e.g. use: diff --git a/examples/md-flexible/scripts/run_md_flexible_comparison.py b/examples/md-flexible/tests/scripts/run_md_flexible_comparison.py similarity index 99% rename from examples/md-flexible/scripts/run_md_flexible_comparison.py rename to examples/md-flexible/tests/scripts/run_md_flexible_comparison.py index ff33558..f0e0c42 100644 --- a/examples/md-flexible/scripts/run_md_flexible_comparison.py +++ b/examples/md-flexible/tests/scripts/run_md_flexible_comparison.py @@ -9,10 +9,10 @@ 2. optionally, both runs actually move at least one subdomain boundary. Example: - python3 scripts/run_md_flexible_comparison.py \ + python3 tests/scripts/run_md_flexible_comparison.py \ --reference /path/to/AutoPas/build/examples/md-flexible/md-flexible \ --distributed ./md-flexible \ - --config input/autopasdm_load_balancing_compare.yaml \ + --config tests/yamlTestFiles/autopasdm_load_balancing_compare.yaml \ --ranks 8 --require-load-balancing For SLURM, e.g. use: @@ -388,4 +388,4 @@ def main() -> int: if __name__ == "__main__": - sys.exit(main()) \ No newline at end of file + sys.exit(main()) diff --git a/examples/md-flexible/input/autopasdm_all_load_balancer.yaml b/examples/md-flexible/tests/yamlTestFiles/autopasdm_all_load_balancer.yaml similarity index 100% rename from examples/md-flexible/input/autopasdm_all_load_balancer.yaml rename to examples/md-flexible/tests/yamlTestFiles/autopasdm_all_load_balancer.yaml diff --git a/examples/md-flexible/input/autopasdm_cli_checkpoint.yaml b/examples/md-flexible/tests/yamlTestFiles/autopasdm_cli_checkpoint.yaml similarity index 100% rename from examples/md-flexible/input/autopasdm_cli_checkpoint.yaml rename to examples/md-flexible/tests/yamlTestFiles/autopasdm_cli_checkpoint.yaml diff --git a/examples/md-flexible/input/autopasdm_cli_checkpoint_restart.yaml b/examples/md-flexible/tests/yamlTestFiles/autopasdm_cli_checkpoint_restart.yaml similarity index 100% rename from examples/md-flexible/input/autopasdm_cli_checkpoint_restart.yaml rename to examples/md-flexible/tests/yamlTestFiles/autopasdm_cli_checkpoint_restart.yaml diff --git a/examples/md-flexible/input/autopasdm_dynamic_compare.yaml b/examples/md-flexible/tests/yamlTestFiles/autopasdm_dynamic_compare.yaml similarity index 100% rename from examples/md-flexible/input/autopasdm_dynamic_compare.yaml rename to examples/md-flexible/tests/yamlTestFiles/autopasdm_dynamic_compare.yaml diff --git a/examples/md-flexible/input/autopasdm_force_compare.yaml b/examples/md-flexible/tests/yamlTestFiles/autopasdm_force_compare.yaml similarity index 100% rename from examples/md-flexible/input/autopasdm_force_compare.yaml rename to examples/md-flexible/tests/yamlTestFiles/autopasdm_force_compare.yaml diff --git a/examples/md-flexible/input/autopasdm_force_compare_3d.yaml b/examples/md-flexible/tests/yamlTestFiles/autopasdm_force_compare_3d.yaml similarity index 100% rename from examples/md-flexible/input/autopasdm_force_compare_3d.yaml rename to examples/md-flexible/tests/yamlTestFiles/autopasdm_force_compare_3d.yaml diff --git a/examples/md-flexible/input/autopasdm_load_balancing_compare.yaml b/examples/md-flexible/tests/yamlTestFiles/autopasdm_load_balancing_compare.yaml similarity index 98% rename from examples/md-flexible/input/autopasdm_load_balancing_compare.yaml rename to examples/md-flexible/tests/yamlTestFiles/autopasdm_load_balancing_compare.yaml index e70526a..2929178 100644 --- a/examples/md-flexible/input/autopasdm_load_balancing_compare.yaml +++ b/examples/md-flexible/tests/yamlTestFiles/autopasdm_load_balancing_compare.yaml @@ -1,6 +1,6 @@ # Adaptive 3D regression shared by original md-flexible and AutoPasDM. # -# Run both executables with 8 MPI ranks via scripts/run_load_balancing_regression.py. +# Run both executables with 8 MPI ranks via tests/scripts/run_load_balancing_regression.py. # The deliberately dense lower-octant block makes the initial 2 x 2 x 2 grid # strongly imbalanced, so Inverted Pressure should move at least one boundary. # diff --git a/examples/md-flexible/input/autopasdm_mpi_tuning.yaml b/examples/md-flexible/tests/yamlTestFiles/autopasdm_mpi_tuning.yaml similarity index 100% rename from examples/md-flexible/input/autopasdm_mpi_tuning.yaml rename to examples/md-flexible/tests/yamlTestFiles/autopasdm_mpi_tuning.yaml diff --git a/examples/md-flexible/input/autopasdm_multisite_compare.yaml b/examples/md-flexible/tests/yamlTestFiles/autopasdm_multisite_compare.yaml similarity index 100% rename from examples/md-flexible/input/autopasdm_multisite_compare.yaml rename to examples/md-flexible/tests/yamlTestFiles/autopasdm_multisite_compare.yaml diff --git a/examples/md-flexible/input/autopasdm_reflective_compare.yaml b/examples/md-flexible/tests/yamlTestFiles/autopasdm_reflective_compare.yaml similarity index 100% rename from examples/md-flexible/input/autopasdm_reflective_compare.yaml rename to examples/md-flexible/tests/yamlTestFiles/autopasdm_reflective_compare.yaml diff --git a/examples/md-flexible/input/autopasdm_thermostat_compare.yaml b/examples/md-flexible/tests/yamlTestFiles/autopasdm_thermostat_compare.yaml similarity index 100% rename from examples/md-flexible/input/autopasdm_thermostat_compare.yaml rename to examples/md-flexible/tests/yamlTestFiles/autopasdm_thermostat_compare.yaml From e592f5ec77534c2489d4af6ee88824352d3921f3 Mon Sep 17 00:00:00 2001 From: David Martin Date: Fri, 27 Nov 2026 14:11:03 +0100 Subject: [PATCH 13/13] fix wrong paths --- .github/workflows/TestSuites.yaml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/TestSuites.yaml b/.github/workflows/TestSuites.yaml index c8114ab..46d74c1 100644 --- a/.github/workflows/TestSuites.yaml +++ b/.github/workflows/TestSuites.yaml @@ -145,42 +145,42 @@ jobs: - name: Compare AutoPas and AutoPasDM simulations if: matrix.config.name == 'GCC-Release-OMP-SingleSite' run: | - python3 AutoPasDM/examples/md-flexible/scripts/run_load_balancing_regression.py \ + python3 AutoPasDM/examples/md-flexible/tests/scripts/run_load_balancing_regression.py \ --reference AutoPas/build-reference/examples/md-flexible/md-flexible \ --distributed AutoPasDM/build-ci/examples/md-flexible/md-flexible \ - --config AutoPasDM/examples/md-flexible/input/autopasdm_load_balancing_compare.yaml \ + --config AutoPasDM/examples/md-flexible/tests/yamlTestFiles/autopasdm_load_balancing_compare.yaml \ --ranks 8 - name: Compare 3D forces between AutoPas and AutoPasDM if: matrix.config.name == 'GCC-Release-OMP-SingleSite' run: | - python3 AutoPasDM/examples/md-flexible/scripts/run_md_flexible_comparison.py \ + python3 AutoPasDM/examples/md-flexible/tests/scripts/run_md_flexible_comparison.py \ --reference AutoPas/build-reference/examples/md-flexible/md-flexible \ --distributed AutoPasDM/build-ci/examples/md-flexible/md-flexible \ - --config AutoPasDM/examples/md-flexible/input/autopasdm_force_compare_3d.yaml \ + --config AutoPasDM/examples/md-flexible/tests/yamlTestFiles/autopasdm_force_compare_3d.yaml \ --ranks 8 - name: Compare dynamic simulations between AutoPas and AutoPasDM if: matrix.config.name == 'GCC-Release-OMP-SingleSite' run: | - python3 AutoPasDM/examples/md-flexible/scripts/run_md_flexible_comparison.py \ + python3 AutoPasDM/examples/md-flexible/tests/scripts/run_md_flexible_comparison.py \ --reference AutoPas/build-reference/examples/md-flexible/md-flexible \ --distributed AutoPasDM/build-ci/examples/md-flexible/md-flexible \ - --config AutoPasDM/examples/md-flexible/input/autopasdm_dynamic_compare.yaml \ + --config AutoPasDM/examples/md-flexible/tests/yamlTestFiles/autopasdm_dynamic_compare.yaml \ --ranks 8 - name: Compare thermostat between AutoPas and AutoPasDM if: matrix.config.name == 'GCC-Release-OMP-SingleSite' run: | output_dir="${RUNNER_TEMP}/thermostat-comparison" - python3 AutoPasDM/examples/md-flexible/scripts/run_md_flexible_comparison.py \ + python3 AutoPasDM/examples/md-flexible/tests/scripts/run_md_flexible_comparison.py \ --reference AutoPas/build-reference/examples/md-flexible/md-flexible \ --distributed AutoPasDM/build-ci/examples/md-flexible/md-flexible \ - --config AutoPasDM/examples/md-flexible/input/autopasdm_thermostat_compare.yaml \ + --config AutoPasDM/examples/md-flexible/tests/yamlTestFiles/autopasdm_thermostat_compare.yaml \ --reference-ranks 1 \ --distributed-ranks 4 \ --keep-output "$output_dir" - python3 AutoPasDM/examples/md-flexible/scripts/compare_vtk_thermostat.py \ + python3 AutoPasDM/examples/md-flexible/tests/scripts/compare_vtk_thermostat.py \ "$output_dir/reference" "$output_dir/distributed" - name: Check reflective boundaries and wall forces @@ -188,16 +188,16 @@ jobs: run: | set -euo pipefail executable="${GITHUB_WORKSPACE}/AutoPasDM/build-ci/examples/md-flexible/md-flexible" - config="${GITHUB_WORKSPACE}/AutoPasDM/examples/md-flexible/input/autopasdm_reflective_compare.yaml" + config="${GITHUB_WORKSPACE}/AutoPasDM/examples/md-flexible/tests/yamlTestFiles/autopasdm_reflective_compare.yaml" output_dir="${RUNNER_TEMP}/reflective-comparison" mkdir -p "$output_dir/np1" "$output_dir/np8" mpirun -np 1 "$executable" --yaml-filename "$config" \ --vtk-output-folder "$output_dir/np1" mpirun -np 8 "$executable" --yaml-filename "$config" \ --vtk-output-folder "$output_dir/np8" - python3 AutoPasDM/examples/md-flexible/scripts/compare_vtk_forces.py \ + python3 AutoPasDM/examples/md-flexible/tests/scripts/compare_vtk_forces.py \ "$output_dir/np1" "$output_dir/np8" - python3 AutoPasDM/examples/md-flexible/scripts/check_reflective_forces.py \ + python3 AutoPasDM/examples/md-flexible/tests/scripts/check_reflective_forces.py \ "$output_dir/np8" - name: Build original multi-site md-flexible reference @@ -223,10 +223,10 @@ jobs: - name: Compare multi-site simulations between AutoPas and AutoPasDM if: matrix.config.name == 'GCC-Release-OMP-MultiSite' run: | - python3 AutoPasDM/examples/md-flexible/scripts/run_md_flexible_comparison.py \ + python3 AutoPasDM/examples/md-flexible/tests/scripts/run_md_flexible_comparison.py \ --reference AutoPas/build-reference-multisite/examples/md-flexible/md-flexible \ --distributed AutoPasDM/build-ci/examples/md-flexible/md-flexible \ - --config AutoPasDM/examples/md-flexible/input/autopasdm_multisite_compare.yaml \ + --config AutoPasDM/examples/md-flexible/tests/yamlTestFiles/autopasdm_multisite_compare.yaml \ --ranks 8 - name: Run full CTest suite