Skip to content

Commit 4adca2b

Browse files
committed
Remove useless things
1 parent f42b4f4 commit 4adca2b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/module_base/memory.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,10 @@ double Memory::record_gpu
234234
{
235235
if(!Memory::init_flag_gpu)
236236
{
237-
name_gpu = new std::string[n_memory + 2];
238-
class_name_gpu = new std::string[n_memory + 2];
239-
consume_gpu = new double[n_memory + 2];
240-
for(int i=0;i<n_memory + 2;i++)
237+
name_gpu = new std::string[n_memory];
238+
class_name_gpu = new std::string[n_memory];
239+
consume_gpu = new double[n_memory];
240+
for(int i=0;i<n_memory;i++)
241241
{
242242
consume_gpu[i] = 0.0;
243243
}

0 commit comments

Comments
 (0)