Skip to content

Commit

Permalink
Merge remote-tracking branch 'github/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
drjfloyd committed Jan 3, 2025
2 parents 47a29c6 + e5bc376 commit 4c307c1
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Build/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ ompi_intel_linux : setup $(obj_mpi)

#*** GNU Compilers ***

ompi_gnu_linux : FFLAGS = -m64 -O2 -std=f2018 -frecursive -ffpe-summary=none -fall-intrinsics $(GITINFOGNU) $(FFLAGSMKL_GNU_OPENMPI) $(GFORTRAN_OPTIONS) $(FFLAGS_HYPRE) $(FFLAGS_SUNDIALS)
ompi_gnu_linux : FFLAGS = -m64 -O3 -std=f2018 -frecursive -ffpe-summary=none -fall-intrinsics $(GITINFOGNU) $(FFLAGSMKL_GNU_OPENMPI) $(GFORTRAN_OPTIONS) $(FFLAGS_HYPRE) $(FFLAGS_SUNDIALS)
ompi_gnu_linux : LFLAGSMKL = $(LFLAGSMKL_GNU_OPENMPI) $(LFLAGS_HYPRE) $(LFLAGS_SUNDIALS)
ompi_gnu_linux : FCOMPL = $(COMP_FC)
ompi_gnu_linux : FOPENMPFLAGS = -fopenmp
Expand Down
31 changes: 23 additions & 8 deletions Source/dump.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1510,7 +1510,8 @@ SUBROUTINE WRITE_SMOKEVIEW_FILE
USE HVAC_ROUTINES, ONLY: N_DUCT_QUANTITY,N_NODE_QUANTITY, DUCT_QUANTITY_ARRAY,NODE_QUANTITY_ARRAY
USE TRAN, ONLY: TRAN_TYPE,TRANS
USE MISC_FUNCTIONS, ONLY : ACCUMULATE_STRING
INTEGER :: N,NN,I,J,K,NM,NX,NY,NZ,NIN,NXL,NYL,NZL,COLOR_INDEX,IZERO,STATE_INDEX,TYPE_INDEX,HI1,HI2,VI1,VI2,FACE_INDEX,N_CVENT
INTEGER :: N,NN,I,J,K,NM,NX,NY,NZ,NIN,NXL,NYL,NZL,COLOR_INDEX,IZERO,STATE_INDEX,SURF_INDEX,&
TYPE_INDEX,HI1,HI2,VI1,VI2,FACE_INDEX,VRGB(3),N_CVENT
INTEGER, ALLOCATABLE, DIMENSION(:,:,:) :: VENT_INDICES
REAL(EB) :: X1,Y1,Z1,X2,Y2,Z2,XX,YY,ZZ,PERT1(4),PERT2(4),XMIN,YMIN,ZMIN,XA,YA,ZA
TYPE SEGMENT_TYPE
Expand Down Expand Up @@ -2287,8 +2288,11 @@ SUBROUTINE WRITE_SMOKEVIEW_FILE
VT%BOUNDARY_TYPE==PERIODIC_BOUNDARY .OR. &
VT%TYPE_INDICATOR==2) THEN ! Render this vent invisible in Smokeview
WHERE (VENT_INDICES(HI1:HI2,VI1:VI2,FACE_INDEX)==0) VENT_INDICES(HI1:HI2,VI1:VI2,FACE_INDEX) = -1
ELSE ! Vent on a solid wall
ELSE ! Make solid color vents invisible (they will be replaced by dummy vents)
WHERE (VENT_INDICES(HI1:HI2,VI1:VI2,FACE_INDEX)==0) VENT_INDICES(HI1:HI2,VI1:VI2,FACE_INDEX) = N
VT%COLOR_INDICATOR = 8
VT%TYPE_INDICATOR = -2
VT%TRANSPARENCY = 0._EB
ENDIF

ENDDO VENT_LOOP
Expand Down Expand Up @@ -2359,9 +2363,11 @@ SUBROUTINE WRITE_SMOKEVIEW_FILE
ENDDO

DO N=1,M%N_EXTERIOR_PATCH
SURF_INDEX = DEFAULT_SURF_INDEX
EP => M%EXTERIOR_PATCH(N)
IF (EP%VENT_INDEX>0) SURF_INDEX = M%VENTS(EP%VENT_INDEX)%SURF_INDEX
WRITE(MYSTR,'(6F14.5,I6,I4)') M%X(EP%I1),M%X(EP%I2),M%Y(EP%J1),M%Y(EP%J2), &
M%Z(EP%K1),M%Z(EP%K2),M%N_VENT+N,DEFAULT_SURF_INDEX; CALL ADDSTR
M%Z(EP%K1),M%Z(EP%K2),M%N_VENT+N,SURF_INDEX; CALL ADDSTR
ENDDO

