Skip to content

Commit

Permalink
Use NINT to compare with integer and let hopr build the meshes for th…
Browse files Browse the repository at this point in the history
…e DSMC_QualityFactors reggies
  • Loading branch information
pnizenkov committed Feb 13, 2024
1 parent c591b59 commit ceac36c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
Binary file not shown.
6 changes: 6 additions & 0 deletions regressioncheck/CHE_DSMC/DSMC_QualityFactors/externals.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
! --- Externals Tool Reggie
MPI = 1
externalbinary = ./hopr/build/bin/hopr
externaldirectory = hopr.ini
externalruntime = pre
cmd_suffix =
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
! --- Externals Tool Reggie
MPI = 1
externalbinary = ./hopr/build/bin/hopr
externaldirectory = hopr.ini
externalruntime = pre
cmd_suffix =
2 changes: 1 addition & 1 deletion src/particles/dsmc/dsmc_init.f90
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,7 @@ SUBROUTINE InitDSMC()
DSMC%UseOctree = GETLOGICAL('Particles-DSMC-UseOctree')
IF(DSMC%ReservoirSimu.AND.DSMC%UseOctree) CALL abort(__STAMP__,'Particles-DSMC-UseOctree = T not allowed for RESERVOIR simulations!')
DSMC%UseNearestNeighbour = GETLOGICAL('Particles-DSMC-UseNearestNeighbour')
IF(DSMC%ReservoirSimu.AND.DSMC%UseNearestNeighbour.AND.(DoRestart.OR.((TEnd/ManualTimeStep).GT.1))) THEN
IF(DSMC%ReservoirSimu.AND.DSMC%UseNearestNeighbour.AND.(DoRestart.OR.(NINT(TEnd/ManualTimeStep).GT.1))) THEN
CALL abort(__STAMP__,'Particles-DSMC-UseNearestNeighbour = T not allowed for RESERVOIR simulations, if you simulate more than one time step!')
END IF
IF(DSMC%UseOctree) THEN
Expand Down

0 comments on commit ceac36c

Please sign in to comment.