Skip to content

Commit

Permalink
test grad
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahdhn committed Oct 23, 2024
1 parent 28f7957 commit 6e6f3b9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/rxmesh/diff/diff_attribute.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once



#include "rxmesh/attribute.h"
#include "rxmesh/diff/scalar.h"

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

explicit DiffAttribute(const char* name,
uint32_t num_attributes, // not used
uint32_t num_attributes,
locationT location,
layoutT layout, // not used
layoutT layout,
RXMeshStatic* rxmesh)
: Attribute<ScalarType, HandleT>(name,
num_attributes,
Expand All @@ -33,7 +35,6 @@ class DiffAttribute : public Attribute<Scalar<T, Size, WithHessian>, HandleT>
{
}


/**
* @brief return the value of the Scalar type as an attribute. The only
* reason we do this is for visualization. Thus, the return attributes is
Expand Down
1 change: 1 addition & 0 deletions tests/RXMesh_test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ set( SOURCE_LIST
test_scalar.cu
test_diff_attribute.cu
test_inverse.cu
test_grad.h
)

target_sources( RXMesh_test
Expand Down
1 change: 1 addition & 0 deletions tests/RXMesh_test/rxmesh_test_main.cu
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ struct RXMeshTestArg
#include "test_patch_scheduler.cuh"
#include "test_patch_lock.cuh"
#include "test_wasted_work.cuh"
#include "test_grad.h"
// clang-format on

int main(int argc, char** argv)
Expand Down

0 comments on commit 6e6f3b9

Please sign in to comment.