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 282b3519 authored by Hck Course's avatar Hck Course Committed by adelmann
Browse files

fix warnings

parent a7011210
No related branches found
No related tags found
1 merge request!19Drift-0 ro Drift-2
......@@ -64,6 +64,10 @@ public:
virtual bool apply(
const size_t& i, const double& t, Vector_t<double, 3>& E, Vector_t<double, 3>& B) override;
virtual bool apply(
const Vector_t<double, 3>& R, const Vector_t<double, 3>& P, const double& t,
Vector_t<double, 3>& E, Vector_t<double, 3>& B) override;
virtual bool applyToReferenceParticle(
const Vector_t<double, 3>& R, const Vector_t<double, 3>& P, const double& t,
Vector_t<double, 3>& E, Vector_t<double, 3>& B) override;
......
......@@ -77,6 +77,14 @@ bool PluginElement::apply(
return false;
}
bool PluginElement::apply(
const Vector_t<double, 3>& R, const Vector_t<double, 3>& P, const double& t,
Vector_t<double, 3>& E, Vector_t<double, 3>& B) {
return false;
}
bool PluginElement::applyToReferenceParticle(
const Vector_t<double, 3>&, const Vector_t<double, 3>&, const double&, Vector_t<double, 3>&,
Vector_t<double, 3>&) {
......
......@@ -47,6 +47,11 @@ public:
virtual bool apply(
const size_t& i, const double& t, Vector_t<double, 3>& E, Vector_t<double, 3>& B) override;
virtual bool apply(
const Vector_t<double, 3>& R, const Vector_t<double, 3>& P, const double& t,
Vector_t<double, 3>& E, Vector_t<double, 3>& B);
virtual bool applyToReferenceParticle(
const Vector_t<double, 3>& R, const Vector_t<double, 3>& P, const double& t,
Vector_t<double, 3>& E, Vector_t<double, 3>& B) override;
......
......@@ -235,6 +235,13 @@ void TravelingWave::initialise(PartBunch_t* bunch, double& startField, double& e
- Physics::two_pi * ((numCells_m - 1) * mode_m - std::floor((numCells_m - 1) * mode_m));
}
void TravelingWave::initialise(PartBunch_t* bunch, std::shared_ptr<AbstractTimeDependence> freq_atd,
std::shared_ptr<AbstractTimeDependence> ampl_atd,
std::shared_ptr<AbstractTimeDependence> phase_atd) {
}
void TravelingWave::finalise() {
}
......
......@@ -68,6 +68,10 @@ public:
virtual void initialise(PartBunch_t* bunch, double& startField, double& endField) override;
virtual void initialise(PartBunch_t* bunch, std::shared_ptr<AbstractTimeDependence> freq_atd,
std::shared_ptr<AbstractTimeDependence> ampl_atd,
std::shared_ptr<AbstractTimeDependence> phase_atd) override;
virtual void finalise() override;
virtual bool bends() const override;
......
......@@ -48,7 +48,6 @@
#include <source_location>
#endif
class Invalidator;
class Parser;
class Statement;
......@@ -141,7 +140,7 @@ public:
/// Print the object.
// Print a OPAL-readable image of [b]this[/b] on the given output stream.
virtual void print(std::ostream &) const;
virtual void print(std::ostream &) const;
virtual void printValue(std::ostream &) const;
......
......@@ -70,6 +70,10 @@ Euclid3D Euclid3DGeometry::getTransform(double /*fromS*/, double /*toS*/) const
throw GeneralClassicException("Euclid3DGeometry::getTransform", "Not implemented");
}
Euclid3D Euclid3DGeometry::getTransform(double /*fromS*/) const {
throw GeneralClassicException("Euclid3DGeometry::getTransform", "Not implemented");
}
Euclid3D Euclid3DGeometry::getTotalTransform() const {
return transformation_m;
}
\ No newline at end of file
......@@ -70,6 +70,8 @@ class Euclid3DGeometry : public BGeometryBase {
// position [b]fromS[/b] to the position [b]toS[/b].
virtual Euclid3D getTransform(double fromS, double toS) const;
virtual Euclid3D getTransform(double fromS) const;
/// Get total transform from beginning to end
// Corresponds to the Euclid3D
virtual Euclid3D getTotalTransform() const;
......
......@@ -45,3 +45,10 @@ Euclid3D VarRadiusGeometry::getTransform(double fromS, double toS) const {
v.setZ(ref_to[1] - ref_from[1]);
return v;
}
Euclid3D VarRadiusGeometry::getTransform(double fromS) const {
throw GeneralClassicException("Euclid3DGeometry::getTransform", "Not implemented");
}
......@@ -116,6 +116,13 @@ public:
* to the entrance of the element
* Equivalent to getTransform(0.0, getEntrance())
*/
virtual Euclid3D getTransform(double fromS) const;
/** Transform of the local coordinate system from the origin
* to the entrance of the element
* Equivalent to getTransform(0.0, getEntrance())
*/
virtual Euclid3D getEntranceFrame() const;
/** Transform of the local coordinate system from the origin
* to the exit of the element
......
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