4#include "utilitaires.h"
9#include "param_elliptic.h"
17#include "sym_tensor.h"
25 nn.annule_l(2*(ntt-1) - cutoff, 2*(ntt-1));
26 ppsi.annule_l(2*(ntt-1) - cutoff, 2*(ntt-1));
28 bb1.
annule_l(2*(ntt-1) - cutoff, 2*(ntt-1));
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);
47void tensor_coupe_l(
Sym_tensor& ten,
int ntt,
int cutoff){
50 ten1.
annule_l(2*(ntt-1) - cutoff, 2*(ntt-1));
51 int dzp = ten1.get_dzpuis();
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);
Tensor field of valence 0 (or component of a tensorial field).
void annule_l(int l_min, int l_max, bool ylm_output=false)
Sets all the multipolar components between l_min and l_max to zero.
Class intended to describe valence-2 symmetric tensors.
Tensor field of valence 1.
Scalar & set(const Itbl &ind)
Returns the value of a component (read/write version).