mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
Update Tutorial.md
This commit is contained in:
parent
cfc7210f52
commit
334f8859da
@ -533,7 +533,7 @@ The listing below is a simulation of a relatively small asteroid flying past the
|
||||
|
||||
<a id=listing-Flyby.cpp></a>
|
||||
### Listing - Flyby.cpp
|
||||
```
|
||||
```C++
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include "SAIntegrator.hh"
|
||||
@ -781,7 +781,7 @@ A function of type **RootErrorFunc** should:
|
||||
## Side Note 1
|
||||
```integ.integrate()``` is a convenience function. It's implemented as simply:
|
||||
|
||||
```
|
||||
```C++
|
||||
void SA::Integrator::integrate() {
|
||||
load();
|
||||
step();
|
||||
@ -792,7 +792,7 @@ so,
|
||||
|
||||
```integ.integrate();``` could be replaced with:
|
||||
|
||||
```
|
||||
```C++
|
||||
integ.load();
|
||||
integ.step();
|
||||
integ.unload();
|
||||
@ -800,4 +800,4 @@ so,
|
||||
with identical results.
|
||||
|
||||
Rather than constantly unloading and then reloading our last result, we load from One reason is ```load_from_outState()```.
|
||||
``
|
||||
``
|
||||
|
Loading…
Reference in New Issue
Block a user