Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects
Commit f8f930e4 authored by ext-calvo_p's avatar ext-calvo_p
Browse files

Merge branch '691-fix-units-in-dumpemfields-header' into 'master'

Resolve "Fix units in DumpEMFields header"

Closes #691

See merge request !547
parents 593fc63f b5e1654b
No related branches found
No related tags found
1 merge request!547Resolve "Fix units in DumpEMFields header"
......@@ -223,21 +223,21 @@ void DumpEMFields::checkInt(double real, std::string name, double tolerance) {
void DumpEMFields::writeHeader(std::ofstream& fout) const {
fout << grid_m->end().toInteger() << "\n";
if (coordinates_m == CoordinateSystem::CYLINDRICAL) {
fout << 1 << " r [mm]\n";
fout << 2 << " phi [degree]\n";
fout << 1 << " r [m]\n";
fout << 2 << " phi [deg]\n";
} else {
fout << 1 << " x [mm]\n";
fout << 2 << " y [mm]\n";
fout << 1 << " x [m]\n";
fout << 2 << " y [m]\n";
}
fout << 3 << " z [mm]\n";
fout << 3 << " z [m]\n";
fout << 4 << " t [ns]\n";
if (coordinates_m == CoordinateSystem::CYLINDRICAL) {
fout << 5 << " Br [kGauss]\n";
fout << 5 << " Br [kGauss]\n";
fout << 6 << " Bphi [kGauss]\n";
fout << 7 << " Bz [kGauss]\n";
fout << 8 << " Er [MV/m]\n";
fout << 7 << " Bz [kGauss]\n";
fout << 8 << " Er [MV/m]\n";
fout << 9 << " Ephi [MV/m]\n";
fout << 10 << " Ez [MV/m]\n";
fout << 10 << " Ez [MV/m]\n";
} else {
fout << 5 << " Bx [kGauss]\n";
fout << 6 << " By [kGauss]\n";
......@@ -362,4 +362,4 @@ void DumpEMFields::print(std::ostream& os) const {
<< "* DT = " << Attributes::getReal(itsAttr[DT]) << " [ns]\n"
<< "* T_STEPS = " << Attributes::getReal(itsAttr[T_STEPS]) << '\n';
os << "* ********************************************************************************** " << std::endl;
}
\ No newline at end of file
}
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