np_glob_vec Struct Reference

#include <npglvec.h>

List of all members.

Public Member Functions

void alloc (long n)
 function allocates vectors lhs, tdlhs, rhs, f, d, p
void alloc_aux (long n)
 function allocates vectors fb, fi
void alloc_daux (long n)
 function allocates vectors v, z, lhsb and tdlhsb for dform solver
void dealloc ()
 function deallocates vectors lhs, tdlhs, rhs, f, d, p
 np_glob_vec ()
 Default constructor.
 ~np_glob_vec ()
 Destructor deallocates vectors lhs, tdlhs, rhs, f, d, p.

Public Attributes

double * d
 predictor
double * f
 vector of prescribed fluxes (right hand side)
double * fb
 auxiliary vectors for nonlinear problems
double * fi
long istep
 step id
double * lhs
 nodal values
double * lhsb
 backup of nodal values
double * p
 auxiliary vector
double * rhs
 right hand side
double * tdlhs
 time derivatives of nodal values
double * tdlhsb
 backup of time derivatives of nodal values
double * v
 auxiliary vector for nonlinear problems in dform
double * z
 auxiliary vector for nonlinear problems in dform

Detailed Description

Definition at line 4 of file npglvec.h.


Constructor & Destructor Documentation

np_glob_vec (  ) 

Default constructor.

Default constructor initializes data members to the default values.

Created by Tomas Krejci according to Tomas Koudelka, 11/2012

Definition at line 10 of file npglvec.cpp.

References d, f, fb, fi, istep, lhs, lhsb, p, rhs, tdlhs, tdlhsb, v, and z.

~np_glob_vec (  ) 

Destructor deallocates vectors lhs, tdlhs, rhs, f, d, p.

Destructor deallocates vectors lhs, tdlhs, rhs, f, d, p.

Created by Tomas Krejci according to Tomas Koudelka, 11/2012

Definition at line 125 of file npglvec.cpp.

References dealloc().


Member Function Documentation

void alloc ( long  n  ) 

function allocates vectors lhs, tdlhs, rhs, f, d, p

The function allocates vectors tdlhs, f, d, p with length n. Vectors lhs and rhs remains unallocated because they are used as pointers to the right and left hand sides that are allocated separately.

Parameters:
n - length of vectors allocated i.e. total number of unknowns
Returns:
The function does not return anything.

Created by Tomas Krejci according to Tomas Koudelka, 11/2012

Definition at line 31 of file npglvec.cpp.

References d, f, nullv(), and p.

Referenced by nonstat_solver_dform_init(), nonstat_solver_init(), par_nonstat_solver_init(), and par_nonstat_trfel_init().

void alloc_aux ( long  n  ) 

function allocates vectors fb, fi

The function allocates auxiliary vectors fb, fi

Parameters:
n - length of vectors allocated i.e. total number of unknowns
Returns:
The function does not return anything.

Created by Tomas Krejci according to Tomas Koudelka, 11/2012

Definition at line 53 of file npglvec.cpp.

References fb, fi, and nullv().

Referenced by nonstat_solver_dform_init(), nonstat_solver_init(), par_nonstat_solver_init(), and par_nonstat_trfel_init().

void alloc_daux ( long  n  ) 

function allocates vectors v, z, lhsb and tdlhsb for dform solver

The function allocates auxiliary vectors v, z, lhsb and tdlhsb for the dform solver type.

Parameters:
n - length of vectors allocated i.e. total number of unknowns
Returns:
The function does not return anything.

Created by Tomas Koudelka, 6/2014

Definition at line 74 of file npglvec.cpp.

References lhsb, nullv(), tdlhs, tdlhsb, v, and z.

Referenced by nonstat_solver_dform_init().

void dealloc ( void   ) 

function deallocates vectors lhs, tdlhs, rhs, f, d, p

The function deallocates vectors lhs, tdlhs, rhs, f, d, p.

Created by Tomas Krejci according to Tomas Koudelka, 11/2012

Definition at line 97 of file npglvec.cpp.

References d, f, fb, fi, lhsb, p, tdlhsb, v, and z.

Referenced by ~np_glob_vec().


Member Data Documentation

double* d
double* f
double* fb

auxiliary vectors for nonlinear problems

Definition at line 30 of file npglvec.h.

Referenced by alloc_aux(), dealloc(), np_glob_vec(), one_step_nonlinear(), par_one_step_nonlinear(), and par_one_step_trfel_nonlinear().

double * fi
long istep
double* lhs
double* lhsb
double* p
double* rhs
double* tdlhs
double* tdlhsb

backup of time derivatives of nodal values

Definition at line 39 of file npglvec.h.

Referenced by alloc_daux(), dealloc(), newton_raphson_parcoupl_common_dt(), nonstat_solv_dform_comp(), np_glob_vec(), and one_step_nonlinear_dform().

double* v

auxiliary vector for nonlinear problems in dform

Definition at line 33 of file npglvec.h.

Referenced by alloc_daux(), dealloc(), np_glob_vec(), and one_step_nonlinear_dform().

double* z

auxiliary vector for nonlinear problems in dform

Definition at line 35 of file npglvec.h.

Referenced by alloc_daux(), dealloc(), np_glob_vec(), and one_step_nonlinear_dform().


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

Generated by  doxygen 1.6.2