Complete V5 acceptance milestone

This commit is contained in:
shenw
2026-06-26 12:54:40 +08:00
parent 26639d8dc2
commit a01a4fda24
105 changed files with 8694 additions and 8922 deletions
+52
View File
@@ -0,0 +1,52 @@
@echo off
setlocal
set "CASE_DIR=%~dp0"
set "ROOT_DIR=%CASE_DIR%..\.."
set "EXE=%ROOT_DIR%\build-win-gcc-16\femlite.exe"
set "PYTHON=%ROOT_DIR%\Python\.venv\Scripts\python.exe"
set "INP=%CASE_DIR%shell_shell_contact.inp"
set "OUT_DIR=%CASE_DIR%results\auto_run"
echo FemLite shell_shell_contact
echo.
if not exist "%EXE%" (
echo femlite.exe was not found. Trying to build build-win-gcc-16...
cmake --build "%ROOT_DIR%\build-win-gcc-16" --config Release
if errorlevel 1 goto fail
)
if not exist "%OUT_DIR%" mkdir "%OUT_DIR%"
del /Q "%OUT_DIR%\history.csv" 2>nul
del /Q "%OUT_DIR%\nodes_*.csv" 2>nul
del /Q "%OUT_DIR%\elements_*.csv" 2>nul
del /Q "%OUT_DIR%\reactions_*.csv" 2>nul
del /Q "%OUT_DIR%\contact_*.csv" 2>nul
del /Q "%OUT_DIR%\result_*.vtk" 2>nul
del /Q "%OUT_DIR%\shell_shell_contact_profile.csv" 2>nul
echo Running FemLite...
"%EXE%" "%INP%" --output-dir "%OUT_DIR%" --output-interval 1 --run
if errorlevel 1 goto fail
if exist "%PYTHON%" (
echo.
echo Checking results...
"%PYTHON%" "%CASE_DIR%check_contact_results.py" "%OUT_DIR%"
if errorlevel 1 goto fail
) else (
echo.
echo Python virtual environment not found; skipping result checker.
)
echo.
echo Case completed successfully.
if not "%FEMLITE_NO_PAUSE%"=="1" pause
exit /b 0
:fail
echo.
echo Case failed.
if not "%FEMLITE_NO_PAUSE%"=="1" pause
exit /b 1