|
HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Write out the solution to file. More...
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>#include <basic.h>#include <common_cpp.h>#include <arrayfunctions.h>#include <io_cpp.h>#include <plotfuncs_cpp.h>#include <timeintegration_cpp.h>#include <mpivars_cpp.h>#include <simulation_object.h>#include <arrayfunctions_gpu.h>Go to the source code of this file.
Functions | |
| void | IncrementFilenameIndex (char *, int) |
| int | OutputSolution (void *s, int nsims, double a_time) |
Write out the solution to file.
Definition in file OutputSolution.cpp.
| void IncrementFilenameIndex | ( | char * | f, |
| int | len | ||
| ) |
Increment the output filename of the form op_nnnnn.dat by 1,
i.e., the number represented by the string nnnnn is incremented by 1.
Increment a character string representing an integer by 1. For example: "00002" -> "00003"; "3421934" -> "3421935"; "999" -> "000". The string can be of arbitrary length.
| f | Character string representing the integer |
| len | Length of the string |
Definition at line 46 of file IncrementFilename.c.
| int OutputSolution | ( | void * | s, |
| int | nsims, | ||
| double | a_time | ||
| ) |
Write out the solution to file
| s | Array of simulation objects of type SimulationObject |
| nsims | Number of simulation objects |
| a_time | Current simulation time |
Definition at line 27 of file OutputSolution.cpp.