30 lines
882 B
Batchfile
30 lines
882 B
Batchfile
@echo off
|
|
rem FemLite benchmark runner for the corrugated shell buckling case.
|
|
setlocal
|
|
set "CASE_DIR=%~dp0"
|
|
for %%I in ("%CASE_DIR%..\..") do set "ROOT_DIR=%%~fI"
|
|
set "BUILD_DIR=%ROOT_DIR%\build-win-gcc-16"
|
|
set "TOOL=%BUILD_DIR%\corrugated_shell_buckling_benchmark.exe"
|
|
set "INP=%CASE_DIR%corrugated_shell_buckling_benchmark.inp"
|
|
set "OUT_DIR=%CASE_DIR%results\auto_run"
|
|
|
|
if not exist "%OUT_DIR%" mkdir "%OUT_DIR%"
|
|
del /Q "%OUT_DIR%\corrugated_buckling_*.csv" 2>nul
|
|
|
|
if not exist "%TOOL%" (
|
|
echo Building corrugated_shell_buckling_benchmark...
|
|
cmake --build "%BUILD_DIR%" --config Release --target corrugated_shell_buckling_benchmark
|
|
if errorlevel 1 goto :fail
|
|
)
|
|
|
|
"%TOOL%" "%INP%" "%OUT_DIR%"
|
|
if errorlevel 1 goto :fail
|
|
|
|
echo Corrugated shell buckling benchmark completed.
|
|
echo Results: "%OUT_DIR%"
|
|
exit /b 0
|
|
|
|
:fail
|
|
echo Corrugated shell buckling benchmark failed.
|
|
exit /b 1
|