Skip to content

Commit

Permalink
corrected typo in get-function and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Sophie Aerdker committed Oct 9, 2023
1 parent fe474c1 commit 6cab22e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions include/crpropa/advectionField/AdvectionField.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class OneDimensionalCartesianShock: public AdvectionField {
public:
/** Constructor
@param compressionRatio //compression ratio of shock
@param vUpstream //upstream velocity
@param vUp //upstream velocity
@param lShock //shock width
*/
OneDimensionalCartesianShock(double compressionRatio, double vUp, double lShock);
Expand Down Expand Up @@ -191,7 +191,7 @@ class OneDimensionalSphericalShock: public AdvectionField {
double getVup() const;
double getShockwidth() const;
double getShockRadius() const;
double getCooling() const;
bool getCooling() const;

std::string getDescription() const;
};
Expand Down Expand Up @@ -233,8 +233,6 @@ class ObliqueAdvectionShock: public AdvectionField {
std::string getDescription() const;
};

/**
/**
@class SphericalAdvectionShock
@brief Spherical advection with a constant velocity for r<r_0
Expand All @@ -256,7 +254,6 @@ class SphericalAdvectionShock: public AdvectionField {
@param r_0 Position of the shock
@param v_0 Constant velocity (r<<r_o)
@param lambda Transition width / width of the shock
@param v_phi Rotation speed at r_rot
*/
SphericalAdvectionShock(const Vector3d origin, double r_0, double v_0, double lambda);

Expand Down
2 changes: 1 addition & 1 deletion src/advectionField/AdvectionField.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ double OneDimensionalSphericalShock::getShockRadius() const {
return rShock;
}

double OneDimensionalSphericalShock::getCooling() const {
bool OneDimensionalSphericalShock::getCooling() const {
return coolUpstream;
}

Expand Down

0 comments on commit 6cab22e

Please sign in to comment.