Skip to content
Snippets Groups Projects
Commit c0b1de3c authored by Kurt A. O'Hearn's avatar Kurt A. O'Hearn
Browse files

sPuReMD: correction to NPT code to conditionally set thread-local storage.

parent 521c63b5
No related branches found
No related tags found
No related merge requests found
......@@ -34,9 +34,13 @@ void Reset_Pressures( control_params *control, simulation_data *data )
rvec_MakeZero( data->int_press );
rvec_MakeZero( data->ext_press );
#if defined(_OPENMP)
for ( i = 0; i < control->num_threads; ++i )
if ( control->ensemble == sNPT || control->ensemble == iNPT
|| control->ensemble == aNPT || control->compute_pressure == TRUE )
{
rvec_MakeZero( data->ext_press_local[i] );
for ( i = 0; i < control->num_threads; ++i )
{
rvec_MakeZero( data->ext_press_local[i] );
}
}
#endif
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment