Skip to content

Commit e180c13

Browse files
committed
use smart ptr
1 parent ad923ea commit e180c13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/measure/extrapolation.cu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ void Extrapolation::load_asi()
157157
type_of_atom,
158158
shape1,
159159
shape2);
160-
asi_list.emplace_back(new GPU_Vector<double>(B_size, Memory_Type::managed));
160+
asi_list.emplace_back(
161+
std::unique_ptr<GPU_Vector<double>>(new GPU_Vector<double>(B_size, Memory_Type::managed)));
161162
auto& asi = asi_list.back();
162163
for (int i = 0; i < B_size; ++i) {
163164
f >> (*asi)[i];

0 commit comments

Comments
 (0)