HydroSDL/hydro_source/return_results_to_file.h File Reference

#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 $ \vec{q}_i $ and time $ t_i $ at each integration step.
int write_results_to_file ()
 Write simulation results to file.


Detailed Description

Author:
basile.graf@epfl.ch
This file contains functions for writing simulation results to file

Definition in file return_results_to_file.h.


Function Documentation

void store_state_for_file ( double  time,
N_Vector  state_at_t 
)

Store state vector $ \vec{q}_i $ and time $ t_i $ at each integration step.

If the programm has to return simulation results to file (see get_time()), the state vector $ \vec{q}_i $ and the time $ t_i $ has to be stored at each integration step. They are stored in dynamic C++ vectors of type vector.

Parameters:
time $ t_i $
state_at_t $ \vec{q}_i $ 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.

Returns:
0 : write OK. 1: write error (abort)

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().


Generated on Wed Sep 20 14:30:04 2006 for hydroSDL by  doxygen 1.4.7