File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -206,10 +206,13 @@ void FIREEnergyMinimizerGPU::update(uint64_t timestep)
206
206
CHECK_CUDA_ERROR ();
207
207
}
208
208
209
- ArrayHandle<Scalar> h_sum (m_sum3, access_location::host, access_mode::read);
210
- Pt += h_sum.data [0 ];
211
- vnorm += h_sum.data [1 ];
212
- fnorm += h_sum.data [2 ];
209
+ // Ensure h_sum goes out of scope before anisotropic block
210
+ {
211
+ ArrayHandle<Scalar> h_sum (m_sum3, access_location::host, access_mode::read);
212
+ Pt += h_sum.data [0 ];
213
+ vnorm += h_sum.data [1 ];
214
+ fnorm += h_sum.data [2 ];
215
+ }
213
216
214
217
if ((*method)->getAnisotropic ())
215
218
{
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ The following people have contributed to HOOMD-blue:
111
111
* Sam Nola, University of Michigan
112
112
* Simone Ciarella, Eindhoven University of Technology
113
113
* Shannon Moran, University of Michigan
114
+ * Shawn Douglas, University of California, San Francisco
114
115
* Sophie YouJung Lee, University of Michigan
115
116
* Stephen Thomas, Boise State University
116
117
* Steve Barr, Princeton University
You can’t perform that action at this time.
0 commit comments