Commit 35e5db2f authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Clening up linear solvers and explicit template instantiation

parent fe755b00
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -8,13 +8,13 @@

/* See Copyright Notice in tnl/Copyright */

#ifdef TEMPLATE_EXPLICIT_INSTANTIATION

#include <TNL/Containers/Array.h>

namespace TNL {
namespace Containers {

#ifdef TEMPLATE_EXPLICIT_INSTANTIATION

#ifdef INSTANTIATE_FLOAT
template class Array< float, Devices::Host, int >;
#endif
@@ -55,7 +55,7 @@ template class Array< long double, Devices::Cuda, long int >;

#endif

#endif

} // namespace Containers
} // namespace TNL

#endif // #ifdef TEMPLATE_EXPLICIT_INSTANTIATION
+4 −4
Original line number Diff line number Diff line
@@ -8,13 +8,13 @@

/* See Copyright Notice in tnl/Copyright */

#ifdef TEMPLATE_EXPLICIT_INSTANTIATION

#include <TNL/Containers/Array.h>

namespace TNL {
namespace Containers {

#ifdef TEMPLATE_EXPLICIT_INSTANTIATION

#ifdef HAVE_CUDA
#ifdef INSTANTIATE_FLOAT
template class Array< float, Devices::Cuda, int >;
@@ -37,7 +37,7 @@ template class Array< long double, Devices::Cuda, long int >;

#endif

#endif

} // namespace Containers
} // namespace TNL

#endif // #ifdef TEMPLATE_EXPLICIT_INSTANTIATION
+4 −0
Original line number Diff line number Diff line
@@ -8,6 +8,8 @@

/* See Copyright Notice in tnl/Copyright */

#ifdef TEMPLATE_EXPLICIT_INSTANTIATION

#include <TNL/Solvers/Linear/GMRES.h>
#include <TNL/Matrices/CSR.h>
#include <TNL/Matrices/Ellpack.h>
@@ -53,3 +55,5 @@ template class GMRES< Matrices::Multidiagonal< double, Devices::Cuda, long int >
} // namespace Linear
} // namespace Solvers
} // namespace TNL

#endif // #ifdef TEMPLATE_EXPLICIT_INSTANTIATION
+4 −0
Original line number Diff line number Diff line
@@ -10,6 +10,10 @@

#pragma once

#include <cmath>

#include <TNL/Solvers/Linear/LinearResidueGetter.h>

namespace TNL {
namespace Solvers {
namespace Linear {   
+0 −4
Original line number Diff line number Diff line
@@ -10,7 +10,6 @@

#pragma once

#include <math.h>
#include <TNL/Object.h>
#include <TNL/SharedPointer.h>
#include <TNL/Solvers/Linear/Preconditioners/Dummy.h>
@@ -61,8 +60,6 @@ class SOR : public Object,
             typename ResidueGetter = LinearResidueGetter< Matrix, Vector >  >
   bool solve( const Vector& b, Vector& x );

   ~SOR();

   protected:

   RealType omega;
@@ -76,4 +73,3 @@ class SOR : public Object,
} // namespace TNL

#include <TNL/Solvers/Linear/SOR_impl.h>
Loading