Commit e390258f authored by Douglas Serson's avatar Douglas Serson
Browse files

Fix seed in CFS

parent f93b295d
......@@ -709,10 +709,13 @@ namespace Nektar
if (Noise > 0.0)
{
int seed = - (m_comm->GetRank() * m_nConvectiveFields);
for (int i = 0; i < m_nConvectiveFields; i++)
{
Vmath::FillWhiteNoise(phystot, Noise, noise, 1,
m_comm->GetColumnComm()->GetRank()+1);
seed);
--seed;
Vmath::Vadd(phystot, m_fields[i]->GetPhys(), 1,
noise, 1, m_fields[i]->UpdatePhys(), 1);
m_fields[i]->FwdTrans_IterPerExp(m_fields[i]->GetPhys(),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment