Skip to content
Snippets Groups Projects
Commit 84af961d authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

errors in fe2; react to allow_overwrite.

parent 37aae5bb
No related branches found
No related tags found
No related merge requests found
...@@ -279,9 +279,9 @@ bool frida_command(string cmd) ...@@ -279,9 +279,9 @@ bool frida_command(string cmd)
} else if (cmd == "fs") { } else if (cmd == "fs") {
NFileOut::save("yda", SMem::instance()->overwrite); NFileOut::save("yda", SMem::instance()->overwrite);
} else if (cmd == "fe1") { } else if (cmd == "fe1") {
NFileOut::save("csv"); NFileOut::save("csv", SMem::instance()->overwrite);
} else if (cmd == "fe2") { } else if (cmd == "fe2") {
NFileOut::save("tab"); NFileOut::save("tab", SMem::instance()->overwrite);
} else if (cmd == "fc") { } else if (cmd == "fc") {
SMem::instance()->mem_copy(); SMem::instance()->mem_copy();
} else if (cmd == "fx") { } else if (cmd == "fx") {
......
...@@ -183,14 +183,18 @@ void NFileOut::save_tab(FILE* file, const COlo* f) ...@@ -183,14 +183,18 @@ void NFileOut::save_tab(FILE* file, const COlo* f)
if (!fd) if (!fd)
throw S("tab save not implemented for non-data files"); throw S("tab save not implemented for non-data files");
for (int j = 0; j < f->nJ(); j++) { for (int j = 0; j < f->nJ(); j++) {
const CSpec* s = fd->VS(j);
for (int iz = 0; iz < f->ZCo.size(); ++iz) { for (int iz = 0; iz < f->ZCo.size(); ++iz) {
if (iz > 0) if (iz > 0)
fprintf(file, "\t"); fprintf(file, "\t");
fprintf(file, "%g", PCAST<const CObjNum>(fd->VS(j)->z[iz])->to_r()); fprintf(file, "%g", PCAST<const CObjNum>(s->z[iz])->to_r());
} }
fprintf(file, "\n"); fprintf(file, "\n");
for (int i = 0; i < fd->VS(j)->size(); ++i) { for (int i = 0; i < s->size(); ++i) {
fprintf(file, "%g\t%g\n", fd->VS(j)->x[i], fd->VS(j)->y[i]); if (s->has_dy())
fprintf(file, "%g\t%g\t%g\n", s->x[i], s->y[i], s->dy[i]);
else
fprintf(file, "%g\t%g\n", s->x[i], s->y[i]);
} }
fprintf(file, "\n"); fprintf(file, "\n");
} }
......
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