#include <inicd.h>
Public Member Functions | |
void | copy (inicd &ic) |
copies data from the parameter to the actual object | |
inicd (void) | |
long | merge (inicd &ic) |
merges function from the parameter with the actual object | |
void | print (FILE *out) |
function prints initial condition to the opened text file | |
void | read (XFILE *in) |
function reads initial condition from the opened text file | |
~inicd (void) | |
Public Attributes | |
long | nval |
number of values | |
inictype | type |
type of initial condition | |
double * | val |
values of initial conditions of given node |
The class holds data about initial condition in the given node.
Definition at line 10 of file inicd.h.
inicd | ( | void | ) |
~inicd | ( | void | ) |
void copy | ( | inicd & | ic | ) |
copies data from the parameter to the actual object
The function copies initial condition form the parameter to the given object.
ic | - copied initial condition (output) |
Created by Tomas Koudelka, 6.2009
Definition at line 86 of file inicd.cpp.
References nval, type, and val.
Referenced by input_nod_initcond().
long merge | ( | inicd & | ic | ) |
merges function from the parameter with the actual object
The function merges initial condition form the parameter to the given object.
ic | - merged initial condition |
0 | - on success | |
1 | - in case of incompatible conditions |
Created by Tomas Koudelka, 6.2009
Definition at line 111 of file inicd.cpp.
References none, nval, type, and val.
Referenced by input_nod_initcond().
void print | ( | FILE * | out | ) |
function prints initial condition to the opened text file
The function prints initial conditions to the opened text file
out | - pointer to the opened text file |
Created by Tomas Koudelka
Definition at line 66 of file inicd.cpp.
References nval, type, and val.
Referenced by mechbclc::printinic(), and wr_initcond().
void read | ( | XFILE * | in | ) |
function reads initial condition from the opened text file
The function reads initial conditions form the opened text file.
in | - pointer to the opened text file |
Created by Tomas Koudelka
Definition at line 41 of file inicd.cpp.
References inictype_kwdset(), memset(), nval, type, val, and xfscanf().
Referenced by input_nod_initcond(), and mechbclc::readinic().
long nval |
type of initial condition
Definition at line 27 of file inicd.h.
Referenced by copy(), inicd(), mechbclc::inicipval(), lhsrhs::initcond(), merge(), print(), and read().
double* val |
values of initial conditions of given node
Definition at line 28 of file inicd.h.
Referenced by copy(), inicd(), mechbclc::inicipval(), lhsrhs::initcond(), merge(), print(), read(), and ~inicd().