General information for adding new schemes
The following steps are required for any new options (such as new Hydrodynamics Schemes, chemistry, cooling, Equations of State, stars, or gravity)
In order to add a new scheme, you will need to:
Create a new subdirectory inside the option directory (e.g.
src/equation_of_state
orsrc/hydro
) with an explicit name.Create the required new files (depending on your option, you will need different files). Copy the structure of the most simple option (e.g.
src/hydro/Gadget2
,src/gravity/Default
,src/stars/Default
,src/cooling/none
,src/chemistry/none
orsrc/equation_of_state/ideal_gas
)Add the right includes in the option file (e.g.
src/hydro.h
,src/gravity.h
,src/stars.h
,src/cooling.h
,src/chemistry.h
orsrc/equation_of_state.h
) and the corresponding io file if present.Add the new option in
configure.ac
. This file generates theconfigure
script and you just need to add a new option under the rightcase
.Add your files in
src/Makefile.am
. In order to generate the Makefiles during the configuration step, a list of files is required. Innobase_noinst_HEADERS
, add your new header files.Update the documentation. Add your equations/documentation to
doc/RTD
.