Skip to content

Commit bc32e43

Browse files
committed
1. fix bug in Input_Process::bcast()
1 parent 023bc66 commit bc32e43

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/src_io/read_txt_input_process.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ namespace Read_Txt_Input
126126
void Input_Process::bcast()
127127
{
128128
#ifdef USE_CEREAL_SERIALIZATION
129-
ModuleBase::bcast_data_cereal(this->input.list, MPI_COMM_WORLD, 0);
129+
for(auto &item : this->input.list)
130+
ModuleBase::bcast_data_cereal(item.second, MPI_COMM_WORLD, 0);
130131
#else
131132
#error Input_Process::bcast() needs cereal
132133
#endif

0 commit comments

Comments
 (0)