dune-common  2.3.0
lcm.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 // vi: set et ts=4 sw=2 sts=2:
3 #ifndef DUNE_LCM_HH
4 #define DUNE_LCM_HH
5 
11 #include <dune/common/gcd.hh>
12 
13 namespace Dune
14 {
15 
29  template<long m, long n>
30  struct Lcm
31  {
32  static void conceptCheck()
33  {
34  dune_static_assert(0<m, "m must be positive!");
35  dune_static_assert(0<n, "n must be positive!");
36  }
41  const static long value = (m/Gcd<m,n>::value)*n;
42  };
43 }
44 
45 #endif