Skip to content

Commit dc865c9

Browse files
committed
rename functions to clearly identify
1 parent 871f6a4 commit dc865c9

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

src/force/force.cu

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ void Force::parse_potential(
134134
potential.reset(new LJ(fid_potential, num_types, number_of_atoms));
135135
} else if (strcmp(potential_name, "ilp_tmd_sw") == 0) {
136136
if (num_param != 3) {
137-
PRINT_INPUT_ERROR("potential should ILP potential file and SW potential file.\n");
137+
PRINT_INPUT_ERROR("potential should contain ILP potential file and SW potential file.\n");
138138
}
139139
FILE* fid_sw = my_fopen(param[2], "r");
140140
potential.reset(new ILP_TMD_SW(fid_potential, fid_sw, num_types, number_of_atoms));
@@ -487,7 +487,7 @@ void Force::compute(
487487
virial_per_atom);
488488
} else if (1 == potentials[0]->ilp_flag) {
489489
// compute the potential with ILP
490-
potentials[0]->compute(
490+
potentials[0]->compute_ilp(
491491
box, type, position_per_atom, potential_per_atom, force_per_atom, virial_per_atom, group);
492492
} else {
493493
potentials[0]->compute(
@@ -508,7 +508,7 @@ void Force::compute(
508508
virial_per_atom);
509509
} else if (1 == potentials[i]->ilp_flag) {
510510
// compute the potential with ILP
511-
potentials[i]->compute(
511+
potentials[i]->compute_ilp(
512512
box, type, position_per_atom, potential_per_atom, force_per_atom, virial_per_atom, group);
513513
} else {
514514
potentials[i]->compute(
@@ -782,7 +782,7 @@ void Force::compute(
782782
virial_per_atom);
783783
} else if (1 == potentials[0]->ilp_flag) {
784784
// compute the potential with ILP
785-
potentials[0]->compute(
785+
potentials[0]->compute_ilp(
786786
box, type, position_per_atom, potential_per_atom, force_per_atom, virial_per_atom, group);
787787
} else {
788788
potentials[0]->compute(
@@ -803,7 +803,7 @@ void Force::compute(
803803
virial_per_atom);
804804
} else if (1 == potentials[i]->ilp_flag) {
805805
// compute the potential with ILP
806-
potentials[i]->compute(
806+
potentials[i]->compute_ilp(
807807
box, type, position_per_atom, potential_per_atom, force_per_atom, virial_per_atom, group);
808808
} else {
809809
potentials[i]->compute(

src/force/ilp_tmd_sw.cu

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,7 +1350,7 @@ void ILP_TMD_SW::compute(
13501350
#define UPDATE_TEMP 10
13511351
#define BIG_ILP_CUTOFF_SQUARE 50.0
13521352
// find force and related quantities
1353-
void ILP_TMD_SW::compute(
1353+
void ILP_TMD_SW::compute_ilp(
13541354
Box &box,
13551355
const GPU_Vector<int> &type,
13561356
const GPU_Vector<double> &position_per_atom,
@@ -1371,7 +1371,7 @@ void ILP_TMD_SW::compute(
13711371
#ifdef USE_FIXED_NEIGHBOR
13721372
if (num_calls++ == 0) {
13731373
#endif
1374-
find_neighbor(
1374+
find_neighbor_ilp(
13751375
N1,
13761376
N2,
13771377
rc,

src/force/ilp_tmd_sw.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public:
9090
GPU_Vector<double>& force,
9191
GPU_Vector<double>& virial);
9292

93-
virtual void compute(
93+
virtual void compute_ilp(
9494
Box& box,
9595
const GPU_Vector<int>& type,
9696
const GPU_Vector<double>& position,

src/force/neighbor.cu

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ void find_neighbor(
343343
}
344344

345345
// For ILP, the neighbor could not contain atoms in the same layer
346-
static __global__ void gpu_find_neighbor_ON1(
346+
static __global__ void gpu_find_neighbor_ON1_ilp(
347347
const Box box,
348348
const int N,
349349
const int N1,
@@ -433,7 +433,7 @@ static __global__ void gpu_find_neighbor_ON1(
433433
}
434434
}
435435

436-
void find_neighbor(
436+
void find_neighbor_ilp(
437437
const int N1,
438438
const int N2,
439439
double rc,
@@ -465,7 +465,7 @@ void find_neighbor(
465465
find_cell_list(
466466
rc_cell_list, num_bins, box, position_per_atom, cell_count, cell_count_sum, cell_contents);
467467

468-
gpu_find_neighbor_ON1<<<grid_size, block_size>>>(
468+
gpu_find_neighbor_ON1_ilp<<<grid_size, block_size>>>(
469469
box,
470470
N,
471471
N1,

src/force/neighbor.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ void find_neighbor(
4141
GPU_Vector<int>& NL);
4242

4343
// For ILP
44-
void find_neighbor(
44+
void find_neighbor_ilp(
4545
const int N1,
4646
const int N2,
4747
double rc,

src/force/potential.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public:
4848
GPU_Vector<double>& virial){};
4949

5050
// add group message for ILP TMD SW
51-
virtual void compute(
51+
virtual void compute_ilp(
5252
Box& box,
5353
const GPU_Vector<int>& type,
5454
const GPU_Vector<double>& position,

0 commit comments

Comments
 (0)