72 #include "utilitaires.h" 80 Metric(mpi), triad(&triadi) {
96 cout <<
"Metric_flat::Metric_flat(FILE*) : not implemented yet!" << endl ;
124 cout <<
"Metric_flat::operator=(const Sym_tensor& ) :" <<
'\n' ;
125 cout <<
"Error: a flat metric should not be specified" <<
'\n' ;
126 cout <<
"by a symmetric tensor!" << endl ;
189 assert (bvc == 0x0) ;
236 cout <<
"Metric_flat::sauve(FILE*) : not implemented yet!" << endl ;
248 ost <<
"Flat metric in an orthonormal triad" <<
'\n' ;
249 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.