Skip to content

Commit

Permalink
Merge pull request #33 from lanl/brryan/units_get_test
Browse files Browse the repository at this point in the history
Fix units copy constructor issue
  • Loading branch information
adamdempsey90 authored Dec 31, 2024
2 parents 25887e2 + f7bf6c6 commit 58815b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/units.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Units {

// Copy constructor must be marked with KOKKOS_FUNCTION
KOKKOS_FUNCTION
Units(const Units &other) {}
Units(const Units &other) = default;

// Return physical unit system
KOKKOS_INLINE_FUNCTION
Expand Down Expand Up @@ -109,7 +109,7 @@ class Constants {
Constants(Units &units);

KOKKOS_FUNCTION
Constants(const Constants &other) {}
Constants(const Constants &other) = default;

KOKKOS_INLINE_FUNCTION
Real GetGPhysical() const { return G_; }
Expand Down

0 comments on commit 58815b4

Please sign in to comment.