[Trilinos-Users] Belos/Eptra: Seeding RNG

Thornquist, Heidi K hkthorn at sandia.gov
Mon Mar 30 10:29:56 MDT 2015


Ok, I'm at a loss.  My best guess is that I copied it from somewhere a long time ago and it replicated like a tribble in my examples and tests.
No, I don't see what purposes it serves, and I will remove it from the examples and tests promptly.

Thanks,
Heidi

--

Heidi K. Thornquist
Electrical Models & Simulation
Sandia National Laboratories
Albuquerque, NM  87185-1323


From: <Heroux>, Michael A <maherou at sandia.gov<mailto:maherou at sandia.gov>>
Date: Sunday, March 29, 2015 12:20 PM
To: Nico Schlömer <nico.schloemer at gmail.com<mailto:nico.schloemer at gmail.com>>, "trilinos-users at software.sandia.gov<mailto:trilinos-users at software.sandia.gov>" <trilinos-users at software.sandia.gov<mailto:trilinos-users at software.sandia.gov>>
Subject: Re: [Trilinos-Users] Belos/Eptra: Seeding RNG

I can find this sequence in about 20 Belos example and test drivers.  I don't see that the "X->Seed()" statement is effective, since it simply returns the value of the current seed, but the seed is not changed, nor is it used.

It appears that Heidi Thornquist wrote some or all of the code.  Perhaps she can recall its purpose.

Thanks.

Mike

From: Nico Schlömer <nico.schloemer at gmail.com<mailto:nico.schloemer at gmail.com>>
Date: Saturday, March 28, 2015 at 10:16 AM
To: "trilinos-users at software.sandia.gov<mailto:trilinos-users at software.sandia.gov>" <trilinos-users at software.sandia.gov<mailto:trilinos-users at software.sandia.gov>>
Subject: [Trilinos-Users] Belos/Eptra: Seeding RNG

I find
```
X->Seed();
X->Random();
```
in Belos a couple of times, probably intending to seed the random number.
When looking at the code, however, I find that the seed only returns a variable rather than actually seeding the RNG.

How is this supposed to be used correctly?

Cheers,
Nico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://software.sandia.gov/pipermail/trilinos-users/attachments/20150330/341c9773/attachment.html>


More information about the Trilinos-Users mailing list