Skip to content
Snippets Groups Projects
Commit da3ec23f authored by Dave Moxey's avatar Dave Moxey
Browse files

Merge branch 'fix/LinearisedAdvection-filename' into 'master'

Fix/linearised advection filename

See merge request nektar/nektar!1479
parents c77f0c3e 1c058c17
No related branches found
No related tags found
No related merge requests found
......@@ -66,6 +66,7 @@ v5.3.0
- Replaced depricated "sprintf" with "std::to_string" (!1406)
- Extended Reynolds Stresses filter to passive scalars (!1430)
- Fixed Taylor-Hood expansion for VCSWeakPressure (!1444)
- Fix filename in LinearisedAdvection (!1479)
**VortexWaveInteractionSolver**
- Replaced depricated "sprintf" with "std::to_string" (!1406)
......
......@@ -34,6 +34,7 @@
#include <IncNavierStokesSolver/AdvectionTerms/LinearisedAdvection.h>
#include <StdRegions/StdSegExp.h>
#include <boost/format.hpp>
using namespace std;
......@@ -691,10 +692,12 @@ void LinearisedAdvection::DFT(
size_t nstart = m_start;
for (size_t i = nstart; i < nstart + m_slices * m_skip; i += m_skip)
{
ImportFldBase(file + std::to_string(i), pFields, (i - nstart) / m_skip);
boost::format filename(file);
filename % i;
ImportFldBase(filename.str(), pFields, (i - nstart) / m_skip);
if (m_session->GetComm()->GetRank() == 0)
{
cout << "read base flow file " << file + std::to_string(i) << endl;
cout << "read base flow file " << filename.str() << endl;
}
}
if (!m_isperiodic)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment