Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion source/source_md/fire.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,16 @@ void FIRE::restart(const std::string& global_readin_dir)
if (ok)
{
file >> step_rst_ >> md_tfirst >> alpha >> negative_count >> dt_max >> md_dt;
if(!file)
{
ok = false;
}
file.close();
}
}

#ifdef __MPI
MPI_Bcast(&ok, 1, MPI_INT, 0, MPI_COMM_WORLD);
MPI_Bcast(&ok, 1, MPI_C_BOOL, 0, MPI_COMM_WORLD);
#endif

if (!ok)
Expand Down
6 changes: 5 additions & 1 deletion source/source_md/msst.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,16 @@ void MSST::restart(const std::string& global_readin_dir)
if (ok)
{
file >> step_rst_ >> md_tfirst >> omega[mdp.msst_direction] >> e0 >> v0 >> p0 >> lag_pos;
if(!file)
{
ok = false;
}
file.close();
}
}

#ifdef __MPI
MPI_Bcast(&ok, 1, MPI_INT, 0, MPI_COMM_WORLD);
MPI_Bcast(&ok, 1, MPI_C_BOOL, 0, MPI_COMM_WORLD);
#endif

if (!ok)
Expand Down
Loading