Skip to content

Commit cd8a77e

Browse files
committed
[skip ci] update README instructions for adding new models
1 parent 039bdb8 commit cd8a77e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ You can modify the list of AD types in `main.jl`.
1515
You can modify the list of models by adding a new file inside the `models` directory.
1616
This file should contain the model definition, and call the `@register` macro to register the model with the `ADTests` package.
1717
See the existing files in that directory for examples.
18+
Then, make sure to `include` the new source file in `main.jl`.
1819

1920
To make sure that the definition is included in the final website, you will have to make sure that the filename is the same as the model name (i.e. a model `@model function f()` is in `models/f.jl`).
2021

0 commit comments

Comments
 (0)