Skip to content

Commit 6e6f3b9

Browse files
committed
test grad
1 parent 28f7957 commit 6e6f3b9

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

include/rxmesh/diff/diff_attribute.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#pragma once
22

3+
4+
35
#include "rxmesh/attribute.h"
46
#include "rxmesh/diff/scalar.h"
57

@@ -21,9 +23,9 @@ class DiffAttribute : public Attribute<Scalar<T, Size, WithHessian>, HandleT>
2123
}
2224

2325
explicit DiffAttribute(const char* name,
24-
uint32_t num_attributes, // not used
26+
uint32_t num_attributes,
2527
locationT location,
26-
layoutT layout, // not used
28+
layoutT layout,
2729
RXMeshStatic* rxmesh)
2830
: Attribute<ScalarType, HandleT>(name,
2931
num_attributes,
@@ -33,7 +35,6 @@ class DiffAttribute : public Attribute<Scalar<T, Size, WithHessian>, HandleT>
3335
{
3436
}
3537

36-
3738
/**
3839
* @brief return the value of the Scalar type as an attribute. The only
3940
* reason we do this is for visualization. Thus, the return attributes is

tests/RXMesh_test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ set( SOURCE_LIST
3030
test_scalar.cu
3131
test_diff_attribute.cu
3232
test_inverse.cu
33+
test_grad.h
3334
)
3435

3536
target_sources( RXMesh_test

tests/RXMesh_test/rxmesh_test_main.cu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ struct RXMeshTestArg
1919
#include "test_patch_scheduler.cuh"
2020
#include "test_patch_lock.cuh"
2121
#include "test_wasted_work.cuh"
22+
#include "test_grad.h"
2223
// clang-format on
2324

2425
int main(int argc, char** argv)

0 commit comments

Comments
 (0)