34 :
Fdm1dMesher(leftMesher.locations().size()+rightMesher.locations().size()
35 - (
close(leftMesher.locations().back(),
36 rightMesher.locations().front()) ? 1 :0) ),
37 commonPoint_(
close(leftMesher.locations().back(),
38 rightMesher.locations().front()) ) {
42 "left meshers rightmost point (" <<
44 ") may not be greater than right meshers leftmost point (" <<
std::vector< Real > locations_
const std::vector< Real > & locations() const
std::vector< Real > dplus_
std::vector< Real > dminus_
Glued1dMesher(const Fdm1dMesher &leftMesher, const Fdm1dMesher &rightMesher)
template class providing a null value for a given type.
floating-point comparisons
Classes and functions for error handling.
#define QL_REQUIRE(condition, message)
throw an error if the given pre-condition is not verified
One-dimensional grid mesher combining two existing ones.
std::size_t Size
size of a container
bool close(const Quantity &m1, const Quantity &m2, Size n)