24 char binhor_viriel_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Bin_hor/binhor_viriel.C,v 1.5 2014/10/13 08:52:42 j_novak Exp $" ;
64 double erreur = (2*(*devel_psi[1])(nz1-1, 0, 0, 0)
65 + (*devel_n[1])(nz1-1, 0, 0, 0))/fabs ((*devel_n[1])(nz1-1, 0, 0, 0)) ;
73 int nz_un = hole1.mp.get_mg()->get_nzone() ;
74 int nz_deux = hole2.mp.get_mg()->get_nzone() ;
76 Valeur** devel_psi_un (hole1.psi_auto.asymptot(1)) ;
77 Valeur** devel_psi_deux (hole2.psi_auto.asymptot(1)) ;
78 Valeur** devel_n_un (hole1.n_auto.asymptot(1)) ;
79 Valeur** devel_n_deux (hole2.n_auto.asymptot(1)) ;
82 (2*(*devel_psi_un[1])(nz_un-1, 0, 0, 0)+
83 2*(*devel_psi_deux[1])(nz_deux-1, 0, 0, 0)+
84 (*devel_n_deux[1])(nz_deux-1, 0, 0, 0) +
85 (*devel_n_un[1])(nz_un-1, 0, 0, 0))
86 / fabs ((*devel_n_deux[1])(nz_deux-1, 0, 0, 0) +
87 (*devel_n_un[1])(nz_un-1, 0, 0, 0)) ;
const Mg3d * get_mg() const
Gives the Mg3d on which the mapping is defined.
Values and coefficients of a (real-value) function.
double viriel() const
Computes the viriel error, that is the difference between the ADM and the Komar masses, calculated by the asymptotic behaviours of respectively and N .
int get_nzone() const
Returns the number of domains.
Scalar n_auto
Lapse function .
Map_af & mp
Affine mapping.
Valeur ** asymptot(int n, const int flag=0) const
Asymptotic expansion at r = infinity.
Scalar psi_auto
Conformal factor .
double viriel_seul() const
Computes the viriel error, that is the difference between the ADM and the Komar masses, calculated by the asymptotic behaviours of respectively and N .