Skip to content

Commit

Permalink
added include guards
Browse files Browse the repository at this point in the history
  • Loading branch information
dtamayo committed Feb 16, 2016
1 parent 2a782fc commit bc47072
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 18 deletions.
1 change: 1 addition & 0 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Table of Contents
python_api
c_api
c_examples
add_effect
faq

Indices and tables
Expand Down
4 changes: 4 additions & 0 deletions src/gr.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@
* along with rebound. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef REBX_GR_H
#define REBX_GR_H

struct reb_simulation;
struct rebx_effect;

void rebx_gr(struct reb_simulation* const sim, struct rebx_effect* gr);

#endif
3 changes: 3 additions & 0 deletions src/gr_full.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@
* along with rebound. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef REBX_GR_FULL_H
#define REBX_GR_FULL_H

struct reb_simulation;
struct rebx_effect;

void rebx_gr_full(struct reb_simulation* const sim, struct rebx_effect* const gr);

#endif
3 changes: 3 additions & 0 deletions src/gr_potential.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@
* along with rebound. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef REBX_GR_POTENTIAL_H
#define REBX_GR_POTENTIAL_H

struct reb_simulation;
struct rebx_effect;

void rebx_gr_potential(struct reb_simulation* const sim, struct rebx_effect* gr);

#endif
4 changes: 3 additions & 1 deletion src/radiation_forces.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@
* along with rebound. If not, see <http://www.gnu.org/licenses/>.
*
*/

#ifndef REBX_RADIATION_FORCES_H
#define REBX_RADIATION_FORCES_H
struct reb_simulation;
struct rebx_effect;

void rebx_radiation_forces(struct reb_simulation* const sim, struct rebx_effect* const effect);

#endif
33 changes: 16 additions & 17 deletions src/reboundx.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
* along with rebound. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef REBX_REBOUNDX_H
#define REBX_REBOUNDX_H

#ifndef LIBREBX_H
#define LIBREBX_H
#ifndef M_PI
#define M_PI 3.1415926535879323846
#endif
Expand Down Expand Up @@ -200,21 +200,6 @@ void rebx_add_custom_force(struct rebx_extras* rebx, void (*custom_force)(struct
* @{
*/


/******************************************
Convenience functions for various effects
*******************************************/

/**
* \name Convenience Functions for Various Effects
* @{
*/
/**
* @defgroup ConvFunc
* @brief Convenience functions for different REBOUNDx effects.
* @{
*/

/**
* @brief Sets a parameter of type double for a particular particle.
* @param p Pointer to the particle in the simulation to which we want to add the parameter.
Expand All @@ -233,6 +218,20 @@ double rebx_get_param_double(struct reb_particle* p, const char* param_name);
/** @} */
/** @} */

/******************************************
Convenience functions for various effects
*******************************************/

/**
* \name Convenience Functions for Various Effects
* @{
*/
/**
* @defgroup ConvFunc
* @brief Convenience functions for different REBOUNDx effects.
* @{
*/

/**
* @brief Calculates beta, the ratio between the radiation pressure force and the gravitational force from the star.
* @param rebx pointer to the rebx_extras instance.
Expand Down

0 comments on commit bc47072

Please sign in to comment.