Skip to content

Commit d0b04d0

Browse files
authoredApr 9, 2024··
Merge pull request #1865 from gforney/master
add some slice average keyword documentation, remove some debug print
2 parents ae9aabb + 791e5bb commit d0b04d0

File tree

4 files changed

+30
-5
lines changed

4 files changed

+30
-5
lines changed
 

‎Manuals/SMV_User_Guide/SMV_User_Guide.tex

+27-1
Original file line numberDiff line numberDiff line change
@@ -1167,7 +1167,7 @@ \subsection{Axis aligned slices}
11671167
&SLCF PBY=1.50,QUANTITY='TEMPERATURE',VECTOR=.TRUE. /
11681168
\end{lstlisting}
11691169

1170-
When adjacent grids have different resolutions, vector slices may be displayed uniformly
1170+
When adjacent grids have different resolutions, vector slices may be displayed uniformly
11711171
by selecting the {\em uniform spacing}\ checkbox in the Slice file settings dialog box.
11721172
This is illustrated in Figure \ref{figvsliceuniformx}.
11731173

@@ -3962,6 +3962,32 @@ \subsubsection{Slice and Vector Slice Files}
39623962
mesh number (int)
39633963
\end{lstlisting}
39643964
3965+
%%+++++++++++++++++++++++
3966+
\hitemssf{OUTPUTSLICEDATA}
3967+
Use {\tt OUTPUTSLICEDATA}\ to output slice data to a spread
3968+
sheet file whenever the `r' key is pressed to render an image.
3969+
Usage:
3970+
\begin{lstlisting}
3971+
OUTPUTSLICEDATA
3972+
flag (int)
3973+
\end{lstlisting}
3974+
3975+
where flag is 1 to turn on slice data output and 0 to turn it off.
3976+
3977+
%%+++++++++++++++++++++++
3978+
\hitemssf{SETSLICEAVERAGE}
3979+
Use {\tt SETSLICEAVERAGE}\ to average slice data when loading.
3980+
{\tt SETSLICEAVERAGE}\ must be used before a slice
3981+
file is loaded. Usage:
3982+
\begin{lstlisting}
3983+
SETSLICEAVERAGE
3984+
flag (int) interval (float)
3985+
\end{lstlisting}
3986+
3987+
where flag is 1 to turn slice averaging on and 0 to turn it off.
3988+
The parmameter interval is specified the time interval used
3989+
to perform the average.
3990+
39653991
%%+++++++++++++++++++++++
39663992
\hitemssf{SETSLICEBOUNDS}
39673993
Use {\tt SETSLICEBOUNDS}\ to set minimum and maximum bounds for slice files.

‎Manuals/SMV_Verification_Guide/SMV_Verification_Guide.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ \section{Slices}
700700
&&&\raisebox{0.5in}[0pt]{\includegraphics[height=7.5in]{\SMVfigdir/colorbar_20_620}}\\
701701
\end{tabular}
702702
\end{center}
703-
\caption[A test showing regular and averaged slice file data]{A test showing regular and averaged slice file data}
703+
\caption[A test showing regular and averaged slice file data]{A test showing regular slice file images and slice file images averaged over a 5~s time interval.}
704704
\label{figsliceaveragetest}%
705705
\end{figure}
706706

‎Source/smokeview/IOscript.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ void InitKeywords(void){
290290
InitKeyword("LOADVSLICE", SCRIPT_LOADVSLICE, 2); // documented
291291
InitKeyword("LOADVSLICEM", SCRIPT_LOADVSLICEM, 3); // documented
292292
InitKeyword("SETSLICEBOUNDS", SCRIPT_SETSLICEBOUNDS, 1); // documented
293-
InitKeyword("SETSLICEAVERAGE", SCRIPT_SETSLICEAVERAGE, 2);
294-
InitKeyword("OUTPUTSLICEDATA", SCRIPT_OUTPUTSLICEDATA, 2);
293+
InitKeyword("SETSLICEAVERAGE", SCRIPT_SETSLICEAVERAGE, 2); // documented
294+
InitKeyword("OUTPUTSLICEDATA", SCRIPT_OUTPUTSLICEDATA, 1); // documented
295295

296296
// particle files
297297
InitKeyword("LOADPARTICLES", SCRIPT_LOADPARTICLES, 0); // documented

‎Source/smokeview/update.c

-1
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,6 @@ void SynchTimes(void){
768768
parti=partinfo+j;
769769
if(parti->loaded==0)continue;
770770
parti->timeslist[n] = GetDataTimeFrame(global_times[n], parti->times_map, parti->times,parti->ntimes);
771-
if(j==0)printf("%i part time=%f\n", parti->timeslist[n], parti->times[parti->timeslist[n]]);
772771
}
773772

774773
/* synchronize shooter times */

0 commit comments

Comments
 (0)
Please sign in to comment.