80 assert(
triad != 0x0) ;
88 assert((nbvc != 0x0) || (nbvs != 0x0)) ;
93 assert((bvc != 0x0) || (bvs != 0x0)) ;
122 set(1, 3) = - copie(1, 3) ;
123 set(2, 3) = - copie(2, 3) ;
124 set(3, 1) = - copie(3, 1) ;
125 set(3, 2) = - copie(3, 2) ;
132 "Tensor::change_basis : general value of rot_phi "
133 <<
" not contemplated yet, sorry !" << endl ;
140 "Tensor::change_basis : unexpected value of ind !" << endl ;
141 cout <<
" ind = " << ind << endl ;
159 assert( *nbvc ==
mp->get_bvect_cart() ) ;
160 assert( *bvs ==
mp->get_bvect_spher() ) ;
166 int nz =
mp->get_mg()->get_nzone() ;
167 for (
int i=0; i<nz; i++) {
168 assert(
mp->get_mg()->get_np(i) >= 4) ;
169 assert(
mp->get_mg()->get_nt(i) >= 5) ;
175 for (
int i=1; i<=3; i++) {
176 mp->comp_x_from_spherical(
operator()(1,i),
operator()(2,i),
177 operator()(3,i), tmp.
set(1,i)) ;
178 mp->comp_y_from_spherical(
operator()(1,i),
operator()(2,i),
179 operator()(3,i), tmp.
set(2,i)) ;
180 mp->comp_z_from_spherical(
operator()(1,i),
operator()(2,i), tmp.
set(3,i) ) ;
182 for (
int i=1; i<=3; i++) {
183 mp->comp_x_from_spherical(tmp(i,1), tmp(i,2), tmp(i,3),
set(i,1)) ;
184 mp->comp_y_from_spherical(tmp(i,1), tmp(i,2), tmp(i,3),
set(i,2)) ;
185 mp->comp_z_from_spherical(tmp(i,1), tmp(i,2),
set(i,3)) ;
196 assert(nbvc == 0x0) ;
206 assert( *nbvs ==
mp->get_bvect_spher() ) ;
207 assert( *bvc ==
mp->get_bvect_cart() ) ;
213 int nz =
mp->get_mg()->get_nzone() ;
214 for (
int i=0; i<nz; i++) {
215 assert(
mp->get_mg()->get_np(i) >= 4) ;
216 assert(
mp->get_mg()->get_nt(i) >= 5) ;
222 for (
int i=1; i<=3; i++) {
223 mp->comp_r_from_cartesian(
operator()(1,i),
operator()(2,i),
224 operator()(3,i), tmp.
set(1,i)) ;
225 mp->comp_t_from_cartesian(
operator()(1,i),
operator()(2,i),
226 operator()(3,i), tmp.
set(2,i)) ;
227 mp->comp_p_from_cartesian(
operator()(1,i),
operator()(2,i), tmp.
set(3,i)) ;
229 for (
int i=1; i<=3; i++) {
230 mp->comp_r_from_cartesian(tmp(i,1), tmp(i,2), tmp(i,3),
set(i,1)) ;
231 mp->comp_t_from_cartesian(tmp(i,1), tmp(i,2), tmp(i,3),
set(i,2)) ;
232 mp->comp_p_from_cartesian(tmp(i,1), tmp(i,2),
set(i,3)) ;
244 cout <<
"Tensor::change_triad : case not treated yet !" << endl ;