Skip to content

Instantly share code, notes, and snippets.

Nick Collier ncollier

Block or report user

Report or block ncollier

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
ncollier / Loops_OMP.cpp
Last active Aug 29, 2015
Large-Scale Agent-based Modeling with Repast HPC: A Case Study in Parallelizing an Agent-based Model, supplementary materials (PADABS 2015 Workshop Paper)
View Loops_OMP.cpp
NextAct next_act;
size_t n = persons.size();
#pragma omp parallel for firstprivate(next_act)
for (size_t i = 0; i < n; ++i) {
auto& person = persons[i];
person->selectNextAct(cal, next_act);
#pragma omp critical
You can’t perform that action at this time.