Skip to content

Commit

Permalink
Revert c++ part of PR #1170
Browse files Browse the repository at this point in the history
Revert changes to units in the output of egs_fluence_scoring and cavity.
This was needed to avoid compiler errors when using newer compilers.
  • Loading branch information
rtownson committed Jan 14, 2025
1 parent 1129f6c commit 1415fbb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ void EGS_PlanarFluence::ouputResults() {
spe_output << "@ xaxis label char size 1.560000\n";
spe_output << "@ xaxis label font 4\n";
spe_output << "@ xaxis ticklabel font 4\n";
spe_output << "@ yaxis label \"fluence / MeV\S-1\Ncm\S-2\"\n";
spe_output << "@ yaxis label \"fluence / MeV\\S-1\\Ncm\\S-2\"\n";
spe_output << "@ yaxis label char size 1.560000\n";
spe_output << "@ yaxis label font 4\n";
spe_output << "@ yaxis ticklabel font 4\n";
Expand Down Expand Up @@ -1557,10 +1557,10 @@ void EGS_VolumetricFluence::ouputResults() {
spe_output << "@ xaxis label font 4\n";
spe_output << "@ xaxis ticklabel font 4\n";
if (src_norm == 1 || normLabel == "primary history") {
spe_output << "@ yaxis label \"fluence / MeV\S-1\Ncm\S-2\"\n";
spe_output << "@ yaxis label \"fluence / MeV\\S-1\\Ncm\\S-2\"\n";
}
else {
spe_output << "@ yaxis label \"fluence / MeV\S-1\"\n";
spe_output << "@ yaxis label \"fluence / MeV\\S-1\"\n";
}
spe_output << "@ yaxis label char size 1.560000\n";
spe_output << "@ yaxis label font 4\n";
Expand Down
2 changes: 1 addition & 1 deletion HEN_HOUSE/user_codes/cavity/cavity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,7 @@ class APP_EXPORT Cavity_Application : public EGS_AdvancedApplication {
spe_output << "@ xaxis label char size 1.560000\n";
spe_output << "@ xaxis label font 4\n";
spe_output << "@ xaxis ticklabel font 4\n";
spe_output << "@ yaxis label \"fluence / MeV\S-1\Ncm\S-2\"\n";
spe_output << "@ yaxis label \"fluence / MeV\\S-1\\Ncm\\S-2\"\n";
spe_output << "@ yaxis label char size 1.560000\n";
spe_output << "@ yaxis label font 4\n";
spe_output << "@ yaxis ticklabel font 4\n";
Expand Down

0 comments on commit 1415fbb

Please sign in to comment.