23 lines
697 B
Batchfile
23 lines
697 B
Batchfile
@echo off
|
|
setlocal
|
|
|
|
echo FemLite Mohr-Coulomb yield surface benchmark
|
|
|
|
set "ROOT_DIR=%~dp0..\.."
|
|
set "OUT_DIR=%~dp0results\auto_run"
|
|
set "TOOL=%ROOT_DIR%\build-win-gcc-16\mc_yield_surface_benchmark.exe"
|
|
set "PYTHON=%ROOT_DIR%\Python\.venv\Scripts\python.exe"
|
|
|
|
if not exist "%TOOL%" (
|
|
echo Building mc_yield_surface_benchmark...
|
|
cmake --build "%ROOT_DIR%\build-win-gcc-16" --config Release --target mc_yield_surface_benchmark
|
|
if errorlevel 1 exit /b %errorlevel%
|
|
)
|
|
|
|
if exist "%PYTHON%" (
|
|
"%PYTHON%" "%~dp0check_mc_yield_surface_results.py" "%ROOT_DIR%" "%TOOL%" "%OUT_DIR%"
|
|
) else (
|
|
python "%~dp0check_mc_yield_surface_results.py" "%ROOT_DIR%" "%TOOL%" "%OUT_DIR%"
|
|
)
|
|
exit /b %errorlevel%
|