Skip to content
Snippets Groups Projects
Commit 39ededd4 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

update respa/omp integrator style for neighbor list refactor

parent 2c752881
No related branches found
No related tags found
No related merge requests found
...@@ -108,6 +108,7 @@ void RespaOMP::setup() ...@@ -108,6 +108,7 @@ void RespaOMP::setup()
domain->box_too_small_check(); domain->box_too_small_check();
modify->setup_pre_neighbor(); modify->setup_pre_neighbor();
neighbor->build(); neighbor->build();
modify->setup_post_neighbor();
neighbor->ncalls = 0; neighbor->ncalls = 0;
// compute all forces // compute all forces
...@@ -200,6 +201,7 @@ void RespaOMP::setup_minimal(int flag) ...@@ -200,6 +201,7 @@ void RespaOMP::setup_minimal(int flag)
domain->box_too_small_check(); domain->box_too_small_check();
modify->setup_pre_neighbor(); modify->setup_pre_neighbor();
neighbor->build(); neighbor->build();
modify->setup_post_neighbor();
neighbor->ncalls = 0; neighbor->ncalls = 0;
} }
...@@ -311,6 +313,10 @@ void RespaOMP::recurse(int ilevel) ...@@ -311,6 +313,10 @@ void RespaOMP::recurse(int ilevel)
} }
neighbor->build(); neighbor->build();
timer->stamp(Timer::NEIGH); timer->stamp(Timer::NEIGH);
if (modify->n_post_neighbor) {
modify->post_neighbor();
timer->stamp(Timer::MODIFY);
}
} else if (ilevel == 0) { } else if (ilevel == 0) {
timer->stamp(); timer->stamp();
comm->forward_comm(); comm->forward_comm();
......
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