Skip to content

Commit

Permalink
smokeview source: disable .sinfo file
Browse files Browse the repository at this point in the history
  • Loading branch information
gforney committed Mar 20, 2024
1 parent b8fad8e commit 54f97e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Source/smokeview/IOslice.c
Original file line number Diff line number Diff line change
Expand Up @@ -3072,8 +3072,9 @@ void GetSliceParams(sliceparmdata *sp){
int error;

int build_cache=0;
FILE *stream;
FILE *stream=NULL;

#ifdef pp_SINFO
if(IfFirstLineBlank(sliceinfo_filename)==1){
build_cache=1;
stream=fopen(sliceinfo_filename,"w");
Expand All @@ -3082,6 +3083,9 @@ void GetSliceParams(sliceparmdata *sp){
build_cache=0;
stream=fopen(sliceinfo_filename,"r");
}
#else
build_cache=1;
#endif

INIT_PRINT_TIMER(timer_getsliceparams1);
for(i=0;i<sp->nsliceinfo;i++){
Expand Down Expand Up @@ -3135,7 +3139,9 @@ void GetSliceParams(sliceparmdata *sp){
nk = ks2+1-ks1;
sd->volslice = volslice;
error = 0;
#ifdef pp_SINFO
if(stream!=NULL&&doit_anyway==0)fprintf(stream,"%i %i %i %i %i %i %i %i %i %i %i\n",sd->seq_id,is1,is2,js1,js2,ks1,ks2,ni,nj,nk,sd->volslice);
#endif
}
}
else if(sd->compression_type!=UNCOMPRESSED){
Expand Down
1 change: 1 addition & 0 deletions Source/smokeview/options.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

//#define pp_SLICE_MENU // make slice menu formation consistent (sort step, build step)
//#define pp_SLICE_MENU_DEBUG // output slice menu infoo to casename_sliceinfo.csv
//#define pp_SINFO // use .sinfo file to cache slice file info

//*** parallel file loading
#define pp_SLICE_MULTI // load slice files in parallel
Expand Down

0 comments on commit 54f97e4

Please sign in to comment.