DO N=1,M%N_VENT
Expand All @@ -2387,8 +2393,15 @@ SUBROUTINE WRITE_SMOKEVIEW_FILE
DO N=1,M%N_EXTERIOR_PATCH
COLOR_INDEX = 99
TYPE_INDEX = 0
VRGB = -1
EP => M%EXTERIOR_PATCH(N)
WRITE(MYSTR,'(8I5)') EP%I1,EP%I2,EP%J1,EP%J2,EP%K1,EP%K2,COLOR_INDEX,TYPE_INDEX; CALL ADDSTR
IF (EP%VENT_INDEX>0) VRGB = M%VENTS(EP%VENT_INDEX)%RGB
IF (VRGB(1)<0) THEN
WRITE(MYSTR,'(8I5)') EP%I1,EP%I2,EP%J1,EP%J2,EP%K1,EP%K2,COLOR_INDEX,TYPE_INDEX; CALL ADDSTR
ELSE
WRITE(MYSTR,'(8I5,4F13.5)') EP%I1,EP%I2,EP%J1,EP%J2,EP%K1,EP%K2,COLOR_INDEX,TYPE_INDEX, &
REAL(VRGB,FB)/255._FB,1._EB; CALL ADDSTR
ENDIF
ENDDO

! Write out information about circular vents to Smokeview file
Expand Down Expand Up @@ -2461,25 +2474,26 @@ END SUBROUTINE EOL
SUBROUTINE DUMMY_VENTS(FI,N1,N2)

INTEGER, INTENT(IN) :: N1,N2,FI
INTEGER :: I,J,II,JJ,ISTP,JSTP
INTEGER :: I,J,II,JJ,ISTP,JSTP,VENT_INDEX

JLOOP: DO J=1,N2
ILOOP: DO I=1,N1

IF (VENT_INDICES(I,J,FI)/=0) CYCLE ILOOP
IF (VENT_INDICES(I,J,FI)==-1) CYCLE ILOOP
VENT_INDEX = VENT_INDICES(I,J,FI)

ISTP = N1
JSTP = N2
JJLOOP: DO JJ=J+1,N2
IF (VENT_INDICES(I,JJ,FI)/=0) THEN
IF (VENT_INDICES(I,JJ,FI)/=VENT_INDEX) THEN
JSTP = JJ-1
EXIT JJLOOP
ENDIF
ENDDO JJLOOP

IILOOP: DO II=I+1,N1
JJLOOP2: DO JJ=J,JSTP
IF (VENT_INDICES(II,JJ,FI)/=0) THEN
IF (VENT_INDICES(II,JJ,FI)/=VENT_INDEX) THEN
ISTP = II-1
EXIT IILOOP
ENDIF
Expand All @@ -2504,6 +2518,7 @@ SUBROUTINE DUMMY_VENTS(FI,N1,N2)
CASE (6) ; EP%K1=M%KBAR ; EP%K2=M%KBAR ; EP%I1=I-1 ; EP%I2=ISTP ; EP%J1=J-1 ; EP%J2=JSTP ; EP%IOR=-3
EP%KG1=EP%K1 ; EP%KG2=EP%K2 ; EP%IG1=I ; EP%IG2=ISTP; EP%JG1=J ; EP%JG2=JSTP
END SELECT
EP%VENT_INDEX = VENT_INDEX

ENDDO ILOOP
ENDDO JLOOP
Expand Down
2 changes: 1 addition & 1 deletion Source/type.f90
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,7 @@ MODULE TYPES
END TYPE RAD_FILE_TYPE

TYPE PATCH_TYPE
INTEGER :: I1,I2,J1,J2,K1,K2,IG1,IG2,JG1,JG2,KG1,KG2,IOR=0,OBST_INDEX=0,MESH_INDEX=0
INTEGER :: I1,I2,J1,J2,K1,K2,IG1,IG2,JG1,JG2,KG1,KG2,IOR=0,OBST_INDEX=0,VENT_INDEX=0,MESH_INDEX=0
END TYPE PATCH_TYPE

TYPE BOUNDARY_FILE_TYPE
Expand Down
2 changes: 1 addition & 1 deletion Source/wall.f90
Original file line number Diff line number Diff line change
Expand Up @@ -2888,7 +2888,7 @@ SUBROUTINE PERFORM_PYROLYSIS
REAL(EB), DIMENSION(MAX_LPC) :: Q_DOT_PART,M_DOT_PART
INTEGER :: ITER,MAX_ITER
LOGICAL :: REMOVE_LAYER
REAL(EB), PARAMETER :: M_DOT_ERROR_TOL=1.E-6_EB, CHAR_DENSITY_THRESHOLD=5.7_EB ! approx. ASH_DENSITY
REAL(EB), PARAMETER :: M_DOT_ERROR_TOL=1.E-6_EB, CHAR_DENSITY_THRESHOLD=5._EB ! approx. ASH_DENSITY

! Get surface oxygen mass fraction

Expand Down

0 comments on commit 4c307c1

Please sign in to comment.