Commit 93541f92 authored by kraus's avatar kraus

Merge branch '582-ebdump-for-3ddynamic-field-maps-not-working-if-in-subdirectory' into 'master'

Resolve "EBDUMP for 3DDynamic field maps not working if in subdirectory"

Closes #582

See merge request !411
parents c70a03a3 4dfe9950
......@@ -740,10 +740,10 @@ void Fieldmap::write3DField(unsigned int nx,
if (Ippl::myNode() != 0 ||
(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({
OpalData::getInstance()->getAuxiliaryOutputDirectory(),
Filename_m.substr(0,extensionStart) + ".vtk"
p.stem().string() + ".vtk"
});
std::ofstream of;
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