File tree 2 files changed +3
-2
lines changed
src/QMCWaveFunctions/BsplineFactory
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ std::unique_ptr<SPOSet> HybridRepSetReader<SA>::create_spline_set(const std::str
148
148
bool foundspline = spline_reader_.createSplineDataSpaceLookforDumpFile (bandgroup, *bspline);
149
149
typename SA::HYBRIDBASE& hybrid_center_orbs = *bspline;
150
150
hybrid_center_orbs.resizeStorage (bspline->myV .size ());
151
- if (foundspline)
151
+ if (foundspline && myComm-> rank () == 0 )
152
152
{
153
153
Timer now;
154
154
hdf_archive h5f (myComm);
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ std::unique_ptr<SPOSet> SplineSetReader<SA>::create_spline_set(const std::string
42
42
auto bspline = std::make_unique<SA>(my_name, use_offload);
43
43
app_log () << " ClassName = " << bspline->getClassName () << std::endl;
44
44
bool foundspline = createSplineDataSpaceLookforDumpFile (bandgroup, *bspline);
45
- if (foundspline)
45
+ if (foundspline && myComm-> rank () == 0 )
46
46
{
47
47
Timer now;
48
48
hdf_archive h5f (myComm);
@@ -80,6 +80,7 @@ std::unique_ptr<SPOSet> SplineSetReader<SA>::create_spline_set(const std::string
80
80
}
81
81
82
82
{
83
+ myComm->barrier ();
83
84
Timer now;
84
85
bspline->bcast_tables (myComm);
85
86
app_log () << " Time to bcast the table = " << now.elapsed () << std::endl;
You can’t perform that action at this time.
0 commit comments