inicd Class Reference

#include <inicd.h>

List of all members.

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

Detailed Description

The class holds data about initial condition in the given node.

Definition at line 10 of file inicd.h.


Constructor & Destructor Documentation

inicd ( void   ) 

The constructor inializes attributes to zero values.

Created by Tomas Koudelka

Definition at line 11 of file inicd.cpp.

References none, nval, type, and val.

~inicd ( void   ) 

The destructor deallocates used memory.

Created by Tomas Koudelka

Definition at line 25 of file inicd.cpp.

References val.


Member Function Documentation

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.

Parameters:
ic - copied initial condition (output)
Returns:
The function returns copy of the object in the parameter ic.

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.

Parameters:
ic - merged initial condition
Return values:
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

Parameters:
out - pointer to the opened text file
Returns:
The function does not return anything.

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.

Parameters:
in - pointer to the opened text file
Returns:
The function does not return anything.

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


Member Data Documentation

long nval

number of values

Definition at line 29 of file inicd.h.

Referenced by copy(), inicd(), mechbclc::inicipval(), merge(), print(), and read().

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


The documentation for this class was generated from the following files:

Generated by  doxygen 1.6.2