28 char metric_flat_C[] =
"$Header: /cvsroot/Lorene/C++/Source/Metric/metric_flat.C,v 1.7 2014/10/13 08:53:07 j_novak Exp $" ;
69 #include "utilitaires.h" 77 Metric(mpi), triad(&triadi) {
93 cout <<
"Metric_flat::Metric_flat(FILE*) : not implemented yet!" << endl ;
121 cout <<
"Metric_flat::operator=(const Sym_tensor& ) :" <<
'\n' ;
122 cout <<
"Error: a flat metric should not be specified" <<
'\n' ;
123 cout <<
"by a symmetric tensor!" << endl ;
186 assert (bvc == 0x0) ;
233 cout <<
"Metric_flat::sauve(FILE*) : not implemented yet!" << endl ;
245 ost <<
"Flat metric in an orthonormal triad" <<
'\n' ;
246 ost <<
"-----------------------------------" <<
'\n' ;
Metric for tensor calculation.
virtual void set_etat_zero()
Sets the logical state to ETATZERO (zero).
virtual const Scalar & determinant() const
Returns the determinant.
const Map *const mp
Reference mapping.
Scalar * p_determinant
Pointer on the determinant.
Flat metric for tensor calculation.
Tensor field of valence 0 (or component of a tensorial field).
Base class for coordinate mappings.
virtual ostream & operator>>(ostream &) const
Operator >> (virtual function called by the operator <<).
void operator=(const Metric &met)
Assignment to another Metric.
Vectorial bases (triads) with respect to which the tensorial components are defined.
Sym_tensor * p_met_con
Pointer on the covariant representation.
virtual void sauve(FILE *) const
Save in a file.
virtual const Sym_tensor & con() const
Read-only access to the contravariant representation.
Connection * p_connect
Connection associated with the metric.
virtual const Connection & connect() const
Returns the connection.
void set_etat_one()
Sets the logical state to ETATUN (one).
Metric_flat(const Map &, const Base_vect &)
Standard constructor.
virtual ~Metric_flat()
Destructor.
Cartesian vectorial bases (triads).
Spherical orthonormal vectorial bases (triads).
virtual const Sym_tensor & cov() const
Read-only access to the covariant representation.
Scalar & set(const Itbl &ind)
Returns the value of a component (read/write version).
const Base_vect * triad
Vectorial basis (triad) with respect to which the components of the flat metric are defined...
Scalar * p_ricci_scal
Pointer on the Ricci scalar.
virtual const Scalar & ricci_scal() const
Returns the Ricci scalar.
Sym_tensor * p_met_cov
Pointer on the contravariant representation.
virtual void std_spectral_base()
Sets the standard spectal bases of decomposition for each component.
Class intended to describe valence-2 symmetric tensors.
void operator=(const Metric_flat &)
Assignment to another Metric_flat.