4 #include "utilitaires.h" 9 #include "param_elliptic.h" 17 #include "sym_tensor.h" 23 void coupe_l_tous( Sym_tensor& hij,Sym_tensor& aa, Scalar& nn,Scalar& ppsi,Vector& bb,
int ntt,
int cutoff){
25 nn.annule_l(2*(ntt-1) - cutoff, 2*(ntt-1));
26 ppsi.annule_l(2*(ntt-1) - cutoff, 2*(ntt-1));
27 Scalar bb1 = bb.set(1);
28 bb1.annule_l(2*(ntt-1) - cutoff, 2*(ntt-1));
30 Scalar etta = bb.eta();
32 mmu.annule_l(2*(ntt-1) - cutoff, 2*(ntt-1));
33 etta.annule_l(2*(ntt-1) - cutoff, 2*(ntt-1));
35 bb.set_vr_eta_mu(bb1, etta, mmu);
37 tensor_coupe_l(aa, ntt, cutoff);
38 tensor_coupe_l(hij, ntt, cutoff);
47 void tensor_coupe_l( Sym_tensor& ten,
int ntt,
int cutoff){
49 Scalar ten1 = ten.set(1,1);
50 ten1.annule_l(2*(ntt-1) - cutoff, 2*(ntt-1));
51 int dzp = ten1.get_dzpuis();
53 Scalar eta = ten.eta();
54 Scalar mmu = ten.mu();
55 Scalar xxx = ten.xxx();
56 Scalar www = ten.www();
57 Scalar smalltrace = ten.set(2,2) + ten.set(3,3);
59 eta.annule_l(2*(ntt-1) - cutoff, 2*(ntt-1));
60 mmu.annule_l(2*(ntt-1) - cutoff, 2*(ntt-1));
61 xxx.annule_l(2*(ntt-1) - cutoff, 2*(ntt-1));
62 www.annule_l(2*(ntt-1) - cutoff, 2*(ntt-1));
63 smalltrace.annule_l(2*(ntt-1) - cutoff, 2*(ntt-1));
65 eta.div_r_dzpuis(dzp);
66 mmu.div_r_dzpuis(dzp);
70 ten.set_auxiliary(ten1, eta, mmu, www, xxx, smalltrace);