24 lines
820 B
Batchfile
24 lines
820 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
call "%~dp0..\run_example_case.bat" "%~dp0" "strengthReduction" "--static-linear" "strength_reduction_slope_static.inp" "1"
|
|
if errorlevel 1 exit /b %errorlevel%
|
|
|
|
set "ROOT_DIR=%~dp0..\.."
|
|
set "OUT_DIR=%~dp0results\auto_run"
|
|
set "TOOL=%ROOT_DIR%\build-win-gcc-16\strength_reduction_benchmark.exe"
|
|
|
|
if not exist "%TOOL%" (
|
|
echo Building strength_reduction_benchmark...
|
|
cmake --build "%ROOT_DIR%\build-win-gcc-16" --config Release --target strength_reduction_benchmark
|
|
if errorlevel 1 exit /b %errorlevel%
|
|
)
|
|
|
|
del /Q "%OUT_DIR%\strength_reduction_history.csv" 2>nul
|
|
del /Q "%OUT_DIR%\strength_reduction_summary.csv" 2>nul
|
|
del /Q "%OUT_DIR%\plastic_zone.csv" 2>nul
|
|
del /Q "%OUT_DIR%\displacement_probe.csv" 2>nul
|
|
|
|
"%TOOL%" "%~dp0strength_reduction_slope_static.inp" "%OUT_DIR%"
|
|
exit /b %errorlevel%
|