Skip to content

Commit

Permalink
smokeview source: draw boundary files for removable blockages on mesh…
Browse files Browse the repository at this point in the history
… interfaces for node centered boundary files (use cell centered routine for now)
  • Loading branch information
gforney committed Oct 9, 2024
1 parent fb79abb commit a1725d4
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Source/smokeview/IOboundary.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@

#define FIRST_TIME 1

#define BOUNDARY_CELL_CENTERED 0
#define BOUNDARY_NODE_CENTERED 1

#define IJKBF(i,j) ((i)*ncol+(j))
#define BOUNDCONVERT(index, valmin, valmax) (patchi->compression_type==UNCOMPRESSED ? \
( valmin == valmax ? 0.0 : (patchvals[index]-valmin)/(valmax-valmin) ) : \
Expand Down Expand Up @@ -4195,9 +4198,9 @@ meshdata *GetPatchMeshNabor(meshdata *meshi, int *ib){
return return_mesh;
}

/* ------------------ DrawBoundaryCellCenter ------------------------ */
/* ------------------ DrawBoundaryMeshInterface ------------------------ */

void DrawBoundaryCellCenterMeshInterface(meshdata *meshi){
void DrawBoundaryMeshInterface(meshdata *meshi, int mode){
int n;
int irow, icol;
float *patchvals;
Expand Down Expand Up @@ -4378,11 +4381,14 @@ void DrawBoundaryFrame(int flag){
if(patchi->patch_filetype==PATCH_STRUCTURED_CELL_CENTER){
DrawBoundaryCellCenter(meshi);
if(have_removable_obsts == 1 && nmeshes>1){
DrawBoundaryCellCenterMeshInterface(meshi);
DrawBoundaryMeshInterface(meshi, BOUNDARY_CELL_CENTERED);
}
}
else if(patchi->patch_filetype==PATCH_STRUCTURED_NODE_CENTER){
DrawBoundaryTexture(meshi);
if(have_removable_obsts == 1 && nmeshes > 1){
DrawBoundaryMeshInterface(meshi, BOUNDARY_NODE_CENTERED);
}
}
}
if(vis_threshold==1&&vis_onlythreshold==1&&do_threshold==1)DrawOnlyThreshold(meshi);
Expand Down

0 comments on commit a1725d4

Please sign in to comment.