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 1cbf6acc authored by kraus's avatar kraus
Browse files

Messages whenever possible only from node 0; adding additional item to list of changes

parent 12c16d3d
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,7 @@
#include "Parser/FileStream.h"
#include "Utilities/OpalException.h"
#include "Utilities/Options.h"
#include "Utility/IpplInfo.h"
#include <iostream>
using std::cerr;
......@@ -58,22 +59,18 @@ Call *Call::clone(const std::string &name) {
void Call::execute() {
std::string file = Attributes::getString(itsAttr[0]);
if(Options::info) {
cerr << endl
<< "Start reading input stream \"" << file << "\"." << endl
<< endl;
if(Options::info && Ippl::myNode() == 0) {
cerr << "Start reading input stream \"" << file << "\"." << endl;
}
OpalParser().run(new FileStream(file));
if(Options::info) {
cerr << endl
<< "End reading input stream \"" << file << "\"." << endl
<< endl;
if(Options::info && Ippl::myNode() == 0) {
cerr << "End reading input stream \"" << file << "\"." << endl;
}
}
void Call::parse(Statement &statement) {
parseShortcut(statement);
}
}
\ No newline at end of file
......@@ -11,9 +11,6 @@ namespace Versions {
"* The normalization of the 2-dimensional field maps has changed.\n"
" Instead of normalizing with the overall maximum value of longitudinal\n"
" component Opal now uses the maximum value on axis.\n"
"\n"
"* OPAL-T: The design energy of dipoles is now expected to be in MeV instead\n"
" of eV.\n"
});
changes.insert({109,
......@@ -23,6 +20,11 @@ namespace Versions {
"\n"
"* OPAL-T: Beamlines containing a cathode have to have a SOURCE element to\n"
" indicate this fact\n"
"\n"
"* OPAL-T: The design energy of dipoles is now expected to be in MeV instead\n"
" of eV.\n"
"* OPAL-T: The attribute 'ROTATION' of RBEND and SBEND have been replaced\n"
" by 'PSI'. Can be applyied to all elements to rotate them.\n"
});
}
}
\ No newline at end of file
}
......@@ -63,14 +63,19 @@ def computeRatio(fieldmap):
def main(argv):
fieldmap = ""
fieldmapSet = False
for arg in argv:
if arg.startswith("--fieldmap"):
fieldmap = arg.split("=")[1]
fieldmapSet = True
elif arg.startswith("--help"):
printUsage()
sys.exit()
computeRatio(fieldmap)
if fieldmapSet:
computeRatio(fieldmap)
else:
printUsage()
#call main
if __name__ == "__main__":
......
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