| # | Line 240 | Line 240 | namespace OpenMD { | |
|---|---|---|
| 240 | } | |
| 241 | ||
| 242 | void LJ::calcForce(InteractionData &idat) { | |
| 243 | < | |
| 244 | < | if (!initialized_) initialize(); |
| 243 | > | #pragma omp critical |
| 244 | > | { |
| 245 | > | if (!initialized_) initialize(); |
| 246 | > | } |
| 247 | ||
| 248 | map<pair<AtomType*, AtomType*>, LJInteractionData>::iterator it; | |
| 249 | it = MixingMap.find( idat.atypes ); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |