79 void _d2sdphi2_pas_prevu(Tbl* ,
int & b) {
80 cout <<
"Unknown phi basis in Mtbl_cf::d2sdp2() !" << endl ;
81 cout <<
" basis: " << hex << b << endl ;
87 void _d2sdphi2_p_cossin(Tbl* tb,
int & )
91 if (tb->get_etat() == ETATZERO) {
96 assert(tb->get_etat() == ETATQCQ) ;
99 int nr = (tb->dim).dim[0] ;
100 int nt = (tb->dim).dim[1] ;
101 int np = (tb->dim).dim[2] ;
105 static double* cx = 0 ;
106 static int np_pre =0 ;
111 cx =
reinterpret_cast<double*
>(realloc(cx, (np+2) *
sizeof(
double))) ;
112 for (
int i=0 ; i<np+2 ; i++) {
113 cx[i] = - (i/2) * (i/2) ;
118 double* xo =
new double[(tb->dim).taille] ;
121 for (
int i=0; i<(tb->dim).taille; i++) {
131 for (
int j=0 ; j<nt ; j++) {
132 for (
int i=0 ; i<nr ; i++ ) {
133 *xco = cx[0] * (*xci) ;
144 for (
int k=2 ; k<np+1 ; k++) {
145 for (
int j=0 ; j<nt ; j++) {
146 for (
int i=0 ; i<nr ; i++ ) {
147 *xco = cx[k] * (*xci) ;