Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
134e25d
smokeview source: update blanking data structures in the background (…
gforney Mar 26, 2026
364d9f8
smokeview source: add pp_SPEEDUP directive
gforney Mar 26, 2026
73bded8
smokeview source: add timing code for smoke drawing
gforney Mar 26, 2026
0753a64
smokeview source: compute/save max for all 3D smoke components
gforney Mar 26, 2026
4441824
smokeview source: fix problem when pressing '0' to reset time
gforney Mar 27, 2026
6363930
Merge remote-tracking branch 'origin/master' into settime
gforney Mar 27, 2026
1edd25c
smokeview source: add 3D smoke files when checking time bounds
gforney Mar 27, 2026
ec13be7
smokeview source: add gui widget for setting time frame
gforney Mar 27, 2026
01d14df
smokeview source: allow a 1X resolution multiplier and let that be th…
gforney Mar 27, 2026
5523de1
smokeview source: eliminate duplicate rendering of frame 0
gforney Mar 27, 2026
7926364
smokeview source: fix check for last rendering frame
gforney Mar 27, 2026
04d1599
smokeview source: remove check if last 3D smoke frame is current than…
gforney Mar 27, 2026
cd931ba
smokeview source: split out uncompress porition of 3d smoke merge rou…
gforney Mar 28, 2026
f41ba1b
smokeview source: merge and uncompress 3d smoke in parallel
gforney Mar 28, 2026
238651d
Merge remote-tracking branch 'firemodels/master' into settime
gforney Mar 28, 2026
922f879
Merge remote-tracking branch 'firemodels/master' into speedup
gforney Mar 28, 2026
dcea341
smokeview source: improve smoke/fire display
gforney Mar 29, 2026
91bbae1
smokeview source: resolve conflict
gforney Mar 29, 2026
4471988
smokeview source: change itimes -> iglobal_times to be consiste t wit…
gforney Mar 30, 2026
1683fa3
smokeview source: change global_times[iglobal_times} to GetTime()
gforney Mar 30, 2026
62104ad
smokeview source: SetFrameVal -> SetFrameIndex
gforney Mar 30, 2026
ad9e172
smokeview source: always generate blanking data structures but do it …
gforney Mar 30, 2026
7a06539
smokeview source: turn off multi threading for merging/uncompressing …
gforney Mar 30, 2026
b4aa257
smokeview source: turn off menu update when a key is pressed
gforney Mar 30, 2026
574a748
smokeview source: modify merge smoke3d routines assuming only called …
gforney Mar 31, 2026
4280b3c
smokeview source: add some test code to 3d smoke vis routine (commented)
gforney Mar 31, 2026
0944716
Merge remote-tracking branch 'origin/master' into speedup
gforney Mar 31, 2026
2620a3d
Merge remote-tracking branch 'firemodels/master' into speedup
gforney Mar 31, 2026
1b4e178
smokeview source: add option to show mesh 3d smoke is in (and hide sm…
gforney Mar 31, 2026
9dd1ddd
smokeview source: correct frame update when time view min/max bounds …
gforney Apr 1, 2026
72eebb0
smokeview source: dont' change time state when setting labels
gforney Apr 1, 2026
a40b672
smokeview source: update time gui widgets when time val and time fram…
gforney Apr 1, 2026
c21dc61
resolve conflict
gforney Apr 1, 2026
ea43f34
Merge remote-tracking branch 'firemodels/master' into speedup
gforney Apr 1, 2026
ce08c9c
Merge remote-tracking branch 'firemodels/master' into speedup
gforney Apr 1, 2026
24e64cf
smokezip source: add option to compress 3d smokeview after skipping s…
gforney Apr 2, 2026
0b7e71c
smokeview source: fix problem reading compressed boundary files
gforney Apr 2, 2026
8fa17f1
smokeview source: revert some load density 3d smoke code
gforney Apr 2, 2026
6b5dd6b
Merge remote-tracking branch 'firemodels/master' into speedup
gforney Apr 2, 2026
bb7df43
Merge remote-tracking branch 'firemodels/master' into speedup
gforney Apr 2, 2026
c11dc6e
smokeview source: 3D smoke file loading if opacity 3d smoke file is m…
gforney Apr 3, 2026
daaf43b
smokeview source: remove widgets for specifying 3d smoke file type
gforney Apr 4, 2026
9dcd4f1
smokeview source: remove some variable related to soot density files
gforney Apr 4, 2026
2229248
smokeviews source: call SetTimeFrameIndexWorker twice per time step
gforney Apr 4, 2026
9a24183
smokeview source: when drawing smoke/fire meshes also draw smoke/fire
gforney Apr 4, 2026
20de77b
smokeview source: only call SetTimeFrameIndexWorker once per time step
gforney Apr 5, 2026
8062616
smokeview source/bundle: remove FDEPTH and FIREDEPTH from smokeview.i…
gforney Apr 5, 2026
4663a46
smokeview source: minor edit - add a comment
gforney Apr 5, 2026
5366b1d
smokeview source: corrections when regular soot file is replaced by s…
gforney Apr 5, 2026
960ee64
smokeview source: remove an unused version parameter from 3d smoke code
gforney Apr 5, 2026
9792f72
Merge branch 'sdensity' into speedup
gforney Apr 5, 2026
b4c025c
smokeview source: add checkbox for applying smoke skips to drawing grids
gforney Apr 6, 2026
66b5914
smokeview source: add some timers
gforney Apr 6, 2026
2843799
smokeview source: minor edit - add a line feed after timer output in …
gforney Apr 6, 2026
d657dfe
smokeview source: change smoke plane skip widgets to horizontal, vert…
gforney Apr 6, 2026
bfaaafc
smokeview source: change ini keyword FDEPTH to FDEPTH2 (so update fir…
gforney Apr 6, 2026
4321593
smokeview source: output 3d smoke triangle info when -timings option …
gforney Apr 6, 2026
90d0230
smokeview source: remove an unused variable
gforney Apr 6, 2026
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
4 changes: 0 additions & 4 deletions Build/for_bundle/smokeview.ini
Original file line number Diff line number Diff line change
Expand Up @@ -432,10 +432,6 @@ EXTREMECOLORS
191 191 191 0 0 0
FIRECOLOR
255 128 0
FIREDEPTH
0.300000 10.000000 3.000000 0 0
FDEPTH
0.300000 10.000000 3.000000 0 0
HRRPUVCUTOFF
200.000000 1200.000000 0 255
SHOWEXTREMEDATA
Expand Down
4 changes: 4 additions & 0 deletions Source/shared/options_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@
#define PRINT_TIMER(timer, label) PrintTime(__FILE__, __LINE__, &timer, label, 1)
#endif

#ifndef PRINT_TIMER_LF
#define PRINT_TIMER_LF(timer) if(show_timings==1 && timer>0.1)printf("\n")
#endif

#ifndef PRINT_CUM_TIMER
#define PRINT_CUM_TIMER(timer, label) PrintTime(__FILE__, __LINE__, &timer, label, 0)
#endif
Expand Down
1 change: 0 additions & 1 deletion Source/shared/readsmoke.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ void FreeSmoke3D(smv_case *scase, smoke3ddata *smoke3di){
meshi = scase->meshescoll.meshinfo + smoke3di->blocknumber;
FREEMEMORY(meshi->is_firenode);
meshi->is_firenodeptr = NULL;
smoke3di->lastiframe = -999;
float ext;
char *label;

Expand Down
6 changes: 3 additions & 3 deletions Source/shared/readsmvfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -3704,8 +3704,7 @@ int ParseSMOKE3DProcess(smv_case *scase, bufferstreamdata *stream, char *buffer,
smoke3di->ntimes_old = 0;
smoke3di->filetype = filetype;
smoke3di->is_zlib = 0;
smoke3di->is_smoke_density = 0;
smoke3di->soot_density_loaded = 0;
smoke3di->soot_loaded = 0;
smoke3di->seq_id = nn_smoke3d;
smoke3di->autoload = 0;
smoke3di->compression_type = COMPRESSED_UNKNOWN;
Expand Down Expand Up @@ -3737,7 +3736,6 @@ int ParseSMOKE3DProcess(smv_case *scase, bufferstreamdata *stream, char *buffer,
smoke3di->is_fire = 0;
smoke3di->file_size = 0;
smoke3di->blocknumber = blocknumber;
smoke3di->lastiframe = -999;
smoke3di->ismoke3d_time = 0;
STRCPY(buffer2, bufferptr);
STRCAT(buffer2, ".svz");
Expand All @@ -3753,6 +3751,7 @@ int ParseSMOKE3DProcess(smv_case *scase, bufferstreamdata *stream, char *buffer,
}
else{
smoke3di->file = smoke3di->reg_file;
smoke3di->compression_type = COMPRESSED_RLE;
}
#ifdef pp_SMOKE3D_FORCE
if(strcmp(smoke3di->file, "dummy.xyz") == 0){
Expand All @@ -3775,6 +3774,7 @@ int ParseSMOKE3DProcess(smv_case *scase, bufferstreamdata *stream, char *buffer,
if(ReadLabels(&smoke3di->label, stream, NULL)==LABEL_ERR)return RETURN_TWO;
if(strcmp(smoke3di->label.longlabel, "SOOT DENSITY") == 0){
smoke3di->is_smoke = 1;
smoke3di->reg_file = smoke3di->smoke_density_file;
}
if(strcmp(smoke3di->label.longlabel, "HRRPUV")==0){
scase->show_hrrcutoff_active = 1;
Expand Down
6 changes: 3 additions & 3 deletions Source/shared/shared_structures.h
Original file line number Diff line number Diff line change
Expand Up @@ -1423,8 +1423,8 @@ typedef struct _smoke3ddata {
int is_smoke, is_fire;
int loaded, request_load, finalize, display, primary_file;
int is_zlib;
int is_smoke_density;
int soot_density_loaded;

int soot_loaded;
smokestatedata *smokestate;
int blocknumber;
int type;
Expand All @@ -1450,7 +1450,7 @@ typedef struct _smoke3ddata {
int fire_alpha, co2_alpha;
float fire_alphas[256], co2_alphas[256];
int *timeslist;
int ntimes, ntimes_old, ismoke3d_time, lastiframe, ntimes_full;
int ntimes, ntimes_old, ismoke3d_time, ntimes_full;
int nchars_uncompressed;

int ncomp_smoke_total;
Expand Down
11 changes: 11 additions & 0 deletions Source/shared/threader.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,17 @@ void THREADruni(threaderdata *thi, unsigned char *datainfo, int sizedatai){
#endif
}

/* ------------------ THREADrunloop ------------------------ */

void THREADrunloop(threaderdata *thi){
int i, thread_ids[MAX_THREADS];

for(i = 0;i < MAX_THREADS;i++){
thread_ids[i] = i;
}
THREADruni(thi, (unsigned char *)thread_ids, sizeof(int));
}

/* ------------------ THREADrun ------------------------ */

void THREADrun(threaderdata *thi){
Expand Down
3 changes: 2 additions & 1 deletion Source/shared/threader.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ typedef struct _threaderdata{

EXTERNCPP void THREADcontrol(threaderdata *thi, int var);
EXTERNCPP void THREADrun(threaderdata *thi);
EXTERNCPP void THREADruni(threaderdata *thi, unsigned char *datainfo, int sizedatai);
EXTERNCPP void THREADrunloop(threaderdata *thi);
EXTERNCPP void THREADruni(threaderdata * thi, unsigned char *datainfo, int sizedatai);
EXTERNCPP threaderdata *THREADinit(int *nthreads_arg, int *threading_on_arg, void *(*run_arg)(void *arg));

//*** threader controls
Expand Down
Loading
Loading