Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions Source/smokeview/IOgeometry.c
Original file line number Diff line number Diff line change
Expand Up @@ -2483,7 +2483,7 @@ FILE_SIZE ReadGeomData(patchdata *patchi, slicedata *slicei, int load_flag, int
}

if(FileExistsOrig(patchi->bound_file)==0){
float *vals, valmin, valmax;
float *vals, valmin=0.0, valmax=1.0;

vals = patchi->geom_vals;
if(strcmp(patchi->label.shortlabel, "t_a") == 0){
Expand All @@ -2503,11 +2503,13 @@ FILE_SIZE ReadGeomData(patchdata *patchi, slicedata *slicei, int load_flag, int
}
}
else{
valmin = vals[0];
valmax = valmin;
for(i = 1;i < nvals;i++){
valmin = MIN(vals[i], valmin);
valmax = MAX(vals[i], valmax);
if(nvals > 0){
valmin = vals[0];
valmax = valmin;
for(i = 1; i < nvals; i++){
valmin = MIN(vals[i], valmin);
valmax = MAX(vals[i], valmax);
}
}
}
WriteFileBounds(patchi->bound_file, valmin, valmax);
Expand Down
11 changes: 11 additions & 0 deletions Verification/scripts/CheckFDSCases.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@echo off
setlocal

set CURDIR=%CD%
cd ..\..\..
set GITROOT=%CD%

cd %CURDIR%
call FDSCases check fds

cd %CURDIR%
11 changes: 11 additions & 0 deletions Verification/scripts/CheckSmvCases.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@echo off
setlocal

set CURDIR=%CD%
cd ..\..\..
set GITROOT=%CD%

cd %CURDIR%
call SMVCases check smv

cd %CURDIR%
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@ set exe=%1
set option=%2
setlocal

set allfinished=1

cd ..\..\..\fds\Verification
set verdir=%CD%

cd ..\..\smv\Verification
set smvverdir=%CD%
cd scripts\bin
set GREP=%CD%\grep.exe
set WC=%CD%\wc.exe

cd %verdir%

Expand Down Expand Up @@ -72,7 +77,7 @@ set run=call :runit %exe% %option%
%run% WUI Bova_1b
%run% WUI Bova_4a
%run% WUI level_set_fuel_model_1

if %exe% == check if %allfinished% == 1 echo all cases finished
goto eof

:runit
Expand All @@ -82,8 +87,21 @@ goto eof
set input=%4

cd %verdir%\%casedir%

set finished=0
if exist %input%.out %GREP% -E only^|success %input%.out | %WC% -l > %input%.wc
set /p finished=<%input%.wc
if %finished% == 1 if x%runallcases% == x0 if %option% == fds exit /b

if %prog% == check goto skip1

if %option% == fds timeout /t 2 /nobreak & start "%input%" cmd /c "%smvverdir%\scripts\background.bat %prog% %input%.fds"
if %option% == smv %prog% -runscript %input%
exit /b

:eof
:skip1
if %finished% == 0 echo %input% did not finish
if %finished% == 0 set allfinished=0
exit /b

:eof
2 changes: 1 addition & 1 deletion Verification/scripts/MakeFDSPictures.bat
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ if exist %SMVEXE% goto skip1
::erase %GITROOT%\smv\Manuals\SMV_Verification_Guide\SCRIPT_FIGURES\*.png

cd %CURDIR%
call FDS_Cases %SMVEXE% smv
call FDSCases %SMVEXE% smv
cd %CURDIR%
2 changes: 1 addition & 1 deletion Verification/scripts/MakeSmvPictures.bat
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ erase %GITROOT%\smv\Manuals\SMV_User_Guide\SCRIPT_FIGURES\*.png
erase %GITROOT%\smv\Manuals\SMV_Verification_Guide\SCRIPT_FIGURES\*.png

cd %CURDIR%
call SMV_Cases %SMVEXE% smv
call SMVCases %SMVEXE% smv
copy %GITROOT%\smv\Manuals\SMV_Verification_Guide\SCRIPT_FIGURES\fds_smv_version.png %GITROOT%\smv\Manuals\SMV_Summary\images
cd %CURDIR%
3 changes: 2 additions & 1 deletion Verification/scripts/RunFDSCases.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@echo off
set runallcases=%1
setlocal

set CURDIR=%CD%
Expand All @@ -15,7 +16,7 @@ if exist %FDSEXE% goto skip1

call fdsinit > Nul 2>&1
cd %CURDIR%
call FDS_Cases %FDSEXE% fds
call FDSCases %FDSEXE% fds %runallcases%

cd %GITROOT%\fds
git describe > %CURDIR%\fds_revision.txt
Expand Down
Empty file.
3 changes: 2 additions & 1 deletion Verification/scripts/RunSmvCases.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@echo off
set runallcases=%1
setlocal

set CURDIR=%CD%
Expand All @@ -15,7 +16,7 @@ if exist %FDSEXE% goto skip1

call fdsinit > Nul 2>&1
cd %CURDIR%
call SMV_Cases %FDSEXE% fds
call SMVCases %FDSEXE% fds %runallcases%

cd %GITROOT%\fds
git describe > %CURDIR%\fds_revision.txt
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@
@echo off
set exe=%1
set option=%2
set runallcases=%3
setlocal

set allfinished=1
cd ..
set verdir=%CD%
cd scripts\bin
set GREP=%CD%\grep.exe
set WC=%CD%\wc.exe
cd %verdir%

set run=call :runit %exe% %option%

Expand Down Expand Up @@ -53,7 +59,7 @@ set run=call :runit %exe% %option%
%run% Visualization vcirctest
%run% Visualization version
%run% Visualization version2

if %exe% == check if %allfinished% == 1 echo all cases finished
goto eof

:runit
Expand All @@ -63,8 +69,21 @@ goto eof
set input=%4

cd %verdir%\%casedir%

set finished=0
if exist %input%.out %GREP% -E only^|success %input%.out | %WC% -l > %input%.wc
set /p finished=<%input%.wc
if %finished% == 1 if x%runallcases% == x0 if %option% == fds exit /b

if %prog% == check goto skip1

if %option% == fds timeout /t 2 /nobreak & start "%input%" cmd /c "%verdir%\scripts\background.bat %prog% %input%.fds"
if %option% == smv %prog% -runscript %input%
exit /b

:skip1
if %finished% == 0 echo %input% did not finish
if %finished% == 0 set allfinished=0
exit /b

:eof
Loading