Commit 4dfe9950 authored by kraus's avatar kraus

strip path of filename in method write3DField.

parent c70a03a3
...@@ -740,10 +740,10 @@ void Fieldmap::write3DField(unsigned int nx, ...@@ -740,10 +740,10 @@ void Fieldmap::write3DField(unsigned int nx,
if (Ippl::myNode() != 0 || if (Ippl::myNode() != 0 ||
(ef.size() != numpoints && bf.size() != numpoints)) return; (ef.size() != numpoints && bf.size() != numpoints)) return;
size_t extensionStart = Filename_m.find_last_of('.'); boost::filesystem::path p(Filename_m);
std::string fname = Util::combineFilePath({ std::string fname = Util::combineFilePath({
OpalData::getInstance()->getAuxiliaryOutputDirectory(), OpalData::getInstance()->getAuxiliaryOutputDirectory(),
Filename_m.substr(0,extensionStart) + ".vtk" p.stem().string() + ".vtk"
}); });
std::ofstream of; std::ofstream of;
of.open (fname); of.open (fname);
......
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