lock / unlock threads

From: paul.dalhaimer_at_yale.edu
Date: Wed Oct 10 2007 - 13:27:47 CDT

There seems to be a problem with thread access to data when I modify the
"calculate" function in the GlobalMasterSMD.C file to add an additional force
to atoms. When I run the (modified) compiled program on one chip: no problem;
multiple chips: there are communication problems and forces are applied to
atoms that I am not selecting as fair game. Does anyone know how to lock /
unlock the threads in C++ code?

This archive was generated by hypermail 2.1.6 : Wed Feb 29 2012 - 15:47:05 CST