Commit c64aef1a authored by Dave Moxey's avatar Dave Moxey
Browse files

Fixes for parallel Navier-Stokes output.


git-svn-id: https://gforge.sci.utah.edu/svn/nektar/trunk@3760 305cdda6-5ce1-45b3-a98d-dfc68c8b3305
parent 2d885bc2
......@@ -1146,6 +1146,10 @@ namespace Nektar
void EquationSystem::v_Output(void)
{
std::string outname = m_sessionName + ".fld";
if (m_comm->GetSize() > 1)
{
outname += "." + boost::lexical_cast<std::string>(m_comm->GetRank());
}
WriteFld(outname);
}
......
......@@ -245,9 +245,10 @@ namespace Nektar
m_time += m_timestep;
// Write out current time step
if(m_infosteps && !((n+1)%m_infosteps))
if(m_session->GetComm()->GetRank() == 0
&& !((n+1)%m_infosteps))
{
cout << "Step: " << n+1 << " Time: " << m_time << endl;
cout << "Step: " << n+1 << "\t Time: " << m_time << endl;
}
// Write out energy data to file
......
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