20 #include "headcpp.hpp"
21 #include "spheric.hpp"
24 #include "tensor_impl.hpp"
81 switch (type_shells(i-1)) {
92 cerr <<
"Unknown type of shell" << endl ;
102 fread_be (&
ndim,
sizeof(
int), 1, fd) ;
103 fread_be (&
type_base,
sizeof(
int), 1, fd) ;
127 fwrite_be (&
ndim,
sizeof(
int), 1, fd) ;
128 fwrite_be (&
type_base,
sizeof(
int), 1, fd) ;
139 res.
set(0,0) = dom+1 ;
140 res.
set(1,0) = INNER_BC ;
143 res.
set(0,0) = dom-1 ;
144 res.
set(1,0) = OUTER_BC ;
147 cerr <<
"Unknown boundary in " << endl ;
148 cerr << *
this << endl ;
158 cerr <<
"No compactified domain in Space_spheric::int_inf" << endl ;
reference set(const Index &pos)
Read/write of an element.
int get_ndim() const
Returns the number of dimensions.
int get_size(int i) const
Returns the size of a given dimension.
Class for storing the dimensions of an array.
Class for a spherical compactified domain and a symmetry with respect to the plane .
virtual double integ(const Val_domain &, int) const
Surface integral on a given boundary.
Class for a spherical domain containing the origin and a symmetry with respect to the plane .
Class for a spherical shell and a symmetry with respect to the plane .
Class for a spherical shell and a symmetry with respect to the plane .
Class for a spherical shell and a symmetry with respect to the plane .
Abstract class that implements the fonctionnalities common to all the type of domains.
The class Point is used to store the coordinates of a point.
The class Scalar does not really implements scalars in the mathematical sense but rather tensorial co...
virtual Array< int > get_indices_matching_non_std(int, int) const
Gives the number of the other domains, touching a given boundary.
double int_inf(const Scalar &) const
Computes the surface integral at infinity.
Space_spheric(int ttype, const Point &cr, const Dim_array &nbr, const Array< double > &bounds, bool withzec=true)
Standard constructor.
virtual void save(FILE *) const
Saving function.
virtual ~Space_spheric()
Destructor
int type_base
Type of basis used (i.e. using either Chebyshev or Legendre polynomials).
int ndim
Number of dimensions (should be the same for all the Domains).
Domain ** domains
Pointers on the various Domains.
int nbr_domains
Number od Domains.