#include <npglvec.h>
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 |
Definition at line 4 of file npglvec.h.
np_glob_vec | ( | ) |
~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().
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.
n | - length of vectors allocated i.e. total number of unknowns |
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
n | - length of vectors allocated i.e. total number of unknowns |
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.
n | - length of vectors allocated i.e. total number of unknowns |
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 | ) |
double* d |
predictor
Definition at line 26 of file npglvec.h.
Referenced by alloc(), dealloc(), np_glob_vec(), one_step_linear(), one_step_nonlinear(), one_step_nonlinear_dform(), par_one_step_linear(), par_one_step_nonlinear(), par_one_step_trfel_linear(), and par_one_step_trfel_nonlinear().
double* f |
vector of prescribed fluxes (right hand side)
Definition at line 24 of file npglvec.h.
Referenced by alloc(), dealloc(), newton_raphson_parcoupl_common_dt(), nonstat_solv_dform_comp(), nonstat_solv_vform_comp(), nonstat_solver_dform_init(), nonstat_solver_init(), np_glob_vec(), one_step_linear(), one_step_nonlinear(), one_step_nonlinear_dform(), par_nonstat_solver_init(), par_nonstat_trfel_init(), par_one_step_linear(), par_one_step_nonlinear(), par_one_step_trfel_linear(), and par_one_step_trfel_nonlinear().
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 |
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().
long istep |
step id
Definition at line 7 of file npglvec.h.
Referenced by newton_raphson_parcoupl_common_dt(), newton_raphson_parcoupl_comp(), nonstat_solv_dform_comp(), nonstat_solv_vform_comp(), nonstat_solver_dform_init(), nonstat_solver_init(), np_glob_vec(), par_newton_raphson_parcoupl_comp(), par_nonstat_solv_vform_comp(), par_nonstat_solver_init(), par_nonstat_trfel_init(), and Ctlinterface::solve().
double* lhs |
nodal values
Definition at line 14 of file npglvec.h.
Referenced by newton_raphson_parcoupl_common_dt(), newton_raphson_parcoupl_comp(), nonstat_solv_dform_comp(), nonstat_solv_vform_comp(), nonstat_solver_dform_init(), nonstat_solver_init(), np_glob_vec(), one_step_linear(), one_step_nonlinear(), one_step_nonlinear_dform(), par_newton_raphson_parcoupl_comp(), par_nonstat_solv_vform_comp(), par_nonstat_solver_init(), par_nonstat_trfel_init(), par_one_step_linear(), par_one_step_nonlinear(), par_one_step_trfel_linear(), and par_one_step_trfel_nonlinear().
double* lhsb |
backup of nodal values
Definition at line 37 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* p |
auxiliary vector
Definition at line 28 of file npglvec.h.
Referenced by alloc(), dealloc(), np_glob_vec(), one_step_linear(), one_step_nonlinear(), one_step_nonlinear_dform(), par_one_step_linear(), par_one_step_nonlinear(), par_one_step_trfel_linear(), and par_one_step_trfel_nonlinear().
double* rhs |
right hand side
Definition at line 18 of file npglvec.h.
Referenced by newton_raphson_parcoupl_common_dt(), newton_raphson_parcoupl_comp(), nonstat_solv_dform_comp(), nonstat_solv_vform_comp(), nonstat_solver_dform_init(), nonstat_solver_init(), np_glob_vec(), one_step_linear(), one_step_nonlinear(), one_step_nonlinear_dform(), par_newton_raphson_parcoupl_comp(), par_nonstat_solv_vform_comp(), par_nonstat_solver_init(), par_nonstat_trfel_init(), par_one_step_linear(), par_one_step_nonlinear(), par_one_step_trfel_linear(), and par_one_step_trfel_nonlinear().
double* tdlhs |
time derivatives of nodal values
Definition at line 16 of file npglvec.h.
Referenced by alloc_daux(), newton_raphson_parcoupl_common_dt(), newton_raphson_parcoupl_comp(), nonstat_solv_dform_comp(), nonstat_solv_vform_comp(), nonstat_solver_dform_init(), nonstat_solver_init(), np_glob_vec(), one_step_linear(), one_step_nonlinear(), one_step_nonlinear_dform(), par_newton_raphson_parcoupl_comp(), par_nonstat_solv_vform_comp(), par_nonstat_solver_init(), par_nonstat_trfel_init(), par_one_step_linear(), par_one_step_nonlinear(), par_one_step_trfel_linear(), and par_one_step_trfel_nonlinear().
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().