31char mtbl_cf_vp_symy_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Mtbl_cf/mtbl_cf_vp_symy.C,v 1.3 2014/10/13 08:53:09 j_novak Exp $" ;
74 (
double*,
const int,
const int,
const int,
const double,
double*) ;
76 (
double*,
const int,
const int,
const double,
double*) ;
78 (
double*,
const int,
const double,
double*) ;
79static int premier_appel = 1 ;
83 if (premier_appel == 1) {
89 som_phi[i/2] = som_phi_pas_prevu ;
91 som_tet[i] = som_tet_pas_prevu ;
92 som_r[i] = som_r_pas_prevu ;
116 assert (
etat != ETATNONDEF) ;
121 if (
etat == ETATZERO ) {
127 int np =
mg->get_np(l) ;
128 int nt =
mg->get_nt(l) ;
129 int nr =
mg->get_nr(l) ;
142 assert(
etat == ETATQCQ) ;
145 if (tbcf->
get_etat() == ETATZERO ) {
151 assert(tbcf->
get_etat() == ETATQCQ) ;
153 double* cf = tbcf->
t ;
156 double* trp =
new double [np+2] ;
157 double* trtp =
new double [(np+2)*nt] ;
164 som_tet[base_t](cf, nt, np, theta, trp) ;
171 som_r[base_r](cf, nr, nt, np,
x, trtp) ;
172 som_tet[base_t](trtp, nt, np, theta, trp) ;
182 som_phi[base_p](trp, np,
phi, &resu) ;
205 (
double*,
const int,
const int,
const int,
const double,
double*) ;
206static int premier_appel = 1 ;
210 if (premier_appel == 1) {
215 som_r[i] = som_r_pas_prevu ;
227 assert (
etat != ETATNONDEF) ;
232 if (
etat == ETATZERO ) {
238 int np =
mg->get_np(l) ;
239 int nt =
mg->get_nt(l) ;
240 int nr =
mg->get_nr(l) ;
250 Tbl tab_phi =
base.phi_functions(l, np) ;
251 Tbl tab_theta =
base.theta_functions(l, nt) ;
260 assert(
etat == ETATQCQ) ;
263 if (tbcf->
get_etat() == ETATZERO ) {
269 assert(tbcf->
get_etat() == ETATQCQ) ;
271 double* cf = tbcf->
t ;
274 double* coef_tp =
new double [(np+2)*nt] ;
280 som_r[base_r](cf, nr, nt, np,
x, coef_tp) ;
285 double* pi = coef_tp ;
290 for (
int j=0 ; j<nt ; j++) {
291 somt += (*pi) * tab_theta(0, j, j0) ;
294 resu = somt * tab_phi(0, k0) ;
309 for (
int k=2 ; k<np+1 ; k+=2) {
310 int m_par = (k/2)%2 ;
312 for (
int j=0 ; j<nt ; j++) {
313 somt += (*pi) * tab_theta(m_par, j, j0) ;
316 resu += somt * tab_phi(k, k0) ;
325 cout <<
"Mtbl_cf::val_point_jk_symy: unknown theta basis ! "
Base_val base
Bases of the spectral expansions.
double val_point_symy(int l, double x, double theta, double phi) const
Computes the value of the field represented by *this at an arbitrary point, by means of the spectral ...
double val_point_jk_symy(int l, double x, int j, int k) const
Computes the value of the field represented by *this at an arbitrary point in , but collocation point...
const Mg3d * mg
Pointer on the multi-grid Mgd3 on which this is defined.
int etat
Logical state (ETATNONDEF , ETATQCQ or ETATZERO ).
Tbl ** t
Array (size nzone ) of pointers on the Tbl 's which contain the spectral coefficients in each domain.
int get_etat() const
Gives the logical state.
double * t
The array of double.
#define MAX_BASE_2
Smaller maximum bases used for phi (and higher dimensions for now).
#define TRA_T
Translation en Theta, used for a bitwise shift (in hex).
#define P_COSSIN_P
dev. sur Phi = 2*phi, freq. paires
#define MAX_BASE
Nombre max. de bases differentes.
#define R_CHEBU
base de Chebychev ordinaire (fin), dev. en 1/r
#define R_CHEBI
base de Cheb. impaire (rare) seulement
#define T_SIN_P
dev. sin seulement, harmoniques paires
#define MSQ_R
Extraction de l'info sur R.
#define R_CHEBPIM_I
Cheb. pair-impair suivant m, impair pour m=0.
#define T_COS_P
dev. cos seulement, harmoniques paires
#define T_COSSIN_CI
cos impair-sin pair alternes, cos pour m=0
#define P_COSSIN
dev. standart
#define P_COSSIN_I
dev. sur Phi = 2*phi, freq. impaires
#define R_CHEBPIM_P
Cheb. pair-impair suivant m, pair pour m=0.
#define TRA_R
Translation en R, used for a bitwise shift (in hex).
#define MSQ_T
Extraction de l'info sur Theta.
#define T_COSSIN_CP
cos pair-sin impair alternes, cos pour m=0
#define R_CHEB
base de Chebychev ordinaire (fin)
#define T_COS
dev. cos seulement
#define R_CHEBP
base de Cheb. paire (rare) seulement
#define MSQ_P
Extraction de l'info sur Phi.
#define T_SIN
dev. sin seulement
#define TRA_P
Translation en Phi, used for a bitwise shift (in hex).
void som_r_cheb_symy(double *, const int, const int, const int, const double, double *)
Cas R_CHEB ///.
void som_tet_cossin_ci_symy(double *, const int, const int, const double, double *)
Cas T_COSSIN_CI ///.
void som_r_chebu_symy(double *, const int, const int, const int, const double, double *)
Cas R_CHEBU ///.
void som_r_chebpim_i_symy(double *, const int, const int, const int, const double, double *)
Cas R_CHEBPIM_I ///.
void som_tet_cossin_cp_symy(double *, const int, const int, const double, double *)
Cas T_COSSIN_CP ///.
Coord phi
coordinate centered on the grid
Coord x
x coordinate centered on the grid
void som_r_chebpim_p_symy(double *, const int, const int, const int, const double, double *)
Cas R_CHEBPIM_P ///.