Adding a New Module =================== So you've decided you want to add a new module to VPLanet? That's great as it is the best way to improve the code and grow our understanding of planetary and stellar evolution! This page walks you through the steps necessary to complete that task. While numerous modules have been implemented to date and can serve as examples, each new module presents unique challenges, but by following the established protocols, your new module can be "plug and play" and couple seamlessly to the other modules. Initial Steps ------------- Add a new ID number in vplanet.h: #define NEWMODULE 2^x where NEWMODULE is the name of your module and x is an integer that creates a unique number for the module. Adjust the values to MODULEOPTEND and MODULEOUTEND. Add a new struct member to the MODULE struct called *iaModuleName. At the end of vplanet.h, add #include for your new .h file. Identify the primary variables, if they are new to the code, follow the `How to add a `primary variable `_ tutorial. Determine which new options you need and follow the `How to add an option