Skip to content

Commit 293589a

Browse files
author
Kloepfer
committed
changed template name
1 parent 7acfb1f commit 293589a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/MeshField_Integrate.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,27 @@ template <size_t pointSize> struct IntegrationPoint {
1818
Kokkos::Array<Real, pointSize> param;
1919
double weight;
2020
};
21-
template <size_t dim> class Integration {
21+
template <size_t pointSize> class Integration {
2222
public:
2323
virtual ~Integration() {}
2424
virtual int countPoints() const = 0;
25-
virtual std::vector<IntegrationPoint<dim>> getPoints() const = 0;
25+
virtual std::vector<IntegrationPoint<pointSize>> getPoints() const = 0;
2626
virtual int getAccuracy() const = 0;
2727
};
28-
template <size_t dim> class EntityIntegration {
28+
template <size_t pointSize> class EntityIntegration {
2929
public:
3030
virtual ~EntityIntegration() {}
31-
Integration<dim> const *getAccurate(int minimumAccuracy) const {
31+
Integration<pointSize> const *getAccurate(int minimumAccuracy) const {
3232
int n = countIntegrations();
3333
for (int i = 0; i < n; ++i) {
34-
Integration<dim> const *integration = getIntegration(i);
34+
Integration<pointSize> const *integration = getIntegration(i);
3535
if (integration->getAccuracy() >= minimumAccuracy)
3636
return integration;
3737
}
3838
return NULL;
3939
}
4040
virtual int countIntegrations() const = 0;
41-
virtual Integration<dim> const *getIntegration(int i) const = 0;
41+
virtual Integration<pointSize> const *getIntegration(int i) const = 0;
4242
};
4343

4444
class TriangleIntegration : public EntityIntegration<3> {

0 commit comments

Comments
 (0)