Skip to content

Commit

Permalink
modified add_effect.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
dtamayo committed Feb 16, 2016
1 parent a54eb78 commit 4bc7d70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/add_effect.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ effect.c and effect.h
Now we add two new files for your effect in ``reboundx/src``, ``effect.c`` and ``effect.h``.
You should copy existing ones from other effects, so that you have the license and right code structure to work from.

In ``effect.h``, you only have to modify the file, brief, and author fields at the top, the include guards (ifndef, define lines) and substitute the name of your effect in the function name.
Everything else should be kept exactly the same.

Is your effect an additional force, or a post timestep modification (i.e., omething to do between REBOUND timesteps)?

Expand Down

0 comments on commit 4bc7d70

Please sign in to comment.