- Apr 19, 2012
- Apr 18, 2012
-
-
kraus authored
-
Jianjun Yang authored
-
- Apr 17, 2012
-
-
adelmann authored
In OPAL several different TRACK's can performed within one simulation (does not hold for OPAL-cycl yet) this together with the restart capabilities calls for a delicate logic. Different tracks, looks like: ..... TRACK, LINE= Injector, BEAM=beam1, MAXSTEPS=100, DT=1.0e-12, ZSTOP=0.14; RUN, METHOD = "PARALLEL-T", BEAM = beam1, FIELDSOLVER = Fs1, DISTRIBUTION = Dist1; ENDTRACK; TRACK,LINE= Injector, BEAM=beam1, MAXSTEPS=50, DT=1.0e-11, ZSTOP=0.20; RUN, METHOD = "PARALLEL-T", BEAM=beam1, FIELDSOLVER=Fs1; ENDTRACK; STOP; A run with the arguments -restart -1 will continue a track from the last dump in the h5 file. Other the from the last track will at the moment certainly fail in the general case. Changes: - The h5 attribute TrackStep is not longer available anymore. Two new attributes: LocalTrackStep and GlobalTrackStep are introduced instead. - LocalTrackStep refers to the track step in a track command (0 ... 99 and 0... 49 in teh above example), where the GlobalTrackStep is the accumulated number of steps i.e. 0 ... 149, shown in OPAL's screen output. Both local and global track steps are also written into the h5 file in order to properly restart the simulation. - The PartBunch object has get/set and increment functions: inline void setGlobalTrackStep(long long n) {globalTrackStep_m = n;} inline long long getGlobalTrackStep() const {return globalTrackStep_m;} inline void setLocalTrackStep(long long n) {localTrackStep_m = n;} inline long long getLocalTrackStep() const {return localTrackStep_m;} inline void incLocalTrackStep() {localTrackStep_m++; globalTrackStep_m++;) - In OPAL-cyc getTrackStep is replace by getLocalTrackStep assuming we only have one TRACK in the simulation. - In the ParallelTTracker at the end of the main loop (in execute()) obsolet code is removed (cleanup monitors etc.) For details see the diff :-) Still some work todo: a) Need to remove: setLastStep in ParallelTTracker.cpp and in general getInstance()->getLastStep() getInstance()->getRestartStep() maybe not! b) The get/set and increment functions could very well be in an other class! c) ParallelPlate tests are broken but maybe also because of other changes need to fix this together with Chuang and Achim d) Make sure the restart works in OPAL-cycl we do not have yet a regression test for that.
-
Matthias Toggweiler authored
- simplify checkNumPart - clean up function initDistInGlobalFrame - correct indentation - move AUTO mode stuff down where meanR is calculated already - referenceR is not used in Tracker_MTS body, so remove it
-
Matthias Toggweiler authored
- Needed to add member variables turnnumber_m, eta_m
-
Jianjun Yang authored
-
kraus authored
Merge branch 'develop' into svn: more pretty printing; change variable names to comply with (unfortunately missing) coding style (Use descriptive names)
-
Jianjun Yang authored
-
kraus authored
Merge branch 'develop' into svn: willfully breaking Scan-1 test; the first track starts with step 0 and so should the following tracks in a scan
-
kraus authored
Merge branch 'develop' into svn: fixing Scan-1 test. Interestingly this has nothing to do with any of the changes of yesterday, still the test was broken today but not before
-
kraus authored
Merge branch 'develop' into svn: field assignment seems to be VERY delicate about Indices and optimization o explain why this merge is necessary,
-
- Apr 16, 2012
-
-
kraus authored
- use forward declaration where possible - remove unused includes
-
kraus authored
-
Jianjun Yang authored
-
- Apr 15, 2012
-
-
Jianjun Yang authored
-
- Apr 13, 2012
-
-
Jianjun Yang authored
cleanup: merge the duplicate code of LF2 and RK4into a function initDistInGlobleFrame(), not used in MTS tracker since units are different
-
Jianjun Yang authored
fix occasional crash after particles is deleted by the plugin elements in cyclron tracker, destroy particle in the local frame
-
Jianjun Yang authored
-
- Apr 12, 2012
-
-
Jianjun Yang authored
-
Jianjun Yang authored
fix the mass in *.loss file with more than one plugin element case (open/close the file just before / immediately after data dump)
-
Jianjun Yang authored
-
Yves Ineichen authored
- deleting obsolete find modules - using HINT and adding default library and include path (CPP_INCLUDE_PATH and LIBRARY_PATH) in GSL, H5hut and HDF5 find modules
-
- Apr 11, 2012
-
-
Jianjun Yang authored
Set Option REMOTEPARTDEL to Artifically delete the remote particle if its distance to the beam mass is larger than this factor times the beam rms size, its default values is -1 (no delete), current only valid for OPAL-cycl
-
Jianjun Yang authored
- Dump the info of stripped particle to the shared *.loss file, rather than an separated *.extract file; \n - Dump the turn number and time for the probed or stripped particle
-
Jianjun Yang authored
-
Jianjun Yang authored
-
- Apr 10, 2012
-
-
Matthias Toggweiler authored
- Different splitting allows any positive integer for MTSSUBSTEPS option - Requires still one space charge solve per step, but one additional solve before main loop. Therefore, extract code to function evaluateSpaceCharge - TODO: correct location of bunch injection code?
-
- Apr 08, 2012
-
-
Steve Russell authored
coding guidelines. (More to do here.)
-
- Apr 07, 2012
-
-
Matthias Toggweiler authored
- applyPluginElements expects [R] = mm, [dt] = ns - but Tracker_MTS uses [R] = m, [dt] = s
-
- Apr 06, 2012
-
-
Jianjun Yang authored
heighten the doorsill for artificially deletion of the romate particles to 8*sigma in OPAL-CYCL, which is the case of quite unmatched initial beam distribution
-
kraus authored
-
- Apr 05, 2012