Add neighbor lists capacity to index tracer file
Signed-off-by: Rafael Ravedutti <rafaelravedutti@gmail.com>
This commit is contained in:
parent
b8d71090aa
commit
2889577a3b
@ -51,7 +51,7 @@
|
|||||||
# define INDEX_TRACER_INIT FILE *index_tracer_fp; \
|
# define INDEX_TRACER_INIT FILE *index_tracer_fp; \
|
||||||
if(first_exec) { index_tracer_fp = fopen("index_tracer.out", "w"); }
|
if(first_exec) { index_tracer_fp = fopen("index_tracer.out", "w"); }
|
||||||
# define INDEX_TRACER_END if(first_exec) { fclose(index_tracer_fp); }
|
# define INDEX_TRACER_END if(first_exec) { fclose(index_tracer_fp); }
|
||||||
# define INDEX_TRACE_NATOMS(nl, ng) if(first_exec) { fprintf(index_tracer_fp, "N: %d, %d\n", nl, ng); }
|
# define INDEX_TRACE_NATOMS(nl, ng, mn) if(first_exec) { fprintf(index_tracer_fp, "N: %d %d %d\n", nl, ng, mn); }
|
||||||
# define INDEX_TRACE_ATOM(a) if(first_exec) { fprintf(index_tracer_fp, "A: %d\n", a); }
|
# define INDEX_TRACE_ATOM(a) if(first_exec) { fprintf(index_tracer_fp, "A: %d\n", a); }
|
||||||
# define INDEX_TRACE(l, e) if(first_exec) { \
|
# define INDEX_TRACE(l, e) if(first_exec) { \
|
||||||
for(int __i = 0; __i < (e); __i += VECTOR_WIDTH) { \
|
for(int __i = 0; __i < (e); __i += VECTOR_WIDTH) { \
|
||||||
@ -97,7 +97,7 @@
|
|||||||
#else
|
#else
|
||||||
# define INDEX_TRACER_INIT
|
# define INDEX_TRACER_INIT
|
||||||
# define INDEX_TRACER_END
|
# define INDEX_TRACER_END
|
||||||
# define INDEX_TRACE_NATOMS(nl, ng)
|
# define INDEX_TRACE_NATOMS(nl, ng, mn)
|
||||||
# define INDEX_TRACE_ATOM(a)
|
# define INDEX_TRACE_ATOM(a)
|
||||||
# define INDEX_TRACE(l, e)
|
# define INDEX_TRACE(l, e)
|
||||||
# define DIST_TRACE_SORT(l, e)
|
# define DIST_TRACE_SORT(l, e)
|
||||||
@ -123,7 +123,7 @@ double computeForce(Parameter *param, Atom *atom, Neighbor *neighbor, int first_
|
|||||||
fz[i] = 0.0;
|
fz[i] = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
INDEX_TRACE_NATOMS(Nlocal, atom->Nghost);
|
INDEX_TRACE_NATOMS(Nlocal, atom->Nghost, neighbor->maxneighs);
|
||||||
LIKWID_MARKER_START("force");
|
LIKWID_MARKER_START("force");
|
||||||
#pragma omp parallel for
|
#pragma omp parallel for
|
||||||
for(int i = 0; i < Nlocal; i++) {
|
for(int i = 0; i < Nlocal; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user