26 lines
927 B
Batchfile
26 lines
927 B
Batchfile
@echo off
|
|
rem FemLite ball adhesion smoke and cohesive decohesion benchmark runner.
|
|
setlocal
|
|
set "CASE_DIR=%~dp0"
|
|
for %%I in ("%CASE_DIR%..\..") do set "ROOT_DIR=%%~fI"
|
|
set "BUILD_DIR=%ROOT_DIR%\build-win-gcc-16"
|
|
|
|
call "%CASE_DIR%..\run_example_case.bat" "%CASE_DIR%" "ball_adhesion_decohesion" "--run" "ball_adhesion_contact_smoke.inp" "10"
|
|
if errorlevel 1 exit /b %errorlevel%
|
|
|
|
set "TOOL=%BUILD_DIR%\ball_adhesion_cohesive_benchmark.exe"
|
|
set "INP=%CASE_DIR%ball_adhesion_cohesive_benchmark.inp"
|
|
set "OUT_DIR=%CASE_DIR%results\cohesive"
|
|
if not exist "%OUT_DIR%" mkdir "%OUT_DIR%"
|
|
del /Q "%OUT_DIR%\adhesion_*.csv" 2>nul
|
|
del /Q "%OUT_DIR%\decohesion_profile.csv" 2>nul
|
|
|
|
if not exist "%TOOL%" (
|
|
echo Building ball_adhesion_cohesive_benchmark...
|
|
cmake --build "%BUILD_DIR%" --config Release --target ball_adhesion_cohesive_benchmark
|
|
if errorlevel 1 exit /b %errorlevel%
|
|
)
|
|
|
|
"%TOOL%" "%INP%" "%OUT_DIR%"
|
|
exit /b %errorlevel%
|