26char vector_change_triad_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Tensor/vector_change_triad.C,v 1.9 2014/10/13 08:53:44 j_novak Exp $" ;
104 int ind =
nbvc->get_align() * (
bvc->get_align()) ;
125 "Vector::change_basis : general value of rot_phi "
126 <<
" not contemplated yet, sorry !" <<
endl ;
133 "Vector::change_basis : unexpected value of ind !" <<
endl ;
155 int nz =
mp->get_mg()->get_nzone() ;
156 for (
int i=0;
i<nz;
i++) {
166 mp->comp_z_from_spherical(*
cmp[0], *
cmp[1],
set(3)) ;
192 int nz =
mp->get_mg()->get_nzone() ;
193 for (
int i=0;
i<nz;
i++) {
203 mp->comp_p_from_cartesian(*
cmp[0], *
cmp[1],
set(3)) ;
217 cout <<
"Vector::change_triad : case not treated yet !" <<
endl ;
Cartesian vectorial bases (triads).
Spherical orthonormal vectorial bases (triads).
Vectorial bases (triads) with respect to which the tensorial components are defined.
Time evolution with partial storage (*** under development ***).
Tensor field of valence 0 (or component of a tensorial field).
Tensor field of valence 1.
virtual void change_triad(const Base_vect &)
Sets a new vectorial basis (triad) of decomposition and modifies the components accordingly.
Scalar & set(int)
Read/write access to a component.
const Map *const mp
Mapping on which the numerical values at the grid points are defined.
Scalar ** cmp
Array of size n_comp of pointers onto the components.
const Base_vect * triad
Vectorial basis (triad) with respect to which the tensor components are defined.