61void Tenseur::poisson_vect_ylm(
double lambda,
Param& para,
Tenseur& shift,
63 double* intvec)
const {
64 assert (lambda != -1) ;
68 assert (shift.get_valence() == 1) ;
69 assert (shift.get_type_indice(0) ==
type_indice(0)) ;
70 assert (vecteur.get_valence() == 1) ;
71 assert (vecteur.get_type_indice(0) ==
type_indice(0)) ;
72 assert (scalaire.get_valence() == 0) ;
73 assert (
etat != ETATNONDEF) ;
78 if (
etat == ETATZERO) {
80 shift.set_etat_zero() ;
82 vecteur.set_etat_qcq() ;
83 for (
int i=0; i<3; i++) {
87 scalaire.set_etat_qcq() ;
94 for (
int i=0 ; i<3 ; i++) {
95 Param* par =
mp->donne_para_poisson_vect(para, i) ;
97 double* intvec2=
new double [nylm];
98 for (
int j=0; j<nylm; j++) {
99 intvec2[j]=intvec[i*nylm+j];
102 (*this)(i).poisson_ylm(*par, vecteur.set(i),nylm,intvec2) ;
109 vecteur.set_triad( *
triad ) ;
114 Param* par =
mp->donne_para_poisson_vect(para, 3) ;
116 double* intvec2=
new double[nylm];
117 for (
int j=0; j<nylm; j++) {
118 intvec2[j]=intvec[3*nylm+j];
121 source_scal().poisson_ylm(*par, scalaire.set(), nylm, intvec2) ;
129 Tenseur dxsi (auxiliaire.gradient()) ;
139 shift.set_etat_qcq() ;
141 for (
int i=0 ; i<3 ; i++)
142 shift.set(i) = (lambda+2)/2/(lambda+1) * vecteur(i)
143 - (lambda/2/(lambda+1)) * (dxsi(i) + dp(i)) ;
145 shift.set_triad( *(vecteur.triad) ) ;
153 Tenseur& scalaire,
int nylm,
double* intvec)
const {
157 resu.set_etat_qcq() ;
158 poisson_vect_ylm(lambda, bidon, resu, vecteur, scalaire, nylm, intvec) ;
Tensor handling *** DEPRECATED : use class Tensor instead ***.
const Metrique * metric
For tensor densities: the metric defining the conformal factor.
const Map *const mp
Reference mapping.
Tenseur(const Map &map, const Metrique *met=0x0, double weight=0)
Constructor for a scalar field.
const Base_vect * triad
Vectorial basis (triad) with respect to which the tensor components are defined.
Itbl type_indice
Array of size valence contening the type of each index, COV for a covariant one and CON for a contrav...
int etat
Logical state ETATZERO , ETATQCQ or ETATNONDEF.
double poids
For tensor densities: the weight.
friend Tenseur skxk(const Tenseur &)
Contraction of the last index of (*this) with or , depending on the type of S .