ThreadLocal

Simbody is useful for internal coordinate and coarse grained molecule modeling, large scale mechanical models like skeletons, and anything else that can be modeled as bodies interconnected by joints, acted upon by forces, and restricted by constraints.
POST REPLY
User avatar
Samuel Flores
Posts: 189
Joined: Mon Apr 30, 2007 1:06 pm

ThreadLocal

Post by Samuel Flores » Thu Oct 11, 2018 9:09 pm

Guys,

Did something happen recently with ThreadLocal? I can't find ThreadLocal.h in the latest release of simbody (https://github.com/simbody/simbody.git ). I ask because I try to compile molmodel (which has not changed in forever) I get the below error. Where exactly is ThreadLocal.h?

thanks

sam

User avatar
Samuel Flores
Posts: 189
Joined: Mon Apr 30, 2007 1:06 pm

Re: ThreadLocal

Post by Samuel Flores » Thu Oct 11, 2018 9:11 pm

sam@pe1:~/svn/molmodel/build$ make
[ 3%] Building CXX object sharedTarget/CMakeFiles/SimTKmolmodel.dir/__/src/DuMMForceFieldSubsystemRep.cpp.o
/home/sam/svn/molmodel/src/DuMMForceFieldSubsystemRep.cpp:1759:5: error: ThreadLocal does not name a type; did you mean thread_local?
ThreadLocal Real localEnergy
thread_local
/home/sam/svn/molmodel/src/DuMMForceFieldSubsystemRep.cpp:1759:5: error: ThreadLocal does not name a type; did you mean thread_local?
ThreadLocal< Array_<Real, DuMM::NonbondAtomIndex> > localVdwScale;
^~~~~~~~~~~
thread_local

POST REPLY