Closed gforney closed 9 years ago
Should we also add the ability to use a pseudo-random seed like the time integer so
that a user can make multiple runs that do not start exactly the same?
Original issue reported on code.google.com by drjfloyd
on 2011-09-29 12:19:01
The evac.f90:
IF (NOT_RANDOM ) WRITE(LU_EVACOUT,FMT='(A)') ' FDS+Evac Random seed is not used.'
CALL RANDOM_SEED(size=size_rnd)
ALLOCATE(seed_rnd(size_rnd),STAT=IZERO)
CALL ChkMemErr('READ_EVAC','seed_rnd',IZERO)
IF (.NOT. NOT_RANDOM) THEN ! Initialize the generator randomly
CALL DATE_AND_TIME(values = t_rnd)
seed_rnd = 31*t_rnd(7) + 29*t_rnd(8)
ELSE
! Do not use a random seed, use a constant seed
seed_rnd = 2819
END IF
CALL RANDOM_SEED(put=seed_rnd)
DEALLOCATE(seed_rnd)
TimoK
Original issue reported on code.google.com by tkorhon1
on 2011-09-30 06:42:52
Timo -- is this still something that is important for you. I have not had a chance to
work on it. I am trying to close out old issues.
Original issue reported on code.google.com by mcgratta
on 2012-05-17 20:35:19
Hi Kevin,
This is not too important to me, because I
can easily make the changes below to the
source code, before I test the evacuation
part (so that: "serial fire" = "serial
fire+evacuation" for the fire output and
"serial fire+evacuation" = "mpi fire+evacuation"
for the fire and evacuation output).
Actually, I have been doing this last months already.
But it is up to you if you would like to add the
following lines to source code or not. So, make the
desicion and then change the status to "WontFix"
or "Fixed".
(Well, the evac.f90 error issue: I should take
the random seed things away and see if I get the
error, I have had the random seed things there when
testing that issue. This should not matter, but you
can not ever be sure.)
========================================
Now comparing init.f90 (< Own, > SVN)
========================================
2829,2830c2829
< INTEGER :: I,J,K,SIZE_RND
< INTEGER, DIMENSION(:), ALLOCATABLE :: SEED_RND
---
> INTEGER :: I,J,K
2836,2842d2834
<
< CALL RANDOM_SEED(SIZE=SIZE_RND)
< ALLOCATE(SEED_RND(SIZE_RND),STAT=IZERO)
< CALL CHKMEMERR('INITIAL_NOISE','SEED_RND',IZERO)
< SEED_RND = 2819 * 13*NM
< CALL RANDOM_SEED(PUT=SEED_RND)
< DEALLOCATE(SEED_RND)
Timo
Original issue reported on code.google.com by tkorhon1
on 2012-05-18 06:55:56
We should not have to change the code to do diagnostics. So I suggest that you make
the change. I assume that this will not affect dramatically the normal operation of
FDS.
Original issue reported on code.google.com by mcgratta
on 2012-05-18 12:31:29
Now it is committed, see the log message "Revision: r10762".
The issue is now Verified, because I (the issue reporter)
have checked it.
Timo
Original issue reported on code.google.com by tkorhon1
on 2012-05-23 07:50:02
Original issue reported on code.google.com by
tkorhon1
on 2011-09-29 10:34:40