Dhairya Malhotra il y a 7 ans
Parent
commit
dd785f0d24

+ 2 - 2
include/sctl/legendre_rule.hpp

@@ -1,5 +1,5 @@
-#ifndef _LEGENDRE_RULE_HPP_
-#define _LEGENDRE_RULE_HPP_
+#ifndef _SCTL_LEGENDRE_RULE_HPP_
+#define _SCTL_LEGENDRE_RULE_HPP_
 
 # include <cstdlib>
 # include <cmath>

+ 3 - 3
include/sctl/math_utils.hpp

@@ -1,5 +1,5 @@
-#ifndef _MATH_UTILS_
-#define _MATH_UTILS_
+#ifndef _SCTL_MATH_UTILS_
+#define _SCTL_MATH_UTILS_
 
 #include SCTL_INCLUDE(common.hpp)
 
@@ -48,4 +48,4 @@ inline std::ostream& operator<<(std::ostream& output, const SCTL_QUAD_T q_);
 
 #include SCTL_INCLUDE(math_utils.txx)
 
-#endif  //_MATH_UTILS_HPP_
+#endif  //_SCTL_MATH_UTILS_HPP_

+ 1 - 1
include/sctl/parallel_solver.hpp

@@ -13,7 +13,7 @@ template <class Real> class ParallelSolver {
  public:
   using ParallelOp = std::function<void(Vector<Real>*, const Vector<Real>&)>;
 
-  ParallelSolver(const Comm& comm, bool verbose = true) : comm_(comm), verbose_(verbose) {}
+  ParallelSolver(const Comm& comm = Comm::Self(), bool verbose = true) : comm_(comm), verbose_(verbose) {}
 
   void operator()(Vector<Real>* x, const ParallelOp& A, const Vector<Real>& b, Real tol, Integer max_iter = -1);