#include "math.h"#include "string.h"Include dependency graph for return_results_to_file.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| void | store_state_for_file (double time, N_Vector state_at_t) |
Store state vector and time at each integration step. | |
| int | write_results_to_file () |
| Write simulation results to file. | |
Definition in file return_results_to_file.h.
| void store_state_for_file | ( | double | time, | |
| N_Vector | state_at_t | |||
| ) |
Store state vector
and time
at each integration step.
If the programm has to return simulation results to file (see get_time()), the state vector
and the time
has to be stored at each integration step. They are stored in dynamic C++ vectors of type vector.
| time | | |
| state_at_t | in the data format used by the SUNDIALS ODE solver CVODE |
Definition at line 47 of file return_results_to_file.cpp.
References Ith, sout00, sout01, sout02, sout03, sout04, sout05, sout06, sout07, sout08, sout09, sout10, sout11, and timev.
Referenced by solve_ODE().
| int write_results_to_file | ( | ) |
Write simulation results to file.
Write simulation results to file. The file is called "SimResults.sim" and is in binary format to save disc space.
Definition at line 65 of file return_results_to_file.cpp.
References sout00, sout01, sout02, sout03, sout04, sout05, sout06, sout07, sout08, sout09, sout10, sout11, and timev.
Referenced by main().
1.4.7