Skip to content

Commit df5424f

Browse files
fangjianfangjian
authored andcommitted
a bit modification on lid driven cavity
1 parent 7a62b7a commit df5424f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

examples/Lid-Driven-Cavity/user_define_module/userdefine_ldcavity.F90

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,12 @@ subroutine udf_stalist
239239
R_T =pmax(R_T )/pmax(A_T )
240240
R_p =pmax(R_p )/pmax(A_p )
241241

242+
if(isnan(R_rho)) R_rho=0.d0
243+
if(isnan(R_u)) R_u =0.d0
244+
if(isnan(R_v)) R_v =0.d0
245+
if(isnan(R_T)) R_T =0.d0
246+
if(isnan(R_p)) R_p =0.d0
247+
242248
data_save(0:im,0:jm,1)=rho(0:im,0:jm,0)
243249
data_save(0:im,0:jm,2)=vel(0:im,0:jm,0,1)
244250
data_save(0:im,0:jm,3)=vel(0:im,0:jm,0,2)

0 commit comments

Comments
 (0)